Skip to main content

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.

NameTrigger TypeEvent NameThis trigger fires on
add_to_cartCustom Eventadd_to_cartAll Custom Events
begin_checkoutCustom Eventbegin_checkoutAll Custom Events
purchaseCustom EventpurchaseAll Custom Events
remove_from_cartCustom Eventremove_from_cartAll Custom Events
view_cartCustom Eventview_cartAll Custom Events
view_itemCustom Eventview_itemAll Custom Events
view_item_listCustom Eventview_item_listAll Custom Events

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.

NameTrigger TypeEvent NameThis trigger fires on
WHMCS Google Ads ConversionCustom EventadsConversionAll 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.

Add a new Google Tag manager Trigger

Choose a Custom Event trigger type.

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 Tag Manager Trigger Configuration

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:

NameTrigger TypeEvent NameThis trigger fires on
WHMCS Google Ads ConversionCustom EventadsConversionAll Custom Events

Setup of the parameters for the trigger event

Save the new trigger, this will be associate with a Google Ads Conversion Tag in the next steps.