Implementing Sayu Conversion Tracking

This is a guide to implementing Sayu's Conversion Tracking system onto your website, for existing Sayu customers.

What is Sayu Conversion Tracking?

Sayu conversion tracking will enable Sayu to get information on how your keywords are performing so that we can optimise your account as fully as possible. It provides us with information on how many visitors are coming to your site, where they are coming from and whether they 'convert'. The definition of a conversion is different depending on the type of site you run - it could be when a customer places an order, when they sign up for a free sample or newsletter, or even just when they send you an e-mail enquiry.

Why use Sayu Conversion Tracking?

With the Sayu Conversion Tracking in place Sayu are able to find out exactly which keywords in your internet advertising accounts are performing well, and which are performing badly. We can then adjust your bids accordingly and achieve the maximum ROI from your accounts.

Google provide a similar conversion tracking system as part of their Adwords package, but unfortunately it is notoriously inaccurate and also provides data at a very basic level - ideally our statisticians will have access to much more detailed data to ensure that your account is optimised as best as it can be.

What is the procedure for implementing the conversion tracking?

Implementing the conversion tracking is very simple for anyone who is familiar with HTML or web development. Your web development team or company should have no problem implementing it in under 30 minutes. If you are unable to arrange for them to implement it for you then we can do it too, but we will need your FTP login details (which will have been provided when you created your website).

If you wish to implement the tracking yourself, please follow the instructions below.

Back to Top

Implementing the code yourself

The Sayu conversion tracking scripts require two small bits of code to be added to your site. These code snippets will not be visible on your site and will not affect the layout of your pages.

Note: the code shown on this page is for demonstration purposes only and should not be used on your site - you will be provided with personalised code by one of our account managers when you sign up.

Visitor tracking code

The first snippet of code should be implemented on every single page of your site. The most common way to achieve this is to put it in a footer file, which most modern websites use. This file is included in every page on the site. The code will look like this:

<script type="text/javascript">
var sayuClientId = [[your unique id]];
var sayuTrackingHost = (("https:" == document.location.protocol) ?"https://www." : "http://www.");
sayuTrackingHost += 'sayutracking.co.uk/landing.js';
document.write(unescape("%3Cscript src='" + sayuTrackingHost + "?client_id=" + sayuClientId + "' type='text/javascript'%3E%3C/script%3E"));
</script>
<noscript>
<img height="1" width="1" border="0" src="http://www.sayutracking.co.uk/landing.js?js=0&client_id=[[your unique id]]" alt="" />
</noscript>

Please put this code within the <body></body> tags on your site. So if your site code looks like this:

<html>
<body>

My page content goes here

</body>
</html>

Then once you've implemented the code it will look like this:

<html>
<body>

My page content goes here

<script type="text/javascript">
var sayuClientId = [[your unique id]];
var sayuTrackingHost = (("https:" == document.location.protocol) ?"https://www." : "http://www.");
sayuTrackingHost += 'sayutracking.co.uk/landing.js';
document.write(unescape("%3Cscript src='" + sayuTrackingHost + "?client_id=" + sayuClientId + "' type='text/javascript'%3E%3C/script%3E"));
</script>
<noscript>
<img height="1" width="1" border="0" src="http://www.sayutracking.co.uk/landing.js?js=0&client_id=[[your unique id]]" alt="" />
</noscript>

</body>
</html>

In order to ensure that the tracking has no speed implications for your site, we recommend that you place the tracking code right before the </body> tag - this will ensure that it only loads the Sayu tracking after all of your other page content has loaded.

Conversion tracking code

Once you've implemented the visitor tracking code you just need one more piece of code on your conversion page. Deciding on the conversion page depends on the type of site that you have. If you are an online shop then it might be the page that says "Thank you for your order"; if your site is for a newsletter sign up then it might be the page that says "Thank you for signing up for our newsletter"; and if your site is mainly targeted at getting e-mail enquiries then it might be the page that says "Thank you for sending an e-mail to us."

On this conversion page you need to implement a piece of code that will look like this:

<script type="text/javascript">
var sayuClientId = [[your unique id]];
var sayuConversionValue = 0;
var sayuTrackingHost = (("https:" == document.location.protocol) ?"https://www." : "http://www.");
sayuTrackingHost += 'sayutracking.co.uk/conversion.js';
document.write(unescape("%3Cscript src='" + sayuTrackingHost + "?client_id=" + sayuClientId + "&cv=" + sayuConversionValue + "' type='text/javascript'%3E%3C/script%3E"));
</script>
<noscript>
<img height="1" width="1" border="0" src="http://www.sayutracking.co.uk/conversion.js?js=0&client_id=[[your unique id]]&cv=0" alt="" />
</noscript>

Again, please make sure you put the code between the <body></body> tags. It does not matter if you have both the visitor and conversion code on your conversion page, or just the conversion code.

Using tracking on a secure site

The Sayu tracking code automatically determines whether it is on an unencrypted web page (http) or a secure web page (https). It does this using JavaScript. However the small number of users who have JavaScript disabled may get a message warning about non-secure items on a secure web page. To resolve this, please change the section of code that reads http://www.sayutracking.co.uk to read https://www.sayutracking.co.uk when the code is used on an encrypted page (https). The example below shows the visitor tracking code used on a secure site:

<script type="text/javascript">
var sayuClientId = [[your unique id]];
var sayuTrackingHost = (("https:" == document.location.protocol) ?"https://www." : "http://www.");
sayuTrackingHost += 'sayutracking.co.uk/landing.js';
document.write(unescape("%3Cscript src='" + sayuTrackingHost + "?client_id=" + sayuClientId + "' type='text/javascript'%3E%3C/script%3E"));
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.sayutracking.co.uk/landing.js?js=0&client_id=[[your unique id]]" alt="" />
</noscript>

Advanced conversion tracking - giving Sayu more information

If you want Sayu to track different types of conversions, or you want to tell Sayu about the value of the orders you receive you can use the cv and sayuConversionValue variables in the conversion script. Simply replace the 0 in the cv=0 and sayuConversionValue = 0 sections of the code with a different value. For example cv=1 could be a newsletter subscription while cv=2 could be an e-mail enquiry. Or cv=342.34 could be an order worth £342.34 while cv=565.34 could be a £565.34 order.

Using this feature is entirely optional, but if you feel that you are able to implement this then it may help us to manage your account even more efficiently. Please talk to your account manager for more details.

Here’s What People Say About Us

Knowledgeable
We cant thank Sayu enough for all of the great support over the years and now even more the transformation of our Google Adwords account. Catherine has managed to drastically improve our conversions and reduce the cost at the same time! Many thanks again to the great team at SAYU!
stephen
Outstanding!
Knowledgeable, professional & reliable. We are in safe hands!
Grant Wallett
Customer for over 8 years
We have been working with Sayu for over 8 years and have enjoyed a consistent, professional service on all one off projects and repeat services from SEO, PPC and shopping feeds to hosting.
J Duggleby