Zum Inhalt springen

Using Google Analytics in TYPO3

If you want detailed statistics about the visitors to your website, you can use a tool such as Google Analytics. In principle, it is not difficult to use, and Google Analytics can be integrated into your website in just a few minutes. Here we show you a way that does not require any additional extensions, as the necessary code is integrated directly via Typoscript. We also show you how to create a Google Analytics account in the first place.

Classic Google Analytics

Add the following line, as shown in the video, to the code provided by Google Analytics to anonymize the data transfer to Google. This ensures that the visitor's full IP address is not transmitted to Google.

_gaq.push(['_gat._anonymizeIp']);

Modern Universal Analytics

If you use the new Universal Analytics (currently standard), add the following line of code:

ga('set', 'anonymizeIp', true);
Updated: 17.07.2024