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

  1. If you don’t already have a container, refer to the official GTM doc to create and setup your container: Tag Manager Help

  2. Once the container has been created, take note of the container ID (which starts with 'GTM')

Tag_manager.png

Step 2: Setup the GTM integration in gaiia

  1. In gaiia, navigate to Settings → Integrations → App directory tab → Google Tag Manager → Install

  2. From the “Connect Google Tag Manager” screen, enter your container ID in the field

  3. Check Enable Google Tag Manager in the checkout, Enable Google Tag Manager in the client portal, or both.

    Connect Google Tag Manager screen with the checkout and client portal checkboxes highlighted
  4. 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/ or embed=true and 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_SIGNUP
    
  • cart - details of the selected products (internetPlan, internetPlanActivationFee, internetRouter, residentialPhonePlan, mobilePhonePlan and televisionPlan). It will not be appended to all events.

    • id - ID of the product-version

    • slug + name - slug/name of the product

    • currency - currency code for the product

    • isRecurring - true if the product is to be billed recurring, false if it's one-time

    • isProductTaxInclusive - true if the price is to be displayed with the tax included, false if it's displayed with the tax excluded

    • priceInCents - price for the product, in cents

    • uploadSpeedInKbps / 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

language.change

Pushed when the prospect changes the checkout language with the language switcher.

language - code of the selected language (for example, fr)

navbar_logo.click

Pushed when the prospect clicks the logo in the checkout header.

email_suggestion.shown

Pushed when the email field suggests a correction for a likely typo in the email domain.

suggestedDomain - the suggested domain (for example, gmail.com)

email_suggestion.used

Pushed when the prospect accepts the suggested email correction.

suggestedDomain - the domain that was accepted

Address and serviceability

Event

Event description

service_address.coordinates_confirmed

Pushed when the prospect submits a service address that has map coordinates.

coordinatesSource - where the coordinates came from: manual (the prospect placed the pin on the map), geocoded (found from the address) or country_default (the address couldn't be located, so the pin stayed at the country's default position)

address.serviceable

Pushed when the product availability query returned products, meaning the lead is qualified/eligible. Won't include the cart and totals.

address - the address that was provided

address.unserviceable

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.

address - the address that was provided

unserviceableAddressId - ID of the unserviceable address entity

address.unserviceable.submit_email

Pushed when the prospect leaves its email for follow-up on the unserviceable address form. Won't include the cart and totals.

unserviceableAddressId - ID of the unserviceable address entity that had the email appended

address.unserviceable.planned_service_area

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.

address - the address that was provided

unserviceableAddressId - ID of the unserviceable address entity

address.unserviceable.planned_service_area.submit_email

Pushed when the prospect leaves their contact details on the planned service area form. Won't include the cart and totals.

unserviceableAddressId - ID of the unserviceable address entity that had the contact details appended

address.unserviceable.planned_service_area.order.resume

Pushed when a prospect comes back through a link tied to a previously unserviceable address, and the address is now serviceable.

unserviceableAddressId - ID of the original unserviceable address

planCategories.available

Pushed when the product availability query returns, listing which product types can be ordered at the address. Won't include the cart and totals.

availableProductTypes - product types available at the address. Can be any of INTERNET, MOBILE_PHONE, RESIDENTIAL_PHONE and TELEVISION

planCategories.selected

Pushed when the prospect confirms the product types they want in the plan category side panel. Won't include the cart and totals.

interestedProductTypes - product types the prospect selected

Plan and product selection

Event

Event description

internetPlan.select

Pushed when the internet plan selection is changed on the internet plan step.

internetPlan - same format as the cart.internetPlan key described above

router.select

Pushed when the router selection is changed on the router step.

router - same format as the cart.internetRouter key described above

mobilePhonePlan.select

Pushed when the mobile phone plan selection is changed to a different product. Won't include the cart and totals.

mobilePhonePlan - same format as the cart.mobilePhonePlan key described above

residentialPhonePlan.select

Pushed when the residential phone plan selection is changed to a different product. Won't include the cart and totals.

residentialPhonePlan - same format as the cart.residentialPhonePlan key described above

televisionPlan.select

Pushed when the television plan selection is changed to a different product. Won't include the cart and totals.

televisionPlan - same format as the cart.televisionPlan key described above

addOn.select

Pushed once for each newly selected add-on. Won't include the cart and totals.

addOn - the selected add-on, in the same format as the cart products described above

Broadband facts labels

Event

Event description

broadband_facts_labels.open_side_panel

Pushed when the side-panel with broadband facts is opened.

broadband_facts_labels.select

Pushed when an internet plan is selected in the side panel.

id - ID of the broadband facts label

plan - name of the plan, as displayed in the list

broadband_facts_labels.view_page

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.

id - ID of the broadband facts label

plan - service plan name field of the label

External purchase

These events are pushed when a plan tile sends the prospect to an external purchase link.

Event

Event description

externalPurchase.modal.open

Pushed when the prospect clicks the external purchase button and the confirmation dialog opens.

externalPurchase.modal.cancel

Pushed when the prospect cancels the confirmation dialog.

externalPurchase.modal.continue

Pushed when the prospect continues from the confirmation dialog, and the external link opens in a new tab.

Checkout steps

Event

Event description

step.change

Pushed when the checkout changes steps. Won't include the current step.

from - identifier of the previous step

to - identifier of the step that was changed to

step.first_time_complete

Pushed whenever the checkout changes step, resulting in the previous step being completed for the first time. Won't include the current step.

step - identifier of the step

step.back

Pushed whenever the user goes back a step.

from - identifier of the current step

to - identifier of the step the user is going back to

Mobile phone activation

Event

Event description

mobile_phone.device_compatibility_check.success

Pushed when the device compatibility check on the mobile phone activation step returns a result.

deviceModelDetails - the device's brand, name, type and simTypes (eSIM, pSIM), or null if the device wasn't identified

compatiblePlanIds - IDs of the mobile phone plans that work with the device

Payment

Event

Event description

payment_method.add

Pushed when a payment method is added in the billing details step.

type - "credit_card" or "bank_account"

authorizeAutomaticPayments - true if the auto payment checkbox was checked, false otherwise

payment_method.clear

Pushed when the payment method is cleared from the billing details step.

Order

Event

Event description

order.resume

Pushed when the order is resumed from an order resume link.

orderId - ID of the order that was resumed

pre_contract_summary.print

Pushed when the prospect prints the pre-contract summary on the review step, where a pre-contract summary is shown.

order.ready_to_submit

Pushed once, when every required step of the checkout is complete.

order.submit

Pushed when the order is successfully submitted.

order.success

Pushed once, when the order succeeds and an account exists.

order.success.client_portal_signup

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

auth.login

Pushed when a customer signs in with their username and password.

auth.passwordless_login

Pushed when a customer signs in without a password.

auth.quick_login

Pushed when a customer signs in through a quick login link.

nextAction - the page the link sends the customer to, if any: make-payment, schedule-appointment, reschedule-appointment or sign-contract

auth.sign_out

Pushed when a customer signs out.

auth.signup.signup

Pushed when a customer submits the client portal sign-up form.

registrationStatus - the status of the new client portal user, such as whether their email still needs to be confirmed

auth.signup.confirm_email

Pushed when a customer confirms their email address and completes sign-up.

Account settings

Event

Event description

account_settings.open_update_email_modal

Pushed when a customer opens the dialog to update their email address.

account_settings.change_email

Pushed when a customer submits a new email address, before confirming it.

currentEmail - the customer's current email address

newEmail - the new email address

account_settings.confirm_email_change

Pushed when a customer confirms the new email address with the code they received.

newEmail - the new email address

account_settings.open_update_password_modal

Pushed when a customer opens the dialog to update their password.

account_settings.update_password

Pushed when a customer successfully changes their password.

account_settings.open_update_phone_numbers_modal

Pushed when a customer opens the dialog to update their phone numbers.

account_settings.update_phone_numbers.success

Pushed when a customer successfully updates their phone numbers. Phone numbers are not included.

account_settings.open_update_service_communication_preferences_modal

Pushed when a customer opens the dialog to update their communication preferences.

account_settings.update_service_communication_preferences.success

Pushed when a customer successfully updates their communication preferences.

smsMessagingEnabled - true if the customer chose email and SMS, false otherwise

Billing and payments

Event

Event description

billing.payment.make_payment.success

Pushed when a customer successfully makes a payment.

amountInCents - the amount paid, in cents

currency - currency code of the payment

billing.payment_methods.add_payment_method.success

Pushed when a customer successfully adds a payment method.

paymentMethodType - creditCard or bankAccount

processor - the payment processor that stores the payment method

billing.payment_method_removed

Pushed when a customer removes a payment method.

billing.automatic_payment_updated

Pushed when a customer turns automatic payments on or off.

enabled - true if automatic payments were turned on, false if they were turned off

billing.current_balance.latest_invoice.download

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

services.change_internet_plan

Pushed when a customer changes their internet plan.

services.change_router_plan

Pushed when a customer changes their router.

services.add_television_plan

Pushed when a customer adds a television plan.

services.change_television_plan

Pushed when a customer changes their television plan.

services.modify_add_ons

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

move.start

Pushed when a customer opens the moving flow.

move.address_submitted

Pushed when a customer enters their new address.

newAddress - the new address

move.serviceability_checked

Pushed when the serviceability check for the new address returns.

newAddress - the new address

serviceable - true if the new address can be serviced, false otherwise

reason - why the address can't be serviced, when serviceable is false

move.date_scheduled

Pushed when a customer selects their move dates.

moveInAt - the move-in date

wantsMoveOutBeforeMoveIn - true if the customer wants service at the old address to end before the move-in date

move.submit

Pushed when a customer submits their move request.

newAddress - the new address

success - true if the request was submitted, false if it failed

errorCode - the error code, when success is false

Contracts

Event

Event description

contracts.addContractSignature.uploadSignature

Pushed when a customer adds their signature in the signing dialog.

contracts.addContractSignature.submit

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

serviceCancellation.entryClicked

Pushed when a customer clicks the button to cancel their services in their account settings.

mode - the cancellation flow set for your client portal: TICKET or OPERATIONS_SELF_SERVE

serviceCancellation.stepViewed

Pushed when a screen of the self-serve cancellation flow is shown.

step - the screen that was shown: request, confirmation, submitted, pending (a cancellation is already in progress) or unavailable (the flow can't be shown)

reason - why the flow can't be shown, when step is unavailable: loadError or noAccount

serviceCancellation.dateSelected

Pushed when a customer picks a cancellation date.

cancellationDate - the selected date (YYYY-MM-DD)

businessDaysAhead - the number of business days between today and the selected date

serviceCancellation.reasonSelected

Pushed when a customer selects or clears a cancellation reason.

reasonCode - code of the selected reason, or null if the reason was cleared

serviceCancellation.providerSelected

Pushed when a customer chooses the provider they're switching to, either from a list or by typing it in.

inputType - list or freeText

provider - the selected provider, when inputType is list. Typed text is never sent.

serviceCancellation.acknowledgementToggled

Pushed when a customer checks or unchecks the acknowledgement checkbox.

checked - true if the checkbox was checked, false otherwise

serviceCancellation.infoLinkClicked

Pushed when a customer clicks a link in the cancellation content.

block - where the link is: infoBlock (the information block on the request screen), acknowledgement (the acknowledgement text) or closingDetails (the closing details shown after submitting, or while a cancellation is pending)

href - the link's URL

serviceCancellation.continueClicked

Pushed when a customer completes the request screen and continues to the confirmation screen.

hasReason - true if a reason was selected

hasProvider - true if a provider was entered

providerInputType - list or freeText

businessDaysAhead - the number of business days between today and the selected date

serviceCancellation.validationFailed

Pushed when a customer tries to continue or submit with missing or invalid fields.

step - request or confirmation

fields - names of the invalid fields

serviceCancellation.backClicked

Pushed when a customer goes back from the confirmation screen to the request screen.

step - always confirmation

serviceCancellation.keepServiceClicked

Pushed when a customer clicks the link to keep their service on the confirmation screen.

serviceCancellation.submit

Pushed when a customer submits a request to cancel their services.

success - true if the request was submitted, false if it failed

cancellationDate - the requested cancellation date (YYYY-MM-DD)

hasNote / noteLength - whether the customer added a note, and its length in characters

reasonCode - the cancellation reason the customer selected, when reasons are offered

errorCode - the error code, when success is false

serviceCancellation.supportClicked

Pushed when a customer clicks a link to contact support.

step - request, pending or unavailable

destination - liveChat or supportUrl

serviceCancellation.returnToOverviewClicked

Pushed when a customer clicks the button to return to the overview page.

step - submitted, pending or unavailable

serviceCancellation.sidebarBackClicked

Pushed when a customer clicks the back link in the sidebar during the self-serve cancellation flow.

step - the last screen the customer viewed

Support tickets

Event

Event description

ticket.create.success

Pushed when a customer successfully creates a support ticket.

ticket.comment.create.success

Pushed when a customer successfully adds a comment to a support ticket.

Referrals

Event

Event description

referral_page_viewed

Pushed when a customer opens the referrals page.

referral_link_copied

Pushed when a customer copies their referral link or code.

copied - link or code