Skip to content

Instantly share code, notes, and snippets.

@astfarias
Last active August 4, 2017 22:02
Show Gist options
  • Select an option

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

Select an option

Save astfarias/5fd7a5a833f1695cb4d4755a019ed91b to your computer and use it in GitHub Desktop.
AIDAX - User id during session with additional properties - multiple tags
// Adding Properties at Run Time
// client-side JS
ax.user({
id: "lucas@email.com.br",
properties: {
age: "25",
gender: "M",
$tags: ["drink", "red fruit", "pasta"]
}
});
// server-side HTTP request
curl https://api.aidax.com.br/user?key=<key>&uid="lucas@email.com"&p={age:"25",gender:"M",$tags: ["drink","red fruit","pasta"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment