Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events with 'user_id' #77

Closed
jlouazel opened this issue Feb 8, 2016 · 1 comment
Closed

Events with 'user_id' #77

jlouazel opened this issue Feb 8, 2016 · 1 comment

Comments

@jlouazel
Copy link

jlouazel commented Feb 8, 2016

Hi,

Is there any reason that events could not be sent using a user_id?
Since email are not a unique key, it could be confusing to send an event if two emails are the same.

Moreover, I don't understand this doc section:

// Note: events will work when identified by 'email'.

// Create a event
client.events.create({
  event_name: 'Foo',
  created_at: 1439826340,
  user_id: 'bar'
}, function (d) {
  console.log(d);
});

Do you mean it will only work with the email field?

Thanks.

@bobjflong
Copy link
Contributor

Hi @jlouazel - yep you can send user_id! Anything in the docs should work: https://developers.intercom.io/docs/submitting-events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants