How to add a tyre size lookup to your existing website
Adding a tyre size lookup to your existing website is a great way for your customers to connect with and start the buying process on your new Tyres and Service website.
To add this great feature to your existing website all you need to do is to ask your web developer to add the following code snippet to your website.
<script>
var tyreSite = "www.mytowntyres.co.uk";
</script>
<script src="https://assets.tyresandservice.co.uk/scripts/tyreclick/tyresize.js"></script>
Make sure you change the website address in red to your own Tyres and Service website's address otherwise you will be sending your customers to the wrong website!.
Multiple Fitting Centres
If you manage multiple fitting centres, we provide a seperate script that allows you to represent them all on a single tyre size search using a dropdown menu.
The snippet for this tyre size search is slightly different to the one above, as you need to provide details for each of the fitting centres you are representing.
<script>
var tsControl = {
sites: [
{ "website" : "www.mytowntyres.co.uk", "name" : "My Town Tyres" },
{ "website" : "www.iota.tyresandservice.co.uk", "name" : "Halifax Tyres" }
]
};
</script>
<script src="https://assets.tyresandservice.co.uk/scripts/tyreclick/tyresize-dropdown.js"></script>
For every fitting centre that you would like to add to the drop-down, you need to include the line of code that begins and ends with a curly brace "{ }". For example, the following line represents a single fitting centre:
{ "website" : "www.mytowntyres.co.uk", "name" : "My Town Tyres" }
For each fitting centre, you need to supply 2 pieces of information:
- The URL address of the website (shown in red above). This is the URL of the fitting centre you are currently adding. Please note you do not need to include the 'http://' that is sometimes added if the URL is copied and pasted from a browser address bar.
- A name for the fitting centre (shown in blue above). This is the name that appears when a user opens the drop-down box to select a fitting centre.
Once you've added the code above, you should now be able to submit your search to a particular fitting centre, based on the option you've chosen from the drop-down.
Back to Knowledge Base