Skip to main content

Google Tag Manager

Updated yesterday

โ„น๏ธ Note: Because AIQ Ecommerce is a Single Page Application, we recommend using the GTM trigger "History Change" when appropriate.

Google Tag Manager is a tag management system that allows configuration and instant deployment of tags onto your menu. Add and update tags for conversion tracking, site analytics, remarketing, and more. You can use Google Tag Manager on your AIQ Ecommerce menu to see where your customers are scrolling (heatmaps) and deploy surveys.

For a full list of tag template types that are natively supported by Google Tag Manager: GTM Supported Tags

In addition to these natively-supported tags, you can find tag and variable templates maintained by 3rd parties in the Community Template Gallery


Get Credentials from Tag Manager

Get your Container Id from Tag Manager. For further instructions: Set up and install Tag Manager

To Enable in AIQ Ecommerce

  1. Navigate to Store > Integrations

  2. Click on Google Tag Manager

  3. Enable the integration toggle

  4. Enter in the container id

  5. Save

Custom AIQ Ecommerce Events

You can use the following AIQ Ecommerce events to make custom templates.

'view\_item'
'add\to\cart'
'remove\from\cart'
'begin\_checkout'
'purchase'

GTM Tracking for Blueprint API Custom Builds

For custom ecommerce builds using the AIQ Blueprint API, developers do not need to manually trigger a purchase event from the AIQ checkout.

Key behavior:

  • When checkout completes, AIQ automatically fires the Google Tag Manager order event internally.

  • The checkout is embedded in an iframe, so AIQ sends a message to the parent page indicating the order has completed: ORDER_COMPLETE โ†’ includes the orderId.

  • This message allows the parent site to:

    • Detect that checkout finished

    • Redirect to a custom Order Complete page if desired.

Important notes:

  • The purchase / order-created tracking event is already triggered by AIQ when the order completes.

  • Developers should not fire an additional purchase event, as this can cause duplicate tracking.

  • The iframe message is only for frontend handling (e.g., redirects), not for analytics tracking.

GTM FAQs

Can I prompt my customers to share a review (such as a Google Review) post-purchase via GTM?

Yes, Google Tag Manager can facilitate lots of different frontend integrations and actions, including popups. For something like this, you could do a popup with a link to your Google page. Set it to trigger when the url contains /checkout-complete through GTM.

What are some common use cases for GTM on ecommerce menus?

We've seen lots, but the most common are:

  • Google Analytics: You can setup GA via our GA4 integration or GTM

  • Heatmap and session replays: Hotjar, Crazy Egg

  • Elfsight: Age verification widget

  • Conversion tracking tags: Common ones are Google Ads Conversion Tracking, Facebook Pixel, and Bing Ads UET Tag

  • AB Testing: Google Optimize

  • Translating menus to Spanish, French, and other languages

  • Customer Support Tools (chat): Intercom, Zendesk, Tidio - or use our in-house chat tool!

Did this answer your question?