Adding a Tracking Code to your website
In order for GatorLeads to track any stats, you need to put the Leads tracking code on your website.
The tracking code is an embedded code which looks like "<script data-cfasync='false' type='text/javascript' defer='' async='' src='https://t.wowanalytics.co.uk/Scripts/ssl/c673830a-536c-4dcb-9832-4023fde60b13.js'></script>"
This code varies so please do not copy & paste the above code.
We are aware that you may have built your own website from scratch, or you may be using a CMS such as Wordpress.
In this guide we will show you where to put the tracking code on your site if you are using Wordpress and Wix.
Finding your Tracking Code
To find your tracking code you need to be an Admin user in GatorLeads.
1. Hover over Admin, select Client Admin -> Embed Tracking.
2. The script above starting with <script is your tracking code.
Adding Tracking Code to Wordpress
Install the Wordpress GatorLeads Plugin
Activate the plugin.
Go to ‘settings’ > ‘GatorLeads’
Add your client ID and click 'Save Changes'.
Adding Tracking Code to Wix
To add the tracking code to a Wix site it has to be a custom domain i.e. you must have multiple domains in order for this to be available to you.
- Select 'Settings' from your site dashboard.
- Under Advanced Settings select the 'Tracking & Analytics' tab.
Using the GatorLeads Plugin
Our GatorLeads Plugin is to help you add the tracking code onto your website, specifically your Wordpress site.
Follow this link to download the plugin. It used to be under WowAnalytics so do not get confused and attempt to download from that name.
Adding Tracking to a Parallax Website
The term ‘parallax’ refers to the apparent movement of objects when viewed from different positions to create a sensation of depth or distance to your website.
If your website uses parallax scrolling and has a one-page design, don’t worry. GatorLeads' tracking won’t just show you single visits to your one-page website. The additional GatorLeads code will track every menu click.
In addition to the standard GatorLeads tracking code (no change there so leave as is), please pass this code to your web designer/developer. This code needs to be placed on the page load function of your site.
It makes sure that every navigation click on your website fires the GatorLeads tracking code. This code may require some slight modification or may even need to be deployed specifically to your website’s CMS platform.
Code example for Parallax site
// Configure WOW to track the top menu
jQuery(‘#nav a’).on(‘click’, function () {
// get the custom title
var element = jQuery(this);
var title = element.html();
var url = element.attr(‘href’);
// if the url starts with a # then it is an anchor tag
if (url[0] === ‘#’)
url = document.baseURI + url;
// add the
_wow.push([‘trackPageView’, title, url]);
});
Code example for custom values
<script type='text/javascript'>
var _wow = _wow || [];
(function () {
try{
_wow.push(['setClientId', 'insert client code']);
_wow.push(['enableDownloadTracking']);
// set custom values
_wow.push([‘SetCustomData’, ‘val1’, ‘val2’, ‘val3’]);
// track page
_wow.push(['trackPageView']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript'; g.defer = true; g.async = true;
g.src = '//t.wowanalytics.co.uk/Scripts/tracker.js';
s.parentNode.insertBefore(g, s);
}catch(err){}})();
</script>
If you’re using a bespoke CMS, please simply add our tracking code into the <head> of your website template file. If you are encountering issues with this, please contact Support.
0 Comments
Add your comment