Last active
August 2, 2019 14:16
-
-
Save wp-seopress/0f4869ebeff0495d5bfb035bc4c78944 to your computer and use it in GitHub Desktop.
Add custom tracking code with user consent
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 sp_custom_tracking($html) { | |
return "<script>my custom tracking code (eg: Facebook Pixel code)</script>"; | |
} | |
add_filter('seopress_custom_tracking', 'sp_custom_tracking'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment