Pular para o conteúdo principal

Add Google Tag Manager on checkout

Google Tag Manager (GTM) lets you manage tracking tags on checkout without editing the checkout page every time marketing adds a new tool. In AtomicPay, GTM is configured per product in the product checkout integrations area.

Use this guide when your marketing team manages tags centrally, when multiple tags must fire on checkout, or when you want preview testing before paid traffic starts. Pair GTM with checkout links and UTMs and pixel attribution, not as a replacement for AtomicPay reporting.

What GTM on checkout controls

AreaPurpose
GTM container loadingLoads one or more GTM containers on the product checkout experience.
Tag managementLets marketing manage tags inside GTM instead of hard-coding each integration.
Checkout-only scopeApplies to the configured product checkout path, not your entire site by default.
Validation rulesBlocks invalid container IDs or empty rows before save.
Launch verificationSupports GTM preview/debug before campaign traffic scales.

GTM vs other tracking options

ToolBest for
GTM on checkoutManaging multiple tags from one container
GA4 on checkoutSending events directly to a GA4 property
Facebook pixelMeta ads attribution and audiences
Pixels and attributionOverall tracking strategy across ads and reports
CampaignsAtomicPay UTM grouping and campaign trends

Before you enable GTM

  • Confirm the product and checkout link are ready.
  • Publish checkout changes before validating tags on the live buyer path.
  • Define UTM naming before paid traffic starts.
  • Decide whether GA4 or other tags will also fire to avoid duplicate events.
  • Make sure the marketing team knows GTM validates checkout activity, while Financial Overview validates revenue.

Configure GTM on checkout

  1. Confirm you are in the correct business workspace.

[Screenshot: App header — correct business workspace selected.]

  1. Open the product that should load GTM on checkout.

[Screenshot: Product opened — checkout integrations area accessible.]

  1. Go to the product checkout integrations area.

[Screenshot: Checkout integrations tab — GTM section visible.]

  1. Enable GTM.

[Screenshot: GTM toggle enabled on product checkout.]

  1. Add one or more container IDs in the format GTM-XXXXXXX.

[Screenshot: GTM container ID field — GTM-XXXXXXX format entered.]

  1. Add up to 5 containers per product and remove empty rows before saving.

[Screenshot: Multiple container rows — empty rows removed, up to five IDs.]

  1. Save the configuration.

[Screenshot: GTM configuration saved successfully.]

  1. Open the live checkout link as a buyer.

[Screenshot: Live checkout opened — buyer path for GTM validation.]

  1. Use GTM preview or debug mode to confirm the container loads.

[Screenshot: GTM preview mode — container loads on checkout page.]

  1. Trigger a test checkout event and compare with Campaigns or Sales after a real purchase when possible.

[Screenshot: GTM event fired — cross-checked with Sales or Campaigns.]

ID format and validation

RuleDetail
FormatGTM- followed by letters and numbers, for example GTM-ABC1234
MinimumAt least one container ID when GTM is enabled
Empty rowsRemove blank container rows before saving
LimitUp to 5 containers per product

What to verify before launch

CheckWhy it matters
GTM loads on the real checkout URLTesting on the wrong link gives false confidence.
No duplicate purchase eventsGTM plus GA4 or pixels can double-count if unmanaged.
UTMs are already on campaign linksAttribution gaps are easier to prevent than fix later.
Checkout is publishedUnpublished builder changes can break validation.
Support knows GTM is checkout-scopedPost-purchase pages may need separate site tagging.

Best practices

  • Test in GTM preview before scaling ad spend.
  • Keep container naming documented per product or campaign.
  • Coordinate with whoever manages Facebook pixel and GA4.
  • Review Campaigns and Financial Overview after first tracked sales.
  • Avoid putting sensitive credentials in frontend tag configs.

Common mistakes

  • Enabling GTM on the wrong product in a multi-business account.
  • Saving with blank container rows.
  • Validating tags on a draft or outdated checkout link.
  • Firing duplicate analytics events from GTM and direct GA4 without a plan.
  • Treating GTM visibility as proof of revenue without checking Sales.

FAQ

Can I use GTM and GA4 direct integration at the same time?

Yes. AtomicPay supports both. Coordinate event design so GTM and GA4 on checkout do not fire duplicate purchase events unless your analytics team expects that setup.

Why is save blocked?

Common causes are an empty container row, an invalid ID format, or GTM enabled with no containers added.

Does GTM replace UTMs?

No. GTM helps external tag management. Checkout links and UTMs still drive Campaigns and AtomicPay reporting.

Where should I troubleshoot missing tag data?

Start with GTM preview on the live checkout URL, then review pixels and attribution and campaign attribution gaps.