Created
December 6, 2018 13:55
-
-
Save bogdan-mainwp/c0a77901e5d9fea0085c47e6973016f9 to your computer and use it in GitHub Desktop.
Custom snippet for disabling referral in Google Analytics
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
<?php | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
add_filter( 'mainwp_open_hide_referrer', 'myhook_mainwp_open_hide_referrer'); | |
function myhook_mainwp_open_hide_referrer() { | |
return true; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment