Last active
May 8, 2019 13:52
-
-
Save tatterzig96/c240043effe754b3513e045310d73f4b to your computer and use it in GitHub Desktop.
Conversations & Site Tracking Code
This file contains hidden or 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
| // Standard tracking code | |
| <script type="text/javascript"> | |
| (function(e,t,o,n,p,r,i){e.prismGlobalObjectAlias=n;e.pgo=e.pgo||function(){(e.pgo.q=e.pgo.q||[]).push(arguments)};e.pgo.l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://prism.app-us1.com/prism.js","pgo"); | |
| pgo('setAccount', 'YOUR_ACCOUNT_NUMBER'); | |
| pgo('setTrackByDefault', true); | |
| pgo('process'); | |
| </script> | |
| // Tracking code with known visitor email provided by the client | |
| <script type="text/javascript"> | |
| (function(e,t,o,n,p,r,i){e.prismGlobalObjectAlias=n;e.pgo=e.pgo||function(){(e.pgo.q=e.pgo.q||[]).push(arguments)};e.pgo.l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://prism.app-us1.com/prism.js","pgo"); | |
| pgo('setAccount', 'YOUR_ACCOUNT_NUMBER'); | |
| pgo('setTrackByDefault', true); | |
| pgo('setEmail', 'EMAIL_ADDRESS_GOES_HERE'); | |
| pgo('process'); | |
| </script> | |
| // Tracking code with track by default disabled | |
| <script type="text/javascript"> | |
| (function(e,t,o,n,p,r,i){e.prismGlobalObjectAlias=n;e.pgo=e.pgo||function(){(e.pgo.q=e.pgo.q||[]).push(arguments)};e.pgo.l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://prism.app-us1.com/prism.js","pgo"); | |
| pgo('setAccount', 'YOUR_ACCOUNT_NUMBER'); | |
| pgo('setTrackByDefault', false); | |
| pgo('setEmail', 'EMAIL_ADDRESS_GOES_HERE'); | |
| </script> | |
| // After visitor has accepted use of cookies run the following | |
| <script type="text/javascript"> | |
| pgo('process', 'allowTracking'); | |
| </script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment