Google Analytics User Account -
i have web app uses google analytics hosted on http://example.com. next google analytics js included in every page
var _gaq = _gaq || []; _gaq.push(['_setaccount', 'ua-99999999-1']); _gaq.push(['_trackpageview']); (function () { var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(ga, s); })(); am right in assuming business relationship id above 'ua-99999999-1' refers google analytics account?
if run application locally, or on domain other example.com, traffic thereon sent ga account, or business relationship id work when application running on domain associated ga business relationship (example.com)?
yes, if firing google analytics tracking code (gatc) on development environment sending requests google , appear in reports.
if wanted maintain development, test , production environments separate create separate profiles, e.g.
ua-9999999-1 production ua-9999999-2 test ua-9999999-3 dev have here - https://developers.google.com/analytics/devguides/collection/gajs/gatrackingsite - might of interest.
google-analytics
No comments:
Post a Comment