Search code examples
tridiontridion-2011

How to Implement Google Analytics in SDL tridion web sites?


My Options :

  1. include the analytics code in page templates or CTs.

  2. create a component contains the analytic code and render it in Comonent presentation of the page.

which could be better or please suggest any other way out.


Solution

  • The first approach is normally preferable, since it allows you to include information about a component or page in your call to Google Analytics. And you may not even have to write it yourself, since there is a free extension called the Web Analytics Enabler, which is available here. I recommend that you check that out first.