Use classic asynchronous Google Analytics for All in One SEO Pack

As of version, All in One SEO Pack uses the new Universal Google Analytics code instead of the legacy classic asynchronous javascript.

If you would like to continue using the deprecated code, you can use our filter hook aiosp_universal_analytics and return a false value.


add_filter( 'aiosp_universal_analytics', 'use_classic_google_analytics', 10);

function use_classic_google_analytics( $universal ){

return false;



Skip to toolbar