Adding the code to your site

Adding the code to your site

April 2015 – the “Free line of code” offer

In response to the Google initiative of April 2015 to reward mobile-friendly websites with better positions in the mobile search engine results pages (SERP), Big Media are offering a FREE first step to being mobile-friendly

To read more about our offer and the simple t’s and c’s for use of the code – click here

You can insert the code into a single page, or a template file if you use a system such as WordPress. It’s very similar to inserting the Google Analytics code.

We would recommend you make a copy of the original file you are going to use, so you’ll always have it to revert back to.

If you are unsure of what you are doing with this code, please talk with your web developer or contact Big Media for assistance


image of wordpress sites logoFor WordPress, we recommend you insert the call into the functions.php page of your theme or child theme. This is the preferred method for queuing up the script so that it passes antivirus checks. Alternatively a second method is to paste the one line of code sent in your email into the header.php of your theme.

image of step one of two to insert free line of code in WordPress

Step 1: open the functions.php for your theme, using the online editor in WordPress or the editor of your choice

image of step two of two to insert free line of code in WordPress

Step 2: Add the ‘Load Gecko Musketeer’ code you’ve been sent

Save (and upload if necessary)


image of Pagebuild sites logoFor PageBuild (Dreamweaver) pages, the ideal place to put the Chameleon script call is immediately before the closing </head> tag in your document, as shown in the images below:

image of step one of three to insert free line of code

Step 1: find the closing </head> tag in your page

image of step two of three to insert free line of code

Step 2: add a new line immediately above it

image of step three of three to insert free line of code

Step 3: paste in the code you have been sent

Save and upload your page using FTP


The script will call an obfuscated javascript file called gecko-musketeer.js from our chameleon server. This in turn uses a set of associated resources to deliver the Chameleon functionality. The reasons why the code is obfuscated are firstly to compress it and secondly to provide us protection for our copyright content.

All test code will be valid for the month in which it is downloaded and for the subsequent month, giving you at least 4 weeks’ testing time. After this time the code will be removed from the server.