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.

Google Analytics 4

Analytify is fully compatible with GA4
Migrate to GA4 Now
* Hurry up, Goode bye UA Universal Analytics
Analytify is fully Compatible with Google Analytics 4 (GA4)
Buy Analytify Now