Portal Home > Knowledgebase > Articles Database > How to set up google analytics for the entire server?
How to set up google analytics for the entire server?
Posted by sharmaine1111, 01-02-2010, 11:34 PM |
I have a VPS and I want to use Google Analytics instead of Awstats. How do I set this up in the server so that when i create an account, google analytics will be created / embedded automatically, just how like Awstats is.
Im using centos 5.x with cPanel
|
Posted by zoticaic, 01-03-2010, 12:12 AM |
You can use Apache mod_layout to inject footer to all content served in which the footer will have your analytics code.
http://wannabe.guru.org/scott/hobbies/apache/
|
Posted by sharmaine1111, 01-03-2010, 08:18 AM |
sorry but i dont understand, this will add a "footer" to all websites and it might break the layout of all these websites?
|
Posted by zoticaic, 01-03-2010, 08:25 AM |
No necessarily, since google analytics code is client script and added to the footer. It should not interfere with any website's output.
|
Add to Favourites Print this Article
Also Read
rvskin (Views: 606)
BetterLinux? (Views: 610)