Created
October 1, 2019 18:44
-
-
Save lukecav/4579aa8d80764754a0d5ddf24b8b3909 to your computer and use it in GitHub Desktop.
Anonymizing IP Addresses in the Google Analytics Configuration in the Google Site Kit Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( | |
'googlesitekit_gtag_opt', | |
function( array $options ) { | |
$options['anonymize_ip'] = true; | |
return $options; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://felix-arntz.me/blog/customizing-google-analytics-configuration-site-kit-plugin/
https://sitekit.withgoogle.com/news/site-kit-developer-preview/
https://support.google.com/analytics/answer/2763052