Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save astfarias/e9442cb0455eb75f08d3938897cec171 to your computer and use it in GitHub Desktop.
AIDAX - Adding Unique Properties of John in session without id
// Adding John Properties at run time without id
// client-side JS
ax.user({
properties: {
age: "25",
job: "Data Analyst",
$tags: ["beer"]
}
});
// server-side HTTP request
curl https://api.aidax.com.br/user?key=<key>&uid="joao@email.com"&p={age: "25",job:"Data Analyst",$tags:["beer"]}
/**
Properties without id are associated with the generic anonymous id
temporarily assigned to the user and stored in the device cache
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment