Use CDN for Google Analytics Autotrack.js

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

Buy Now

The following filter enables you to call the Google Analytics Autotrack.js from a CDN source instead of from locally within All in One SEO Pack:

add_filter( 'aiosp_google_autotrack', 'sfwd_aiosp_google_autotrack' );

function sfwd_aiosp_google_autotrack( $autotrack_url ) {
	$autotrack_url = 'https://cdnjs.cloudflare.com/ajax/libs/autotrack/2.4.1/autotrack.js';
	return $autotrack_url;
}

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar