What does it mean?
Google has announced an official end-of-life date for Google Analytics Universal Analytics (GA3) as July 1, 2023. The standard Universal Analytics properties will no longer process data.
This document guide walks you through the process of migrating an existing Universal Analytics implementation to use GA4
Below are the steps and instructions to activate the GA4 on your website.
What should I do?
Install Site Kit
- Install Google Site Kit Plugin. (Google Reference)
- Log in to the word press website.
- In the left navigation menu, click Plugins.
- Click Add new at the top of the Plugins page, then search for "Site Kit".
- Click Install Now on the Site Kit by Google
Configure Site Kit
- Once the plugin is installed, from the menu on the left, click Plugins.
- Under "Site Kit by Google", click Activate.
- Once the plugin is activated, on the left hand side, click Site Kit.
- Click Sign in With Google.
- Select the Google account with an existing Google Analytics property.
- Grant access to Google account data by clicking Allow
- Click Go to my Dashboard to continue.
- From the menu on the left> Site Kit> Dashboard.
- Choose your pre-existing GA4 analytics property or create GA4 Analytics property then click Configure Analytics.
- In the Analytics section, click Connect Service and follow steps
- Step 1
- Step 2
- Step 3
- Step 4
- Step 1
- Connect Tag Manager: It is a required step to trigger GA4 ecommerce events.
- Create the custom events (Google Reference) in Tag Manager. It is a required step to send ecommerce data using a data layer to Analytics.
Configure GA4 tags in Google Tag Manager
- Login to https://tagmanger.google.com
- Create new tag “GA4 Base Tag”
- Select Tag Type Google Analytics: GA4 Configuration
- Add Measurement ID (How to add Measurement ID?)
- Choose Trigger - All Pages
- Save the configuration
- Verify the tag is working from Preview section
Ref - [GA4] Configure Google Analytics 4 tags in Google Tag Manager
Create custom events in Google Tag Manager
Ref - Measure ecommerce | Google Analytics 4 Properties
Create following custom events in the tagmanager for ecommerce tracking.
- View Item
- View Item List
- Add to Cart
- Begin Checkout
- Remove from cart
- Purchase
Below is the sample of custom ‘Purchase’ event:
Purchase Tag configuration:
Tag type: GA4 Event
Event Name: purchase
Ecommerce Items - ecommerce.items
Ecommerce Transaction ID - ecommerce.transaction_id
Ecommerce Value - ecommerce.value
Ecommerce Currency - ecommerce.currency
Ecommerce Coupon - ecommerce.coupon
Event Parameters (Parameter Name - Value):
items - {{Ecommerce Items}}
transaction_id - {{Ecommerce Transaction ID}}
value - {{Ecommerce Value}}
currency - {{Ecommerce Currency}}
coupon - {{Ecommerce Coupon}}
Trigger: event equals purchase
Trigger configuration:
Trigger Type: Custom Event
Event Name: purchase
This trigger fires on: All Custom Events
Switch to GA4 in Plugin Settings
Switch to Google Analytics 4 option and save the settings in the plugin settings