Download

Documentation

Print This page

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'] . '/';
}

https://d.pr/n/04Q5bg

 

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