Created
October 6, 2022 03:33
-
-
Save jittarao/0272d45adcddba4b251082e935a6f22d to your computer and use it in GitHub Desktop.
Example of an identify call in Rails app
This file contains 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
<script> | |
gist.identify("<%= current_user.id %>", { | |
"name": "<%= current_user.name %>", // Full name | |
"email": "<%= current_user.email %>", // Email address | |
"created_at": "<%= current_user.created_at.to_i %>" // Signup date as a Unix timestamp | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment