Note: This article is intended for advanced users only. We recommend installing the WildJar tracking code using Google Tag Manager.
Note: This will directly edit the code on your site. Be careful not to delete anything.
To install the WildJar dynamic script into Wordpress, please follow the below instructions.
- Log in to your Wordpress Dashboard
- Navigate to Appearance and Select Editor
- On the right side of the page underneath templates, look for the head.php and select it. (If there is no head.php - then you can select the header.php file
- The head.php file should load in the editor window, and scroll to the very bottom of the code, or until you see the </head> tag
- Add the WildJar Dynamic Script immediately ABOVE the </head> tag as below:
<!----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>
</head>
Alternatively, if you aren't confident adding scripts to websites, we suggest to download a Plugin such as Tracking Code Manager and select to fire in the <head> tag:
https://wordpress.org/plugins/tracking-code-manager/
This enables you to install the WildJar script through a plugin, without editing your website source code.
Comments
0 comments
Please sign in to leave a comment.