Add Attribute to Google Analytics

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

You can use the aioseop_ga_attributes filter hook to add custom attributes to your Google Analytics script. For instance:

add_filter( 'aioseop_ga_attributes', 'add_seo_analytics_attribute' );

function add_seo_analytics_attribute( $attributes ){
// This adds the Cloudflare attribute "data-cfasync" and sets it to false.
$attributes .= 'data-cfasync="false"';
return $attributes;
}

 

 

[i]
[i]
Skip to toolbar