I have a conceptually simple problem involving Google Analytics and Tomcat, but I cannot solve it.
We have Google Analytics set up for our production machine and it is working fine. I want to set up a Google Analytics account to monitor our test system so I can test various features without affecting/polluting our production data. I have a test system set up, and a test Google Analytics account. However, the test Google Analytics account never receives data from the test system.
Is there any way to set this "document.domain" property in Tomcat 6 so that this system will think it is "test.mycompany.com" instead of "localhost"?
I have examined both the Tomcat docs and the Google Analytics docs, but neither of them address this point directly.
Any help would be appreciated.
Open your firewall on the test server so google can access it and use add this in the snipet
_gaq.push(['_setDomainName', 'none']); //has to be place before _trackPageview
also open your firewall for ga
So, port 80 for HTTP, port 443 for HTTPS and the site(s):
Google Analytics doesn't send the tracking GIF for localhost, unless
is added before the
©2020 All rights reserved.