adding tracking pixel code for banner system to "body" tag

GK User
Tue May 21, 2013 6:47 am
hi there

i am using an ad network that requires a "script" to be put on the "main body templkate page" ijust before the </body> tag....

however i cant find that on this template. can you assist?

this is the code that needs to be placed before the /body tag



Code: Select all
  <script type="text/javascript">
adroll_adv_id = "P5EVFP7PCVGGHD7ZR2RFSV";
adroll_pix_id = "VON2AX34DRGDDHL5UKSDEP";
(function () {
var oldonload = window.onload;
window.onload = function(){
   __adroll_loaded=true;
   var scr = document.createElement("script");
   var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
   scr.setAttribute('async', 'true');
   scr.type = "text/javascript";
   scr.src = host + "/j/roundtrip.js";
   ((document.getElementsByTagName('head') || [null])[0] ||
    document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
   if(oldonload){oldonload()}};
}());
</script>
User avatar
Platinum Boarder

GK User
Tue May 21, 2013 8:33 am
The </body> tag you should find in template/layout/default.php file.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.