Using Google Tag Manager is the quickest and easiest way to install the WildJar tracking script.
The WildJar tracking script
<script type="text/javascript">(function() { var av = document.createElement('script'); av.type = 'text/javascript'; av.id = 'TrkCallCom'; av.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'trkcall.com/scripts/' + window.location.host.replace(/^www\./, '') + '.js?t=' + (new Date().getTime()); var h = document.getElementsByTagName('head')[0]; h.parentNode.appendChild(av); })(); </script>
Adding the WildJar tag to your GTM container
- Log into your Google Tag Manager account and select your container
- Click New Tag
- Name your tag with something descriptive, like WildJar, and click Tag Configuration
- Choose Custom HTML under Custom as the tag type
- Copy the WildJar tracking script from the beginning of this article and paste it into the HTML text box
- Click Triggering and select All Pages
- Click Save in the top right corner
- Publish your changes
You have now successfully added the WildJar tracking script to your website using Google Tag Manager.
Comments
0 comments
Please sign in to leave a comment.