You might have Google analytics code that you want to add to your Spawtz skin, either to track page views, or perhaps conversions for determining the effectiveness of an advertising campaign.  Or you might need to add similar code for tracking Facebook conversions, or LinkedIn, or any such companies through whom you want to track the effectiveness of an advertising campaign.


There are various places where you can/should add this tracking code to allow those companies to start tracking visits to your Spawtz page.


The first is the Spawtz skin page which will then cause the tracking code to be loaded on all pages that are displayed in your skin on the Spawtz side (for example, the fixtures and standings pages).


To add tracking code to these pages, do the following:


1) Log in as an administrator

2) Click "Config"

3) Click "Edit Skin Html"

4) Copy the tracking code from the advertising company, and paste it somewhere within the "<head>" tag of the html

5) Click "Update Skin File"


That tracking code will now be displayed on all the pages within your Spawtz application that are skinned to match your site.


Additionally, you will also want to add this tracking code to the user control panel pages - ie, "My Profile", "My Teams" etc, which also will cause the tracking code to be added to the mobile optimised registration process.  To add the tracking code to these pages:


1) Log in as an administrator

2) Click "Config"

3) Click "Customise User Control Panel Template"

4) Copy and paste the tracking code from the advertising company into the "Custom javascript" section of page.  NB: In this case DO NOT INCLUDE THE SCRIPT TAG that may have been supplied by the advertising company.  IE, if they've said "Embed this into your pages:


<script type="text/javascript">
var code = 1;
var array = []
function doThing() { 
array[0] = code;
}
</script>

You should omit the "<script" and "</script>" sections, and instead just use this bit:


var code = 1;
var array = []
function doThing() { 
array[0] = code;
}

5) Click "Update Javascript"


That tracking code will now appear in all the pages that are styled via the user control panel styling including the mobile optimised registration process.