Google Tag Manager
Load your GTM container on all funnel pages and push AppFunnel events to the dataLayer for use with GTM triggers.
What It Does
- Loads the GTM container script automatically on every funnel page. No manual script injection needed.
- Pushes events to the
dataLayerso you can create triggers and tags in GTM based on funnel activity (page views, purchases, etc.).
Google Tag Manager is a client-side only integration. Events are pushed to the dataLayer in the visitor’s browser. There is no server-side component.
Setup
Navigate to Settings > Integrations > Google Tag Manager in your project.
- Container ID: Your GTM container ID, formatted as
GTM-XXXXXXX. Find this in your GTM workspace at the top of the page.
Insert image: The Google Tag Manager integration settings page showing the Container ID input field with a GTM-XXXXXXX placeholder value
Event Mapping
AppFunnel pushes events to the dataLayer using GA4-compatible event names by default:
| AppFunnel Event | Default dataLayer Event |
|---|---|
page.view | page_view |
checkout.start | begin_checkout |
checkout.payment_added | add_payment_info |
purchase.complete | purchase |
Each event can be individually enabled, disabled, or remapped to a custom event name.
Using Events in GTM
Once the integration is active, create triggers in GTM based on the dataLayer events:
- Go to Triggers > New in your GTM workspace.
- Choose Custom Event as the trigger type.
- Enter the event name (e.g.,
purchase) as the event name. - Attach the trigger to your tags (Google Ads conversion, GA4 event, etc.).
If you remap an event name in AppFunnel (e.g., changing purchase to conversion_complete), make sure your GTM triggers use the remapped name.
Combining with Other Integrations
GTM is commonly used alongside the Meta Ads integration. If you are already using AppFunnel’s native Meta Ads integration for Pixel tracking, you do not need to add the Meta Pixel again through GTM — this would result in duplicate events.
Use GTM for tags and services that AppFunnel does not have a native integration for (e.g., Google Ads, TikTok, Pinterest, custom analytics).