Skip to main content

Customize Google Analytics New ga.js Tracking Code

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.


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 with your domain name.

var pageTracker = _gat._getTracker("UA-12345-1");

5) Track visitors across your domains using a link; by transferring cookies throughout your domains. To send cookies through URL _link( ) function is used.


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.



7) Track Ecommerce Transactions effortlessly.

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.


Popular posts from this blog

As the testing industry grows and matures, more testers will likely:

But before the testing industry can really prove its worth, more testers will need to know  why  they’re testing -- before they start running tests. To answer “why", you must first formulate a sound hypothesis. Your hypothesis needs to get to the core of what you’re trying to achieve through testing. Testers who start with solid hypotheses have better odds of running valid tests with significant results. Valid tests can lead to big conversion gains. Big conversion gains can equate to big revenue increases. And, of course, big revenue increases mean your company’s doing well. The rest is a no-brainer. If you’re helping your company profit, you might just get that bonus, after all!

Learn Adobe Analytics Marketing Reports & Analytics (SiteCatalyst) : Free Self Implementation Kit for Study

Here is the Adobe® Analytics marketing reports & analytics (SiteCatalyst) self Implementation kit to practice & learn - /. There is no sandbox login, but you can see SiteCatalyst beacon firing up using browser debugger. SiteCatalyst Implementation Guide: Best Buy:

Measuring conversion rates on “thank you” pages provides?

Harnessing the power of ‘thank you’ is important. It’s also often overlooked.  Testers tend to get so wrapped up generating leads and sales, they forget to test the receipt / thank you page. But testing this last step in the sales funnel offers a golden opportunity. That’s because roughly 40% of traffic landing on your thank you page will convert again for something else.  Take advantage of this high conversion rate by testing ways to bring your customers back – again and again. When testing thank  you pages, make sure to think about your audience. Find ways to cater to both first-time and return visitors. Both have different needs. Consider testing different offers for each group to keep them coming back. Test  your thank you emails, too. Did you know new customer thank you emails have the highest open rate of any message you’ll ever send? That’s an insane amount of attention you’ll never get from your customers again. Test ways to extend conversions in your thank you emails.