Anonymize Google Analytics data

Hi There!

I’m trying to anonymize my Google Analytics data on my X site. I’ve installed the Google Analytics extension and added my Google Analytics ID there.

Now I’m looking tot add:

, { ‘anonymize_ip’: true });

To my Google Analytics script but can’t find where to put it. I’ve already read https://theme.co/apex/forum/t/extension-google-analytics/84 this thread but it seems the “analytics part” has changed since then cause I only have to input my Google Analytics ID now. (the only extra option is to add Meta tag, but that doesn’t seem te be the place where to add the code, right?

Could you please explain where I should put the anonymize code?

Hi @FerryTimmer,

Since you needed to modify the code, please don’t use the Google Analytics extension.

You may install this third party plugin

Then add you complete analytics code in Scripts in Header

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.