Note: All information is sent over SSL (secure HTTPS connection) to the Fanplayr servers.
To add these scripts you will need access to your SparkPay administration console, including access to your conversion scripts and template files.
Also note that your template needs to include jQuery (it should already do this).
User tracking code needs both an external script to be inserted in the head, as well as multiple template additions. They are as follows:
Click on Themes on the left bar.
Now click Edit below your current theme.
You should now have a menu to the left of your screen where you can edit your theme.
Click Theme / Header, then on HTML Editor.
Enter the below script just below the first line which should read
window.fanplayr.data.customerSegment = '##SESSIONCUSTOMERTYPE##';
window.fanplayr.data.customerGroup = '##SESSIONCUSTOMERTYPEID##';
Now click on Head Tags. Enter the following at the end of the input and click save.
Note that the details between the braces must be replaced with your details. Fanplayr will help you with these as necessary.
ACCOUNT_KEY: replace this with the Account Key supplied by Fanplayr
CURRENCY: replace this with the three character ISO currency, i.e.
ADD_TO_CART_URL: replace with a URL encoded version of a link to your shopping cart, with the addition of
This last value is a little complicated. Here is an example:
- URL to cart:
- With suffix:
- URL encoded: