• I have a network of wordpress multisites that will all use the same analytics id. What file can I edit to add my analytics js so they will work across the entire network?

    I looked at the plugins but couldn’t find one. Monsterinsights – I don’t want to connect my data with them.

    thank you!

    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Networking WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Hi Superduperguy9399,

    You can use plugin such as Insert Header and Footer then add the tracking script in header.

    If you want to avoid using a plugin to add Google Analytics and other tracking scripts, you can add and insert the tracking code in your theme’s header.php file.

    Much better to create a child theme and copy the header.php in child theme directory, so that even if you update your parent theme, your tracking script in header.php will remain and will not be overwritten by your theme update.

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘wordpress multisite and google analytics’ is closed to new replies.