Last active
August 14, 2017 20:33
-
-
Save astfarias/49caa38690cd618fb22f68792645b833 to your computer and use it in GitHub Desktop.
AIDAX - Syntax - Event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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