hr0nix / BlueSkies

A simple canopy landing simulator
http://hr0nix.github.io/BlueSkies/
MIT License
13 stars 5 forks source link

Chrome and internet explorer local hang because of ga #57

Closed ilyapoz closed 10 years ago

ilyapoz commented 10 years ago

Here we have some information

https://developers.google.com/analytics/devguides/collection/analyticsjs/domains

Setting cookies on localhost

In some cases you might want to run analytics.js from a webserver running on localhost. To set analytics.js cookies, you need to disable the default cookie domain using:

ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none' });

Or more simply:

ga('create', 'UA-XXXX-Y', 'none');

ilyapoz commented 10 years ago

http://www.paulirish.com/2010/the-protocol-relative-url/

Resolution: the "//" notation is in the script for sites where https:// is used so that everything is loaded through https://. Earlier there used to be a ternary of the form

    ("https:" == document.location.protocol) ? "https://ssl." : "http://www."

in the ga.js. But they removed it later, don't know why.

So now chrome tries to look for file://www.google-analytics.com/analytics.cs.

In the end of the day, we can simply remove it on this site, because we don't plan ssl :)