Download
Documentation
Print This page — Print the full Google Analytics on Multisite Domain Mapping documentation

Google Analytics on Multisite Domain Mapping

We have created a filter (code snippet is below) which you can use in your theme functions.php file to see the stats of correct multisite domain.

add_filter( 'analytify_page_path_filter', 'analytify_fix_domain_mapping', 10, 2 );

function analytify_fix_domain_mapping( $filter, $u_post ) {
return $filter = 'ga:pagePath==' . $u_post['host'] . '/';
}

Note: Add the above code in your theme functions.php file.

Black Friday Sale: See which campaigns bring you sales this season.
Save 60% OFF Today 
close-image