Created
June 2, 2018 15:33
-
-
Save lupin72/91b7f744beb0478c805e9a26b504b753 to your computer and use it in GitHub Desktop.
How to block Monterinsights' Google Analytics Cookies with iubenda Cookie Solution for GDPR
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
function block_monsterinsights_cookies($attr) { | |
$attr['type'] = "text/plain"; | |
$attr['class'] = '_iub_cs_activate'; | |
return $attr; | |
} | |
add_filter('monsterinsights_tracking_analytics_script_attributes', 'block_monsterinsights_cookies', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment