Using Google Tag Manager in the checkout and client portal
Last updated: November 23, 2026
Overview
Google Tag Manager (GTM) is a free tool that simplifies the process of managing and deploying marketing tags on your checkout and client portal without requiring developers to modify the code. With GTM, you can add, update, and test tags like Google Analytics, Meta Pixel, or custom scripts.
gaiia offers a GTM integration that will embed your desired container in the checkout, the client portal, or both, allowing you to track visitors, events and orders.
Instructions
Step 1: Find your container ID
If you don’t already have a container, refer to the official GTM doc to create and setup your container: Tag Manager Help
Once the container has been created, take note of the container ID (which starts with 'GTM')

Step 2: Setup the GTM integration in gaiia
In gaiia, navigate to Settings → Integrations → App directory tab → Google Tag Manager → Install
From the “Connect Google Tag Manager” screen, enter your container ID in the field
Check Enable Google Tag Manager in the checkout, Enable Google Tag Manager in the client portal, or both.

Click Connect
Once connected, your container will be embedded in the checkout, the client portal, or both, and you will be able to inject tracking scripts that listen to the events pushed on the data layer and track them in your own systems.
Be cautious about third-party and custom scripts you include in your container, as invalid and misconfigured scripts can have undesired effects on your checkout and client portal. You are responsible for the scripts you embed and their effects.
While gaiia is happy to assist with the initial installation and setup of the integration, gaiia is unable to provide technical support for further configuration, troubleshooting, or customization of your GTM container. For additional assistance, gaiia recommends consulting the Google Tag Manager Help Center or your internal development team.
Checkout object structure
The events will be pushed to the window.dataLayer object with the following structure:
{
event: 'event.name',
orderId: 'xxxx-xxxx-xxxx-xxxx',
orderMetadata: {
urlParams: {
fbclid: 'value',
anotherGetParam: 'value'
},
},
isEmbedMode: false,
flags: {
useOnePageCheckout: false
},
currentStep: 'CHECKOUT_STEP_IDENTIFIER',
cart: {
internetPlan: {
id: 'product-version-id',
name: 'Displayed product name',
slug: 'product-slug',
currency: 'USD',
isRecurring: true,
isProductTaxInclusive: false,
priceInCents: 8500,
downloadSpeedInKbps: 25000,
uploadSpeedInKbps: 800
},
internetPlanActivationFee: {
id: 'product-version-id',
name: 'Displayed product name',
slug: 'product-slug',
currency: 'USD',
isRecurring: true,
priceInCents: 400
},
internetRouter: {
id: 'product-version-id',
name: 'Displayed product name',
slug: 'product-slug',
currency: 'USD',
isRecurring: true,
isProductTaxInclusive: false,
priceInCents: 8500,
},
residentialPhonePlan: {
id: 'product-version-id',
name: 'Displayed product name',
slug: 'product-slug',
currency: 'USD',
isRecurring: true,
isProductTaxInclusive: false,
priceInCents: 8500,
},
mobilePhonePlan: {
id: 'product-version-id',
name: 'Displayed product name',
slug: 'product-slug',
currency: 'USD',
isRecurring: true,
isProductTaxInclusive: false,
priceInCents: 8500,
},
televisionPlan: {
id: 'product-version-id',
name: 'Displayed product name',
slug: 'product-slug',
currency: 'USD',
isRecurring: true,
isProductTaxInclusive: false,
priceInCents: 8500,
}
},
monthlySubtotalInCents: 80000,
monthlyTotalInCents: 90000
}
event- the event name, described in the list below,orderId- once the order ID is generated (starting at the start checkout/email capture step), this will be populated with the order UUID. will be undefined otherwise, and will be appended on all events.orderMetadata.urlParams- object with the URL parameters the checkout was invoked with. It will be appended to all events.isEmbedMode- true if the checkout URL contains/embed/orembed=trueand the checkout is loaded in an iframe, false otherwise. It will be appended to all events.flags.useOnePageCheckout- true if the single-screen checkout layout is used, false otherwise. It will be appended to all events.email- the prospect's email. It will be appended to all events once it is known.accountId/accountReadableId- the account's UUID and its Account ID. They will be appended to all events once the order is submitted.addressId- geo ID of the service address. It will be appended to all events once it is known.currentStep- identifier of the checkout step the event was fired on. Will not be appended to all events. Can be one of those values:PLAN_SERVICE_ADDRESS PLAN_FEATURED_SELECTION PLAN_INTERNET_PLAN_SELECTION PLAN_ROUTER_SELECTION PLAN_TELEVISION_PLAN_SELECTION PLAN_MOBILE_PHONE_PLAN_SELECTION PLAN_RESIDENTIAL_PHONE_PLAN_SELECTION PLAN_ADDITIONAL_SERVICES_SELECTION SETUP_START_CHECKOUT SETUP_ACTIVATION_DATE SETUP_MOBILE_PHONE_ACTIVATION SETUP_RESIDENTIAL_PHONE_ACTIVATION CHECKOUT_PERSONAL_INFORMATION CHECKOUT_PAYMENT_DETAILS REVIEW_CONFIRMATION SUCCESS_CLIENT_PORTAL_SIGNUPcart- details of the selected products (internetPlan,internetPlanActivationFee,internetRouter,residentialPhonePlan,mobilePhonePlanandtelevisionPlan). It will not be appended to all events.id- ID of the product-versionslug+name- slug/name of the productcurrency- currency code for the productisRecurring- true if the product is to be billed recurring, false if it's one-timeisProductTaxInclusive- true if the price is to be displayed with the tax included, false if it's displayed with the tax excludedpriceInCents- price for the product, in centsuploadSpeedInKbps/downloadSpeedInKbps- for internet plans only
monthlySubtotalInCents/monthlyTotalInCents- monthly total before and after taxes. It will not be appended to all events.
Checkout events
The checkout pushes the events below to the data layer, grouped by the part of the checkout they relate to. Unless an event's description says otherwise, it includes currentStep, cart and the monthly totals.
General
Event | Event description |
|---|---|
| Pushed when the prospect changes the checkout language with the language switcher. |
| Pushed when the prospect clicks the logo in the checkout header. |
| Pushed when the email field suggests a correction for a likely typo in the email domain. |
| Pushed when the prospect accepts the suggested email correction. |
Address and serviceability
Event | Event description |
|---|---|
| Pushed when the prospect submits a service address that has map coordinates. |
| Pushed when the product availability query returned products, meaning the lead is qualified/eligible. Won't include the cart and totals. |
| Pushed when the product availability query returned no products for the address, and the address is not in a planned service area. Won't include the cart and totals. |
| Pushed when the prospect leaves its email for follow-up on the unserviceable address form. Won't include the cart and totals. |
| Pushed when the product availability query returned no products for the address, and the address is in a planned service area. Won't include the cart and totals. |
| Pushed when the prospect leaves their contact details on the planned service area form. Won't include the cart and totals. |
| Pushed when a prospect comes back through a link tied to a previously unserviceable address, and the address is now serviceable. |
| Pushed when the product availability query returns, listing which product types can be ordered at the address. Won't include the cart and totals. |
| Pushed when the prospect confirms the product types they want in the plan category side panel. Won't include the cart and totals. |
Plan and product selection
Event | Event description |
|---|---|
| Pushed when the internet plan selection is changed on the internet plan step. |
| Pushed when the router selection is changed on the router step. |
| Pushed when the mobile phone plan selection is changed to a different product. Won't include the cart and totals. |
| Pushed when the residential phone plan selection is changed to a different product. Won't include the cart and totals. |
| Pushed when the television plan selection is changed to a different product. Won't include the cart and totals. |
| Pushed once for each newly selected add-on. Won't include the cart and totals. |
Broadband facts labels
Event | Event description |
|---|---|
| Pushed when the side-panel with broadband facts is opened. |
| Pushed when an internet plan is selected in the side panel. |
| Pushed when a broadband facts label is viewed on the dedicated page via a permalink. Won't include the cart, totals, orderId, or current step. |
External purchase
These events are pushed when a plan tile sends the prospect to an external purchase link.
Event | Event description |
|---|---|
| Pushed when the prospect clicks the external purchase button and the confirmation dialog opens. |
| Pushed when the prospect cancels the confirmation dialog. |
| Pushed when the prospect continues from the confirmation dialog, and the external link opens in a new tab. |
Checkout steps
Event | Event description |
|---|---|
| Pushed when the checkout changes steps. Won't include the current step. |
| Pushed whenever the checkout changes step, resulting in the previous step being completed for the first time. Won't include the current step. |
| Pushed whenever the user goes back a step. |
Mobile phone activation
Event | Event description |
|---|---|
| Pushed when the device compatibility check on the mobile phone activation step returns a result. |
Payment
Event | Event description |
|---|---|
| Pushed when a payment method is added in the billing details step. |
| Pushed when the payment method is cleared from the billing details step. |
Order
Event | Event description |
|---|---|
| Pushed when the order is resumed from an order resume link. |
| Pushed when the prospect prints the pre-contract summary on the review step, where a pre-contract summary is shown. |
| Pushed once, when every required step of the checkout is complete. |
| Pushed when the order is successfully submitted. |
| Pushed once, when the order succeeds and an account exists. |
| Pushed when the customer signs up for the client portal on the success screen. |
Client portal object structure
Client portal events are pushed to the window.dataLayer object with the event name and that event's own fields only:
{
event: 'billing.automatic_payment_updated',
_clear: true,
enabled: true
}
Unlike checkout events, client portal events don't include order, cart or step details. Each push resets the fields of earlier events to undefined, so a value from one event never carries over to the next.
Client portal events
The client portal pushes the events below to the data layer, grouped by the part of the client portal they relate to. Events without fields listed only include the event name.
Sign-in and sign-up
Event | Event description |
|---|---|
| Pushed when a customer signs in with their username and password. |
| Pushed when a customer signs in without a password. |
| Pushed when a customer signs in through a quick login link. |
| Pushed when a customer signs out. |
| Pushed when a customer submits the client portal sign-up form. |
| Pushed when a customer confirms their email address and completes sign-up. |
Account settings
Event | Event description |
|---|---|
| Pushed when a customer opens the dialog to update their email address. |
| Pushed when a customer submits a new email address, before confirming it. |
| Pushed when a customer confirms the new email address with the code they received. |
| Pushed when a customer opens the dialog to update their password. |
| Pushed when a customer successfully changes their password. |
| Pushed when a customer opens the dialog to update their phone numbers. |
| Pushed when a customer successfully updates their phone numbers. Phone numbers are not included. |
| Pushed when a customer opens the dialog to update their communication preferences. |
| Pushed when a customer successfully updates their communication preferences. |
Billing and payments
Event | Event description |
|---|---|
| Pushed when a customer successfully makes a payment. |
| Pushed when a customer successfully adds a payment method. |
| Pushed when a customer removes a payment method. |
| Pushed when a customer turns automatic payments on or off. |
| Pushed when a customer downloads their latest invoice from the current balance card. |
Services
These events are pushed when a change to the customer's services is completed.
Event | Event description |
|---|---|
| Pushed when a customer changes their internet plan. |
| Pushed when a customer changes their router. |
| Pushed when a customer adds a television plan. |
| Pushed when a customer changes their television plan. |
| Pushed when a customer adds or removes add-ons. |
Moving
These events are pushed in the self-serve moving flow, when it is available in your client portal. newAddress contains line1, subBuilding, locality, region, postalCode and country.
Event | Event description |
|---|---|
| Pushed when a customer opens the moving flow. |
| Pushed when a customer enters their new address. |
| Pushed when the serviceability check for the new address returns. |
| Pushed when a customer selects their move dates. |
| Pushed when a customer submits their move request. |
Contracts
Event | Event description |
|---|---|
| Pushed when a customer adds their signature in the signing dialog. |
| Pushed when a customer submits a signed contract. |
Cancellation
Your client portal's cancellation flow is set to either a support ticket (TICKET) or the self-serve cancellation flow (OPERATIONS_SELF_SERVE). serviceCancellation.entryClicked and serviceCancellation.submit are pushed in both. The other events are only pushed in the self-serve cancellation flow.
Event | Event description |
|---|---|
| Pushed when a customer clicks the button to cancel their services in their account settings. |
| Pushed when a screen of the self-serve cancellation flow is shown. |
| Pushed when a customer picks a cancellation date. |
| Pushed when a customer selects or clears a cancellation reason. |
| Pushed when a customer chooses the provider they're switching to, either from a list or by typing it in. |
| Pushed when a customer checks or unchecks the acknowledgement checkbox. |
| Pushed when a customer clicks a link in the cancellation content. |
| Pushed when a customer completes the request screen and continues to the confirmation screen. |
| Pushed when a customer tries to continue or submit with missing or invalid fields. |
| Pushed when a customer goes back from the confirmation screen to the request screen. |
| Pushed when a customer clicks the link to keep their service on the confirmation screen. |
| Pushed when a customer submits a request to cancel their services. |
| Pushed when a customer clicks a link to contact support. |
| Pushed when a customer clicks the button to return to the overview page. |
| Pushed when a customer clicks the back link in the sidebar during the self-serve cancellation flow. |
Support tickets
Event | Event description |
|---|---|
| Pushed when a customer successfully creates a support ticket. |
| Pushed when a customer successfully adds a comment to a support ticket. |
Referrals
Event | Event description |
|---|---|
| Pushed when a customer opens the referrals page. |
| Pushed when a customer copies their referral link or code. |