1. Go to the left panel under Workspace and select Tags. Click New.
6. Click Save.
What is a Data Layer Variable?
Data Layer Variable enables a Tag Manager to read values from the data layer implementation then passes those values to tags, triggers, and other variables.
Next, we need to create two Data Layer Variables in GTM. They help transfer the data of every test and variation created, into GA04. These variables are defined by the PageSense snippet.
To create a Data Layer Variable in GTM:
1. Go to the left panel under Workspace, select Variables and click New.
2. Enter your variable name as 'PageSenseExperimentName' in the Untitled Variable field.
3. Click the Pen icon to edit then select Data Layer Variable from the list.
4. Enter the following details under Variable Configuration, then click Save:
- Variable Type as Data Layer Variable.
- Data Layer Variable Name as ‘PageSenseExperimentName.’
- Data Layer Version as ‘Version 2’.
The process of creating both the Data Layer Variables are same, only the variation name differs.
5. To set up your second Data Layer Variable, navigate to the left panel, click Variables and click New.
6. Enter your variable name as 'PageSenseVariationName' under Data Layer Variable Type.
7. Click the Pen icon and select Data Layer Variable from the list.
8. Enter the following details under Variable Configuration then click Save.
- Variable Type as Data Layer Variable.
- Data Layer Variable Name as PageSenseVariationName.
- Data Layer Version as Version 2.
To create a trigger for custom event in GTM?
1. Under Workspace, in the left panel select Triggers and click New.
2. Enter the trigger name as 'zohoPageSenseEvent' in the Untitled Tag field.
3. Under Trigger Configuration, choose Custom Event from the list of trigger types displayed.
4. Enter your Event name as ‘zohoPageSenseEvent’ , select the trigger All Custom Events and click Save.
Why do we need to create a tag for GA04 in GTM?
To complete the setup process in GTM, you need to create a tag. These GA04 tags consist of code snippets that ultimately transmit the data captured by the variables triggered by 'zohoPageSenseEvent' to your Google Analytics account. All the information gathered from the ongoing A/B Test and Split URL Test experiments conducted through PageSense will then be pushed over to Google Analytics.
How to create a tag for GA04 in GTM:
1. Under Workspace, select Tags in the left panel, then click New.
2. Under Tags, enter your tag name as 'GA04 PageSense' in the Untitled Tag field,
3. Under Tag Configuration select Google Analytics: GA4 Event from the displayed list.
- To locate the Measurement ID in Google Analytics, refer to the pathway below:
Google Analytics 04 -> Admin -> Data Stream -> Select the domain -> Copy the Measurement ID (G-XXXXXXXXX)
4. Enter the following details under Tag Configuration:
- Select your Tag Type as None-Manually Set ID
- Enter the Google Analytics 04 Measurement ID for your website
- For Event Name, select PageSenseExperimentName and PageSenseVariationName, which should look like {{PageSenseExperimentName}}:{{PageSenseVariationName}
5. Under Triggering, select Custom Event and zohoPageSenseEvent from the list.
Click Save → Submit → Publish.
Step 5: Enable GA4 in Zoho PageSense
In PageSense, open your A/B Test or Split URL Test.
Go to the CONFIGURATION tab.
Scroll to Integrations and toggle Google Analytics on.
Step 6: Viewing Reports in GA4
Note: Data will appear in Events after about 24 hours, but you can see it immediately in GA4’s Realtime tab.
To view Event Count (Realtime):
In GA4, go to Reports → Realtime Overview.
Select zohoPageSenseEvent.
Click your experiment name to see the event count.



To view Events (after 24 hours):
Log in to GA4.
Go to Engagement → Events.
View the results of your PageSense experiments.