Migration Automation Tool: Migrate Google Analytics GA3 / Universal Analytics(UA) to GA4 using Google Tag Manager

Image
Here is POC on Migrating GA3 / Universal Analytics to GA4 using Google Tag Manager. Demo Covers: Creation of GTM Account, Container and Workspace for tags  Adding GTM codes to webpages and enabling GTM Universal Analytics Property Creation in GA GTM UA / GA3 Pageview tag creation GA3 Event tag creation by capturing CSS selector for the button event trigger GA4 Property Creation and linking via GA Enabling GA4 pageview tag  Using GTM GA4 migrator tool to migrate GA3/UA event tags to GA4 Scanning though the GA4 event migration Validation using GTM debug mode Report validation

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.

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

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);

Popular posts from this blog

Website Optimizer - A/B Test

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

Mobile Website SEO | How to SEO for Mobile Websites