Roots Discourse

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

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?

You should be able to use the same approach as here:

i will try that, thanks.