Created
May 4, 2016 00:08
-
-
Save hijonathan/6478546e521c0f01d70142f734db6f2a to your computer and use it in GitHub Desktop.
How to implement Appcues without Segment, but pull in Segment user attributes if available.
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
<!-- Load Appcues ourselves, not using Segment. --> | |
<script src="//fast.appcues.com/23.js"></script> | |
<script> | |
// Listen for important events being passed to Segment. | |
analytics.on('identify', function(userId, traits) { | |
Appcues.identify(userId, traits); | |
}); | |
analytics.on('page', function() { | |
Appcues.start(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment