I am building a web application and using Google Analytics (analytics.js) for analytics. I recently noticed that analytics doesn't work correctly in Chrome.
I load analytics using a standard piece of code into a separate module and enable via requirejs. I checked that this script is working as expected and executing a piece of analytics.
When I look at the network traffic in Firefox, I see that the analytics script is loading from Google as expected (HTTP response 200):

However, when I launch the same page in Chrome, I get an HTTP 307 response indicating approximately: blank and analytics does not start:

However, if I paste the analytics URL directly into the Chrome address bar, a script will be found. Any ideas what is going on here or how to fix it?
javascript google-chrome google-analytics
Benj Jan 14 '15 at 14:40 2015-01-14 14:40
source share