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

How to get the Page URL Report (Not Available by Default) in SiteCatalyst using DTM / s_code / Processing Rules

Nowadays you don’t see the page URL report by default in SiteCatalyst, your search for this readymade report will end in vain with just OOB (Out of the Box) configuration.

However small changes to the implementation can do wonders to bring back this data in SiteCatalyst as this value is already available in SC data warehouse and data feeds. The page URL is being fired up for all SC implemented sites but since there is no placeholder to take in value in SiteCatalyst this is not reported as a dimension.

Here is a way to check and confirm that the page URL is getting fired up…go to adobe.com> open the chrome debugger > go to the network tab > type /ss/ > click on the image request and then look for the value for g:….you will get to see the value as http://www.adobe.com… It will be similar to the below screenshot.



Now g is the variable which hold the page URL value. In order to get this information in SiteCatalyst the value need to be stripped and passed to any other custom variable you would want to assign this value. Now here is how you can do via DTM, through s_code and via Processing rules.

Method 1: Implementation via DTM
If your implementation uses Adobe's Dynamic Tag Manager, you can easily follow these steps:
  1. Log in to dtm.adobe.com and click the desired web property.
  2. Click the icon next to the Analytics tool.
  3. Under global variables, find an unused eVar and set it to D=gD= is Adobe's dynamic variable operator, and g is indicative of page URL.
  4. Save and deploy settings.

Method 2: Implementation using s_code
If your organization is not using DTM, you can assign the variable value within your core JavaScript file:
  1. Open your s_code.js file.
  2. Within the doPlugins() function, add a line containing this code, replacing XX with the desired eVar:
    s.eVarXX="D=g";
  3. Save the file and upload to your site.

Method 3: Using Processing Rules
If you are authorized to use Processing Rules, you can use them to automatically populate a variable with page URL:
  1. Log in to Adobe Analytics and go to Star Menu | Admin Tools | Report Suites
  2. Select the correct report suite, and go to  Edit Settings | General | Processing Rules
  3. Click Add Rule, and create the following rule (Always Execute):
    Overwrite value of [desired eVar] with page_url
  4. Click Save.


Now you know how can you easily get the URL data in SiteCatalyst using any of the above methods!

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