Page 1 of 1
Google Analytics and CMS Made Simple
Posted: Fri Apr 22, 2016 2:50 pm
by superbacior
Is there some plugins to activate Google Analytics?
Best Regards
Paweł
Re: Google Analytics and CMS Made Simple
Posted: Fri Apr 22, 2016 5:34 pm
by Dr.CSS
No. You get the code from google and paste it into your template...
At least that is what I've always seen...
Re: Google Analytics and CMS Made Simple
Posted: Fri Apr 22, 2016 6:27 pm
by calguy1000
It's as simple as 1-2-3
1: Create a new template in Design Manager.
Though not absolutely necessary it should be of type 'Core::Generic'. just so it'll help you find it later.
2: Paste in your google analytics code and give the new template a name. like 'google_analytics'.
3: Open your page template and in the 'head' section or wherever you want the analytics code to be output insert {include file='cms_template:google_analytics'}
Re: Google Analytics and CMS Made Simple
Posted: Sun Apr 24, 2016 12:27 am
by Jeff
Or you can paste it into the Global Metadata box in Setting-Global Settings, then use {metadata} in all your templates (which most people do anyway).
Re: Google Analytics and CMS Made Simple
Posted: Mon Apr 25, 2016 4:35 pm
by superbacior
thanks for response but now I have this problem:
"(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){" - Unexpected "[", expected one of: "}"
Re: Google Analytics and CMS Made Simple
Posted: Mon Apr 25, 2016 11:27 pm
by Jo Morg
Please use the search functionality of the forum... this has been asked and answered times and times again...
Again: Just make sure the opening and closing brackets have spaces after and before respectively... so just add a space after every { and one before every }
Re: Google Analytics and CMS Made Simple
Posted: Tue Apr 26, 2016 10:21 am
by superbacior
Thanks All! work now
