Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save astfarias/fd1e14f869bce6cfd797ed209167c6c8 to your computer and use it in GitHub Desktop.

Select an option

Save astfarias/fd1e14f869bce6cfd797ed209167c6c8 to your computer and use it in GitHub Desktop.
AIDAX - User ID in session and import of previously captured properties
// Identification of João in session WITHOUT import previously captured properties
// client-side JS
ax.user({ id: "joao@email.com", migrate: false });
// server-side HTTP request
curl https://api.aidax.com.br/user?key=<key>&uid="joao@email.com"
// Identification of João in the session WITH import previously captured properties
// client-side JS
ax.user({ id: "joao@email.com" });
// server-side HTTP request
curl https://api.aidax.com.br/user?key=<key>&previous_uid=<user id>&uid="joao@email.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment