Skip to main content

How do I connect my AI funnel with Google Tag Manager?

Learn how to connect Google Tag Manager to your AI funnel, when it loads, and which events your tags can use.

Connect Google Tag Manager to your AI funnel to track your Google Ads with tags you manage in one place. Google Tag Manager (GTM) is a free tool from Google that loads your tracking tags, so you add or change a tag in Google Tag Manager instead of editing your funnel.

TL;DR

  • Connect Google Tag Manager in the Apps tab of your AI funnel with your Container ID, then publish your funnel, because the connection isn't live until you do.

  • Google Tag Manager loads on your live AI funnel only after a visitor accepts marketing cookies, and Perspective adds it to your cookie banner automatically.

  • Your AI funnel sends Google Tag Manager the same events as a classic funnel, such as "Form Submitted" and "Session Converted", so tags and triggers you built for a classic funnel also work on it.

ℹ️ Important: Google Tag Manager for AI funnels is available from the Grow Plan / Business Plan (Legacy) or as part of the Premium Integration Suite.

How do I connect Google Tag Manager to my AI funnel?

To connect Google Tag Manager to your AI funnel, you need the Container ID of your Google Tag Manager container. You can find it on your Accounts page in Google Tag Manager, and it always starts with GTM-, for example "GTM-AB12CD3".
​

  1. Open your AI funnel, click Apps in the top bar, then click the three dots (...) on the Google Tag Manager card and choose App settings.

    This shows where to open App settings on the Google Tag Manager card in the Apps tab of an AI funnel.
  2. Enter your Container ID in the Container ID field and click Save settings.

    ℹ️ Important: A Google Analytics 4 ID that starts with G- can't be saved in the Container ID field of the Google Tag Manager integration, so make sure you paste the ID of your Google Tag Manager container.

    This shows where to enter your Container ID and save it in the Google Tag Manager settings of an AI funnel.

  3. Click Publish in the top right to publish your funnel. Your Google Tag Manager connection isn't live until you republish your funnel.
    Google Tag Manager now loads on your live AI funnel for every visitor who accepts marketing cookies.

ℹ️ Don't have a Google Tag Manager container yet? Create one for free in Google Tag Manager first. How do I connect my funnel with Google Tag Manager? shows how to create a container and set up tags, and those steps in Google Tag Manager are the same for AI funnels.

When does Google Tag Manager load on my AI funnel?

Google Tag Manager loads on your published AI funnel only after a visitor accepts marketing cookies in your cookie banner. Before that, your funnel sends nothing to Google.

Perspective adds Google Tag Manager to the cookie banner of your AI funnel automatically, so you don't need to add it as a service yourself.

Funnel events that happen before the visitor accepts aren't lost. Your funnel sends them to Google Tag Manager as soon as the visitor accepts.

If a visitor rejects marketing cookies, Google Tag Manager doesn't load for them. If they withdraw their consent later, your funnel stops sending events to Google Tag Manager.


​

Which events does my AI funnel send to Google Tag Manager?

Your AI funnel sends these events to the Google Tag Manager data layer, with the same names as a classic funnel:

  • "Funnel Loaded" when a visitor opens your funnel, including the UTM parameters and the Google Ads click ID (gclid) from the link.

  • "Viewed [page name] Page" and "Page Viewed: [page name]" each time a visitor opens a page.

  • "Button Clicked" when a visitor clicks a button and "Answer Clicked" when they click an answer, each followed by a second event with the button's or answer's ID, for example "Answer Clicked: answer_leads".

  • "Form Submitted" and "Session Converted" when a visitor submits a form.

  • "Funnel Completed" when a visitor reaches the end of your funnel.

Because the event names match, Google Tag Manager tags and triggers you built for a classic funnel, including the container template from How do I track Google Ads?, also work on your AI funnel.

AI funnels don't send events for image clicks or bookings, or the "Cookies Accepted" event, so Google Tag Manager triggers that rely on those classic funnel events don't fire on an AI funnel.


​

Why isn't Google Tag Manager working on my AI funnel?

If Google Tag Manager doesn't load or your tags don't fire on your AI funnel, check these points:

  • You published your funnel after saving your Container ID, because Google Tag Manager won't fire until you do.

  • You accepted marketing cookies while testing. Open your live funnel in Google Tag Manager's preview mode and accept cookies first, since Google Tag Manager only loads after that.

  • You published your changes in Google Tag Manager, because new or changed tags only reach your funnel once you publish them there.

  • Your funnel doesn't contain Google Tag Manager code pasted in through the AI Chat. Google Tag Manager loads only once per page, so remove the pasted code, for example in Code Mode, and publish your funnel again to let the container from the Apps tab load instead.


FAQ

Which plans include Google Tag Manager for AI funnels?

Google Tag Manager for AI funnels is available from the Grow plan or the legacy Business plan, or with the Premium Integration Suite add-on, the same as Google Tag Manager on classic funnels. If your plan doesn't include it, the Google Tag Manager card in the Apps tab takes you to your plan settings to upgrade instead of opening App settings.

How do I change the Google Tag Manager container on my AI funnel?

To change the Google Tag Manager container on your AI funnel, open the Apps tab, click ... on the Google Tag Manager card, choose App settings, replace the Container ID, and click Save settings. Then publish your funnel again, because your live funnel keeps loading the old container until you do.

I added Google Tag Manager code to my AI funnel through the AI Chat. What should I do?

If you added Google Tag Manager code to your AI funnel through the AI Chat, connect Google Tag Manager in the Apps tab instead, remove the pasted code, for example in Code Mode, and publish your funnel again. Google Tag Manager loads only once per page, so as long as the pasted code is in your funnel, it loads instead of the container you connected in the Apps tab.

Do I need to connect Google Tag Manager again after turning a classic funnel into an AI funnel?

Yes, after you turn a classic funnel into an AI funnel, connect Google Tag Manager in the Apps tab of the new AI funnel with the same Container ID and publish it, so you can see and change the connection there. Google Tag Manager still loads only once, even if your classic funnel's Google Tag Manager code was carried over during the conversion.

Can I use a Google Tag Manager environment with my AI funnel?

Did this answer your question?