Jump to content

Unable to add script to header.tpl


Recommended Posts

So I am trying to add a experimental google analytics code to my websites header, the normal code works fine as it is through a module, however I need to add a special piece of code to my header and no matter where or how I place this code, the website then loads blank?  Anyone know why this?
 

The forum is blocking me adding the code.. SO i have attached it as a text file... ok I am unable to attach it as a text file as well for some reason :/

 

I have also tried adding {literal} to the beginning and end and although the website then loads, google is still unable to find the code within the website.. am I missing something or is this just not possible?

 

Edited by omgzhobbs (see edit history)
Link to comment
Share on other sites

your code that you're trying to use probably uses brackets { } 

if so, remember about {literal}{/literal} tags

 

Yeah the code has masses of {'s and }'s, I didnt even think about that.. how would I work around this?  I need the code to ideally load in the first 256kb of data aswell.. tricky one with so many files loading at the same time.

Link to comment
Share on other sites

×
×
  • Create New...