Educational ICT Virtualisation Specialist

Twitter LinkedIn E-mail
Precedence Technologies Ltd
Technology House, 36a Union Lane
Cambridge, CB4 1QB, United Kingdom
T: +44 (0)8456 446 800 / +44 (0)1223 359900
F: +44 (0)8456 446 899 / +44 (0)1223 359459

Jump To: Support > KB > SurfYourOwn > CustomCode

Adding custom code, e.g. Google Analytics

Google Analytics requires you to add code like the following on each page:
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'UA-12345678-1', 'auto');
  ga('send', 'pageview');


With SurfYourOwn, this is easily done. Look in cms/templates for your HTML templates. There will be a .html file for each template on your site (many sites will use only one template). Edit each .html file and add your custom code at the bottom.

From the admin pages, clear your site cache and each page will be automatically regenerated.

© Copyright Precedence Technologies 1999-2020
Page last modified on November 03, 2014, at 03:49 PM by sborrill