Find Google Tag Manager Tracking Code and ID
- Locate your GTM container ID
- Install the GTM snippet on your site
- Verify GTM is firing correctly
Watch the full walkthrough below, then follow the guide to use GTM Preview mode to identify your custom event name and create a GA4 Event tag with a Custom Event trigger.
Follow these steps alongside the video — first find your custom event name in Preview mode, then create the tag and trigger.
Book a 90-minute coaching session and we'll work through your GTM setup together!
Common questions about setting up custom events with Google Tag Manager.
A custom event in GTM is an action fired by your website's code (or another tag) that GTM listens for using a Custom Event trigger. Common examples include button clicks, form submissions, video plays, or scroll depth milestones that your site pushes to the dataLayer. GTM intercepts these events and uses them to fire tags — such as sending a GA4 event to Google Analytics.
Preview mode (via Tag Assistant) lets you see exactly which events fire on your site in real time — and their exact names as pushed to the dataLayer. This is important because the event name in your Custom Event trigger must match the dataLayer event name exactly (it is case-sensitive). Using Preview mode removes any guesswork and ensures your trigger fires correctly.
Your GA4 Measurement ID starts with G- followed by letters and numbers. Find it in Google Analytics under Admin > Data Streams > Web > select your stream. The Measurement ID is displayed at the top right of the stream details panel. Copy it and paste it into the GA4 Event tag configuration in GTM.
Yes. Changes in GTM (new tags, triggers, or variables) only go live after you click Submit and publish a new container version. Until you publish, changes only exist as a draft and only appear in Preview mode. It is good practice to batch multiple related changes into a single publish to keep your version history clean and easy to roll back if needed.
Yes. The Custom Event trigger fires wherever the specified event name is pushed to the dataLayer — regardless of which page the user is on. If you need to restrict the trigger to specific pages, add a filter condition to the trigger (e.g., Page URL contains /checkout/) so it only fires in the right context.
After publishing the GTM container, new custom events typically appear in the GA4 Realtime report within a few seconds of being triggered. Standard reports (Explorations, Events report) update within 24–48 hours. Use the Realtime report immediately after publishing to confirm the event is firing and reaching GA4 correctly before checking standard reports.
More step-by-step guides to get more from Google Tag Manager.
Need a hands-on walkthrough tailored to your setup? Book a 90-minute coaching session and we'll configure it together.