Installing Google Analytics

From ReOS Documentation Wiki

Revision as of 10:28, 8 February 2010 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To install Google analytics you need to copy and paste the Google Analytics Tracking Code into the bottom of your content. As you can see at Google Analytics Official Site : http://www.google.com/support/googleanalytics/

You can add it into all ReOS content pages very easily. Please follow the instructions below to add the tracking code to your site.

1.- Get from Google Analytics Official Site the code snippet.

It would look like the following :

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>

2.- Copy and paste into ReOS XSL Template.

Once you find the code snippet, edit your /tpl/<template_folder>/reos.xsl and paste the code just before </body>

3.- That's it !

ALL YOUR REOS SITE PAGES WILL HAVE THE GOOGLE ANALYTICS CODE !!!

Personal tools