Skip to content

Instantly share code, notes, and snippets.

@hijonathan
Created May 4, 2016 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hijonathan/6478546e521c0f01d70142f734db6f2a to your computer and use it in GitHub Desktop.
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.
<!-- 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