Skip to content

Instantly share code, notes, and snippets.

@thelinuxlich
Forked from astfarias/aidax-syntax-User.js
Last active July 18, 2017 20:19
Show Gist options
  • Save thelinuxlich/bb8ec85cdaee9982a2cfe9df86b3aa5d to your computer and use it in GitHub Desktop.
Save thelinuxlich/bb8ec85cdaee9982a2cfe9df86b3aa5d to your computer and use it in GitHub Desktop.

Revisions

  1. thelinuxlich revised this gist Jul 18, 2017. No changes.
  2. thelinuxlich revised this gist Jul 18, 2017. No changes.
  3. @astfarias astfarias revised this gist Jul 18, 2017. No changes.
  4. @astfarias astfarias revised this gist Jul 18, 2017. No changes.
  5. @astfarias astfarias revised this gist Jul 18, 2017. No changes.
  6. @astfarias astfarias created this gist Jul 18, 2017.
    9 changes: 9 additions & 0 deletions aidax-example-identifyUser.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    // Identify User
    ax.user({
    id: "USER ID", //If the id is an email AIDAX will contextalize the id
    properties: {
    property1: "value",
    property2: "value"
    },
    migrate: true //optional parameter to migrate old user data in this session to the new user. Default is true
    });