How to install Google Analytics onto site without internet access

Remember that GA runs client side in the browser and if your intranet visitors do not have access to GA servers via the internet then GA is not going to work for you.

With that said, Joost De Valk’s GA plugin has a way to manually enter the UA code rather than using a connection to Google to pull available UA codes.

GA manual enter UA code

The method shown in the image above will work if the server has no internet access.

If your intranet users don’t have internet access and because of this GA is not an option then you can look at using something like Piwik instead.

You can install Piwik on the intranet server and use WP-Piwik to bridge Piwik with WordPress