Skip to content

Instantly share code, notes, and snippets.

@jittarao
Created October 6, 2022 03:33
Show Gist options
  • Save jittarao/0272d45adcddba4b251082e935a6f22d to your computer and use it in GitHub Desktop.
Save jittarao/0272d45adcddba4b251082e935a6f22d to your computer and use it in GitHub Desktop.
Example of an identify call in Rails app
<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