Add custom tracking code with user consent

Since SEOPress 3.0

function sp_custom_tracking($html) {
    return "<script>my custom tracking code (eg: Facebook Pixel code)</script>";
}
add_filter('seopress_custom_tracking', 'sp_custom_tracking');

Last modified: August 5, 2018