Elxis CMS Forum

Support => General => Topic started by: tristate on March 27, 2008, 23:23:55

Title: Google Analytics - How to integrate?
Post by: tristate on March 27, 2008, 23:23:55
I was wondering how I could integrate google analytics so that I can see exactly what pages everyone is viewing..... Any help would be great....

Thanks, Chris
Title: Re: Google Analytics - How to integrate?
Post by: Ivan Trebješanin on March 28, 2008, 00:02:18
Hi tristate and welcome,
I'm afraid I don't understand the question.... integrate google analytics where ???
Title: Re: Google Analytics - How to integrate?
Post by: Farhad Sakhaei on March 28, 2008, 00:08:22
Hi Chris ,
You can disable Tiny MCE in the Global Configuration , and after it , create a module and set it to display in any language and also publish it to public front-end , so you can paste the Google Analytic code in the module and show it in all pages of your site ...
There are many another solutions too , but i think this solution is better for you bacause it is simple ...
Attention that by enabling the Tiny MCE Editor , all javascripts will be filter when you open that module again and save it ... So you should disable Tiny MCE Editor every time you want to modify the module's content ...
Good Luck and welcome to the Elxis
Title: Re: Google Analytics - How to integrate?
Post by: tristate on March 28, 2008, 00:28:57
Is there a way to add it into the header or footer? If not, how would I go about creating a module? unfortunately I know just enough PHP to be dangerous...

Thanks, Chris
Title: Re: Google Analytics - How to integrate?
Post by: Farhad Sakhaei on March 28, 2008, 00:35:55
Yes , you can add them into the template source , but that way that i mentioned is better for you , You can add a new module in the Modules -> Site Modules  ;)
Title: Re: Google Analytics - How to integrate?
Post by: tristate on March 28, 2008, 16:50:59
I added it to the footer.php file, I have no idea how to create a module.... thanks anyways for the help... I hope to see future improvements in Elxis...
Title: Re: Google Analytics - How to integrate?
Post by: Farhad Sakhaei on March 28, 2008, 16:56:14
For creating a module you don't need to write any code ...
It's very simple , Goto Administrator Panel -> Modules -> Site Modules -> Click on New Icon on the Toolbar !!!
Title: Re: Google Analytics - How to integrate?
Post by: rentasite on March 28, 2008, 21:40:24
I added it to the footer.php file

Expecially for Google Analytics its better to import it that way and not through a custom module.
Title: Re: Google Analytics - How to integrate?
Post by: CREATIVE Options on March 31, 2008, 20:55:02
Because of this post and my needs ! I create the attached module.

I have test it local & live but I didn't wait the nesery time to get the data from the Google, so here it is test it and I will post as soon as possible to Elxis Downloads.



[old attachment deleted by admin]