Product Knowledge Base

Follow

Add Google Analytics Tracking for Signups

You can add tracking to your waitlisted modal by adding a tracking code to your product settings page.

 

For google analytics it is suggested you track an event. This can be configured by adding the following code.

 

$url$ will be replaced with the page the modal is embedded on.

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXXXX-X', 'auto');
ga('send', 'event', 'waitlisted', 'signup', '$url$');
</script>

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk