Container Triggers
A trigger is a condition that evaluates to either true or false at runtime. Triggers attached to a tag govern when the tag is fired or not fired. To the correct function of tag analysis, configure the follow triggers into your container.
Google Analytics 4
caution
This Data Layer Variables configuration are valid only for Google Analytics v4 (GA4) Properties.
The following documentation will guide you in configuring the triggers required for the Google Analytics 4 (GA4) property for WHMCS.
WHMCS GA4 Events Triggers
To create a new trigger click on Triggers
on the left menu and New
button. In the modal that will open, click on the Trigger Configuration
box, this will open the Choose trigger type
list on the right side of the page.
The following triggers are responsible for triggering all the events necessary for the correct tracking of actions in the data layers created by the WHMCS GTM module for GA4 property. Set them up carefully.
Name | Trigger Type | Event Name | This trigger fires on |
---|---|---|---|
add_to_cart | Custom Event | add_to_cart | All Custom Events |
begin_checkout | Custom Event | begin_checkout | All Custom Events |
purchase | Custom Event | purchase | All Custom Events |
remove_from_cart | Custom Event | remove_from_cart | All Custom Events |
view_cart | Custom Event | view_cart | All Custom Events |
view_item | Custom Event | view_item | All Custom Events |
view_item_list | Custom Event | view_item_list | All Custom Events |
Google Ads Conversion
Tag Manager & Enhanced eCommerce implements specific events to handle with all information needed to track Google Ads Conversions in WHMCS. With this module you will get all integration needed to track and mensure Google Ads conversions making possible better reports and campaigns like tracking your CPA, CTR and more.
To get this working, add a new trigger going to Trigger option and click on new button and choose a Custom Event trigger type. To better identification, name this trigger as WHMCS Google Ads Conversion
.
Set up the following trigger to use for track conversions on Google Ads.
Name | Trigger Type | Event Name | This trigger fires on |
---|---|---|---|
WHMCS Google Ads Conversion | Custom Event | adsConversion | All Custom Events |
Save the new trigger, this will be associate with a Google Ads Conversion Tag in the next steps.
Google Analytics 3
caution
These configurations are valid only for Google Analytics v3 Properties.
Below are the triggers required to be configured in your container for the Google Tag Manager module for WHMCS in Google Analytics 3.
WHMCS Events Trigger
This trigger will fire any eCommerce and user events related from WHMCS to Google Tag Manager.
To add the new trigger, go to Trigger option and click on new button. To better identification, name this trigger as WHMCS Events
.
Choose a Custom Event trigger type.
Configure the following Custom Event trigger parameters:
checkout|addToCart|purchase|product*|domain*|cart*|invoice*
- Check Use regex matching.
- This trigger fires on: All Custom Events.
Google Ads Conversion
Tag Manager & Enhanced eCommerce implements specific events to handle with all information needed to track Google Ads Conversions in WHMCS. With this module you will get all integration needed to track and mensure Google Ads conversions making possible better reports and campaigns like tracking your CPA, CTR and more.
To get this working, add a new trigger going to Trigger option and click on new button and choose a Custom Event trigger type. To better identification, name this trigger as WHMCS Google Ads Conversion
.
Set up the following parameters:
Name | Trigger Type | Event Name | This trigger fires on |
---|---|---|---|
WHMCS Google Ads Conversion | Custom Event | adsConversion | All Custom Events |
Save the new trigger, this will be associate with a Google Ads Conversion Tag in the next steps.