Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save astfarias/22a790caed2c155cd2a276bd8a378c71 to your computer and use it in GitHub Desktop.
AIDAX - Capturing User with Adding Subscription Subscription Property
// Adding Unique Properties of Joo in Session
// client-side JS
ax.user({
id: "joao@email.com",
properties: {
has_cleancode_newsletter: true, //turn subscription on or off
cleancode_newsletter_email: "joaodev@emaildev.com", //If the emails are different in the subscription
$tags: ["cleancode_newsletter_teste", "cleancode_newsletter_JS"] //newsletter preferences
}
});
// server-side HTTP request
curl https://api.aidax.com.br/user?key=<key>&uid="joao@email.com"&p={has_cleancode_newsletter: true, cleancode_newsletter_email: "joaodev@emaildev.com", $tags: ["cleancode_newsletter_teste","cleancode_newsletter_JS"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment