Significant Data that can be tracked with the advent of the new ga.js!
1) Track outbound links easily by modify the actual URL that appears in the GA report by creating an arbitrary entry.
onClick="javascript: pageTracker._trackPageview("/my/virtual/url");
2) Track the downloadable stuff on your webpages.
onclick="pageTracker._trackPageview('/mydoc.pdf')
3) Track a webpage in multiple accounts. If you feel that one page is more important for you than the rest and that page exists in all of your websites, then use the below code for easy tracking.
var firstTracker = _gat._getTracker("UA-12345-1");firstTracker._initData();firstTracker._trackPageview();
var secondTracker = _gat._getTracker("UA-67890-1");secondTracker._initData();secondTracker._trackPageview();
4) Track sub-domains seamlessly if you have spanned multiple sub-domains for your website. Include the below stated code in your subdomains by replacing advertisingaxis.com with your domain name.
var pageTracker = _gat._getTracker("UA-12345-1");
pageTracker._setDomainName("advertisingaxis.com");
pageTracker._initData();
pageTracker._trackPageview();
5) Track visitors across your domains using a link; by transferring cookies throughout your domains. To send cookies through URL _link( ) function is used.
pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);
"pageTracker._link('http://newsite.com/test.html')
6) Track visitors across domains while they fill in the form placed in your website and move to another domain( when clicking on the form submit button). Cookies would be sent through the _linkByPost() function.
pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
pageTracker._linkByPost(this)"
7) Track Ecommerce Transactions effortlessly.
http://www.google.com/support/googleanalytics/bin/answer.py?answer=55532
var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
8) Add secondary earch Engines to your analytics report. You can add secondary search engines using the _addOrganic() function.
pageTracker._addOrganic("secaondary search engine name", "q");
9) Restriction of cookie data to a sub-directory.
Just alter your preferred cookiepath to the _setCookiePath() function.
pageTracker._setCookiePath("/advertisingaxis path/of/cookie/");
10) Track manually tagged # symbol url instead of question mark (?). Set the _setAllowAnchor() to true.
pageTracker._setAllowAnchor(true);
Tuesday, April 29, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment