Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Plugin Name: Swift GA Bypass GDPR
- */
- add_filter('swift_performance_option_cookies-disabled', function($value){
- if (isset($_COOKIE['GDPR-cookie-name']) && $_COOKIE['GDPR-cookie-name'] == 'desired-value'){
- return 0;
- }
- return 1;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement