How to Host Google Analytics Locally on Your Child Site

Heads up: This page may include affiliate links. Read the full disclosure.

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.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.