Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created October 1, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukecav/4579aa8d80764754a0d5ddf24b8b3909 to your computer and use it in GitHub Desktop.
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
add_filter(
'googlesitekit_gtag_opt',
function( array $options ) {
$options['anonymize_ip'] = true;
return $options;
}
);