Home » Add custom tracking code with user consent
Add custom tracking code with user consent

SiteSEO provides a way to add custom tracking code with user consent programmatically using WordPress hooks.

Hook: siteseo_custom_tracking

Since: 1.0.0

Description: Let's you add a custom tracking script.

Usage:

function siteseo_extended_custom_tracking($html){
    return '<script>Your Custom script here</script>';
}
add_filter('siteseo_custom_tracking', 'siteseo_extended_custom_tracking');

Note: We suggest you use siteseo_extended_ as a prefix for every callback function, to keep things consistent and non-conflicting.

    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list