Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Enforcing _anonymizeIp in GA in DTM

davidh97534450
Level 2
Level 2

Hi There,

we are in the process of enabling the "_gat._anonymizeIp" setting in a client's standard GA tool in the DTM, for GDPR updates

I have attempted to do this by:

- Going in to the Google Analytics tool in the DTM

- opening the "Customize Page Code" section

- adding the code:

var _gaq = _gaq || [];

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

(modified code from Tracking Code: The _gat Global Object  |  Analytics for Web (ga.js)  |  Google Developers )

This doesn't seem to be enabling the anonymize IP, as I can't see the "&api=1" param being passed to the Google tracking call (ref: IP Anonymization in Analytics - Analytics Help )

Has anyone else managed to enable this in GA/DTM?

Any pointers appreciated!


Regards,

David

0 Replies