GooGle Analytics

We have 3 nice plugins for google analytics

viz;

1. Google Analytics by Jerome Bakker

http://community.elgg.org/pg/plugins/jeabakker/read/384520/google-analytics

2. Google analytics and adsense by Team Webgalli

http://community.elgg.org/pg/plugins/webgalli/read/398656/google-adsense-and-analytics-gpl

3. Google Tools by Evan Winslow

http://community.elgg.org/pg/plugins/ewinslow/read/502993/google-tools

enabling

  • Embedding Google Waves
  • Verifying your site for Google Webmaster Tools
  • Tracking pageviews with Google Analytics

and

4. A piwik open source analytics plugin by Christian Schneider

(not google - piwik)

http://community.elgg.org/pg/plugins/cschneider/read/385092/piwik-open-source-analytics

 

Being so all of these, I suppose.. adds the google analytics code in to the base of the page.

and even if u dont use these plugins we already have a elgg default analytics placeholder in the footer.php

But Google now after introducing the "Asynchronous Tracking Code" suggest that you place the analytics code "onto every page you want to track immediately before the closing </head> tag..."

Google advocates Asynchronous Tracking Code over traditional analytics code stating many benefits such as Faster overall page load time. Improved collection for short visits to rich media or script-heavy pages. Collecting (and retaining) user clicks that occur before the tracking code loads Google still supports the traditional analytics code "setup is optional. We'll continue support for the traditional JavaScript snippet"

But still if one needs to have all those additional benefits google offers.. ,

How and where should this be added in elgg to get all the benefits google says ?

Answering this question can help anyone going up this way thru elgg superhighway...

 

HaPPy ElGGInG :)

Do GooD :)