Mobile app version of vmapp.org
Login or Join
Angela700

: Setting up Google Analytics for an intranet website I'm trying to set up Google Analytics on an intranet site that is not publicly accessible. I read the help page that states you have to

@Angela700

Posted in: #GoogleAnalytics

I'm trying to set up Google Analytics on an intranet site that is not publicly accessible.

I read the help page that states you have to use a FQDN name, so I tried using site.domain.local but it complains that the "URL ends with an invalid top-level domain name".

I can find examples on Google of people successfully using .local in the past, but those were mostly from posts a few years back (like this one). Is this still possible or is there another way to track a website without a public URL?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

The way you have it setup right now will not work. Google Analytics JS code will not send the tracking hit (__utm.gif) to the GA servers.

There are a few options you might want to try:


Use an IP address instead of .local
Turn off domain hashing by setting _setDomainName("none")


The following is from Google Analytics help:


In order for Google Analytics to generate reports for your corporate
intranet usage, your corporate network must be able to reach the
Google Analytics JavaScript file (analytics.js). Try loading the file
in your browser using one of the following links:

www.google-analytics.com/analytics.js www.google-analytics.com/analytics.js
If you can reach one of these URLs from your internal network, you can
use Google Analytics to collect data from your intranet. Your intranet
must also be accessible through a fully qualified domain name such as
intranet.example.com. The Google Analytics JavaScript won't
work if your intranet can only be accessed using a domain name that
isn't fully qualified, such as intranet.

If all fails, consider using Piwik Analytics instead of Google Analytics.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme