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


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

Don't miss our Biggest Discount of the year!
Get 40% OFF - use Discount Code "Thanks2019"