Page 1 of 1

Problem adding Google Analytics

Posted: Mon Apr 27, 2009 6:39 pm
by monnolyth
I am running Version 1.5.3 on a Linux Server

I am having a problem adding Google Analytic codes to my templates.  CMSMS is stripping out part of the code when it publishes the pages. 

Is there a work around for this.  Like a tag or something like that that I can wrap around the code that will tell CMSMS not to change or removed the code.  If not, is there another way?

Re: Problem adding Google Analytics

Posted: Mon Apr 27, 2009 6:46 pm
by Jeff
Where are you triing to put the code for GA? In the pages, the template, a GCB, or in a UDT?

Jeff

Re: Problem adding Google Analytics

Posted: Mon Apr 27, 2009 8:10 pm
by vigor
Use the format below and put the code in the normal place just below . Should work.

Code: Select all

{literal} 
Analytics code here
{/literal}

Re: Problem adding Google Analytics

Posted: Mon Apr 27, 2009 8:13 pm
by RonnyK
Or create a GCB where you put the logic.... First set the GlobalSettings to NOT allow a wysiwyg on GCBs.

Ronny