How to Host Google Analytics Locally on Your Child Site

Published on January 2, 2020 by Sebastian Moran in MainWP Blog under Tips & Tricks
Heads up: This page may include affiliate links. Read the full disclaimer.

If you are looking at ways to improve the site performance of a site that is using Google Analytics for site analytics, then one option is to host Google Analytics locally on your child site.

There is a new plugin called Flying Analytics, which makes it very easy to be able to host Google Analytics locally on your child site. After you have installed and activated the plugin it will add a new admin menu too;

Settings > Flying Analytics

There will be two analytics JS options, which will show the recommended option is to go with the analytics.js file which is 44 KB in size the Minimal Analytics options are only 1.5 KB in size. You can find more about the difference between these two analytic JS options from this link

You will need to find your Google Analytics tracking ID UA code, which you can find from the property settings section in your Google Analytics account for your site. Then once you have entered the UA code you will need to click on the save settings button on the plugin settings page.

The option names that the Flying Analytics plugin creates are as follows;

flying_google_analytics_id
flying_google_analytics_method
FLYING_GOOGLE_ANALYTICS_VERSION

Using the Flying Analytics plugin will help improve your site load time by allowing you to easily locally host Google Analytics on your child site.

Share

Manage Unlimited WordPress Sites from One Dashboard!

  • Privacy-first, Open Source, Self-hosted
  • Easy Client Management
  • 15+ & 30 + Premium Add-ons
  • Bulk Plugins & Themes Management
Get Pro Now

Categories

Recent Posts

Search MainWP.com

[searchwp_form id="1"]