Installing the Snoobi scriptThe following script should be placed on all pages of your website. Preferably in a header or footer so that new pages will automatically have the script.
NOTE: It is possible that there is a different script on your website. If that is provided by Snoobi or your Snoobi partner, you should use that.
<!-- Snoobi siteanalytics V2.4 --> <script type='text/javascript'> var _saq = _saq || []; (function() { var account = 'snoobiaccountname'; var snbpagename = ''; var snbsection = ''; var snbcookies = 'session'; var anchors = '1'; var snbscript = document.createElement('script'); snbscript.type = 'text/javascript'; snbscript.async= true; snbscript.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'eu2.snoobi.com/?account=' + account + '&page_name=' + snbpagename + '§ion=' + snbsection + '&anchors=' + anchors + '&cookies=' + snbcookies; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(snbscript, s); })(); </script>
Simple Snoobi script
<script defer src="https://eu2.snoobi.com/?account=snoobiaccountname"></script> Websites built in WordPress
For websites that are built in WordPress, you can use the special WordPress plugin to install the tracking code.
Snoobi script and Google Tag ManagerThe Custom HTML Tag type in GTM allows you to deploy the Snoobi script to your website To create the Custom HTML tag for Snoobi:
If needed, select Support document.write to enable calls to document.write() in your JavaScript code.
To inspect differences between versions of your custom HTML tags:
Finally, publish the changes to your website |
Installing the Snoobi script for snoobi.com Print
Modified on: Wed, 18 Jan, 2023 at 10:17 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.