Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jittarao/e72090d4ccaf6aabdb1935e5df396e63 to your computer and use it in GitHub Desktop.
Save jittarao/e72090d4ccaf6aabdb1935e5df396e63 to your computer and use it in GitHub Desktop.
<!-- place this script tag after the Gist & Segment tracking code -->
<script>
// sends logged-in user data to Gist when Segment's identify method is called
analytics.on('identify', function(event, properties, options) {
gist.identify(event ? event : '', properties);
});
// sends events to Gist when Segment's track method is called
analytics.on('track', function(event, properties, options) {
gist.track(event, properties);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment