Is possible install/add Google Analytics to localhost project for do some test???
I already created an account in Google Analytics but I am not sure what that I need to write in the URL field...
I tried with 127.0.0.1/myFolder an localhost too.
The solution is ignore the domain when you want to test it locally.
You can do it adding this code to the generated google script:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXXX-X']);
_gaq.push(['_setDomainName', 'none']);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.