SkyPHP / skyphp

PHP5 Framework
http://switchbreak.com/skyphp
17 stars 38 forks source link

Analytics #208

Closed hexxorleiva closed 11 years ago

hexxorleiva commented 11 years ago

Added the latest Google Analytics syntax with a inclusion so that all subdomains of cravetickets.com are tracked (including beta.cravetickets.com).

hexxorleiva commented 11 years ago

_setDomainName sets the cookie that Google Analytics Tracking Code (GATC) uses to be able to include tracking on sub-domains of the domain that is stated in the _setDomainName. Otherwise the domain (cravetickets.com) is tracked and none of the sub-domains are included because it wouldn't match the document.domain property in the DOM.

https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._setDomainName

But this is my assumption that since I declared $google_analytics_account in the config file that the tracking code that is inside templates/html5/html5.php that I added will only be for beta.cravetickets.com. I think in over-looking it now that I might be wrong?

hexxorleiva commented 11 years ago

Please view with the cravetix analytics branch.