Roots Discourse

[Soil] How to add 'anonymizeIp' to Analytics call in Soil?


#1

Hi guys,

i am using soil to add_theme_support('soil-google-analytics', 'UA-XXXXX-Y', 'wp_footer');

in Germany it’s the law to add the option _gaq.push(['_gat._anonymizeIp']); so the last digits of the IP get anonymized.

how do i add this push-option to the soil-GA-setup?


#2

You should be able to use the same approach as here: https://github.com/roots/soil/issues/96


#3

i will try that, thanks.