Jump to content

Google Analytics - where/how to add anonymizing snippet?


Recommended Posts

hi, anyone here who knows how to add the anonymizing code snippet as described here :
http://code.google.com/intl/de-DE/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp

where do I need to add this code now?

var _gaq = _gaq || [];
_gaq.push (['_setAccount', 'UA-XXXXXXX-YY']);
_gaq.push (['_gat._anonymizeIp']);
_gaq.push (['_trackPageview']);



unfortunately the default module does bot offer any further configuration except to add my UA ID.

Thanks
Phil

Link to comment
Share on other sites

hi, anyone here who knows how to add the anonymizing code snippet as described here :
http://code.google.com/intl/de-DE/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp

where do I need to add this code now?

var _gaq = _gaq || [];
_gaq.push (['_setAccount', 'UA-XXXXXXX-YY']);
_gaq.push (['_gat._anonymizeIp']);
_gaq.push (['_trackPageview']);



unfortunately the default module does bot offer any further configuration except to add my UA ID.

Thanks
Phil



any idea? where can I find the code which is added by the default GA module?
Link to comment
Share on other sites

  • 4 weeks later...
hi, anyone here who knows how to add the anonymizing code snippet as described here :
http://code.google.com/intl/de-DE/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp

where do I need to add this code now?

var _gaq = _gaq || [];
_gaq.push (['_setAccount', 'UA-XXXXXXX-YY']);
_gaq.push (['_gat._anonymizeIp']);
_gaq.push (['_trackPageview']);



unfortunately the default module does bot offer any further configuration except to add my UA ID.

Thanks
Phil



any idea? where can I find the code which is added by the default GA module?


I learned that the code is within the ganalytics module. luckily and thankfully silbersaiten.de changed the original module and provided the new module to me and it works flawlessly, I am now able to get rid of this data protection leak and can use analytics anonymized (the google code snippet is cutting I believe the last 4 digits of the IP address). great service, silbersaiten. hopyfully the new module is made available to the public, too, for those where local law prohibits 'collecting' IP addresses due to data protection laws.

Phil
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...