Skip to content

Instantly share code, notes, and snippets.

@astfarias
Last active August 14, 2017 20:33
Show Gist options
  • Save astfarias/49caa38690cd618fb22f68792645b833 to your computer and use it in GitHub Desktop.
Save astfarias/49caa38690cd618fb22f68792645b833 to your computer and use it in GitHub Desktop.
AIDAX - Syntax - Event
// Capturing Event
// client-side JS
ax.event({ // You can also use a concise format (ax({...}))
id: "EVENT ID", // pass this parameter if you have the event id to update it
name: "EVENT NAME", // obligatory
properties: {
property1: "foo",
property2: "bar"
}, // custom properties
callback: function(id) {
// this returns the event ID so you can update it later.
}
});
// server-side HTTP request
curl https://api.aidax.com.br/event?key=<key>&uid=<user id>&origin=<optional session origin>&name=<event type>&p=<event properties in JSON format>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment