Created
May 19, 2020 15:44
-
-
Save jittarao/e72090d4ccaf6aabdb1935e5df396e63 to your computer and use it in GitHub Desktop.
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
<!-- 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