//used for Google Analytics in the GABO project and only called for that project. stats generated are in
//a shared account that can be accessed by both Intuit and Google. Used for funnel tracking to determine fallout on the
//way to publishing, or in the domain registration flow.

//use the async method so code can go in the header and not create performance issues
var _gaq = _gaq || [];

//set account to our Intuit Websites Blog account id 
_gaq.push(['_setAccount', 'UA-23470524-1']);

//by setting to none multiple cookies can be used and we need to link between domains
_gaq.push(['_setDomainName', 'none']);

//allows a link method to connect between two domains. examples for get and post:
//<a href="http://www.my-example-blogsite.com/intro.html" onclick="_gaq.push(['_link', 'http://www.my-example-blogsite.com/intro.html']); return false;">See my blog</a> ... <form name="f" method="post" onsubmit="_gaq.push(['_linkByPost', this]);">

_gaq.push(['_setAllowLinker', true]);

//not needed if domain set to none... will only track top level domains. we do not have to track sub-domains in this case. uncomment if using sub-domains
// _gaq.push(['_setAllowHash', false]);

 function GoogleAnalyticsTrackPage(pageName) {
    _gaq.push(pageName ? ['_trackPageview', pageName] : ['_trackPageview']);
    
}
(function () {
    var ga = document.createElement('script');
    ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

//track the page view.
//GoogleAnalyticsTrackPage();
//Sub pages and dialogs can be tracked by calling GoogleAnalyticsTrackPage('/page/name');


