Created
November 12, 2015 20:23
-
-
Save clexmond/4fe4e50ebef4eddce89a to your computer and use it in GitHub Desktop.
User identification in Intercom and FullStory
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
# 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