Skip to content

Instantly share code, notes, and snippets.

@daniel-nelson
Last active September 18, 2015 01:37
Show Gist options
  • Save daniel-nelson/9748402 to your computer and use it in GitHub Desktop.
Save daniel-nelson/9748402 to your computer and use it in GitHub Desktop.
<% if current_user -%>
<script>
mixpanel.identify('<%= @current_user.id %>');
mixpanel.register(<%= raw JSON.generate(MixHelp.user_supers(@current_user, 'event')) %>);
mixpanel.name_tag('<%= @current_user.display_name %>');
mixpanel.people.set(<%= raw JSON.generate(MixHelp.user_supers(@current_user, 'people')) %>);
</script>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment