Google Analytics and CMS Made Simple

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
superbacior
New Member
New Member
Posts: 4
Joined: Sat Feb 20, 2016 10:20 am

Google Analytics and CMS Made Simple

Post by superbacior »

Is there some plugins to activate Google Analytics?

Best Regards
Paweł
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Google Analytics and CMS Made Simple

Post 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...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Google Analytics and CMS Made Simple

Post 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'}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Google Analytics and CMS Made Simple

Post 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).
superbacior
New Member
New Member
Posts: 4
Joined: Sat Feb 20, 2016 10:20 am

Re: Google Analytics and CMS Made Simple

Post 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: "}"
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Google Analytics and CMS Made Simple

Post 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 }
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
superbacior
New Member
New Member
Posts: 4
Joined: Sat Feb 20, 2016 10:20 am

Re: Google Analytics and CMS Made Simple

Post by superbacior »

Thanks All! work now :)
Post Reply

Return to “The Lounge”