Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 299
AmateurCoder Avatar asked Dec 20 '22 17:12

AmateurCoder


1 Answers

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.

like image 198
Quirijn Avatar answered Feb 23 '23 18:02

Quirijn