Skip to content

Instantly share code, notes, and snippets.

@clexmond
Created November 12, 2015 20:23
Show Gist options
  • Save clexmond/4fe4e50ebef4eddce89a to your computer and use it in GitHub Desktop.
Save clexmond/4fe4e50ebef4eddce89a to your computer and use it in GitHub Desktop.
User identification in Intercom and FullStory
# Intercom
Intercom.boot
'app_id': INTERCOM_APP_ID
'email': auth.profile.email
'name': auth.profile.name
'created_at': new Date(auth.profile['created_at']).getTime() / 1000
'user_id': auth.profile['user_id']
'widget':
'activator': '#intercom-activator'
# FullStory
FS.identify auth.profile['user_id'],
displayName: auth.profile.name
email: auth.profile.email
client: auth.profile['app_metadata']['client_id']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment