What does a Google Tag Manager integration do on a marketing site?
Google Tag Manager is a container that loads your marketing and analytics tags from one place. Instead of pasting GA4, LinkedIn, Meta and ad conversion snippets into the site one by one, you install GTM once and manage the rest in its web interface. Marketing can add or pause a tag without a developer, and every change is versioned.
The install is the easy part. A useful integration also decides which events the site sends, what each one is called, and which tags may fire before and after consent. Without that, GTM turns into a pile of tags nobody remembers adding. Our guide to a clean Google Tag Manager setup for startups covers the account structure side.
- Tags: GA4, ad platform pixels, conversion tags and tools like heatmaps, loaded from one container.
- Triggers: rules for when each tag fires, such as a page view, a form success or a click on a pricing button.
- Variables: values tags need, like the form name, page type or UTM source.
- Data layer: a small JavaScript object the site pushes events into, so tags read clean data instead of scraping the page.
- Versions and workspaces: every published change is saved, so you can see who changed what and roll back.
How do you add GTM to Webflow, Framer and Next.js?
Google's install instructions give two snippets: a script that goes as high in the head as possible, and a noscript fallback right after the opening body tag. Each platform has its own place for them, and the differences matter more for events than for the install.
Task | Webflow | Framer | Next.js |
|---|---|---|---|
Install the container | Site settings custom code (head and footer) | Site Settings custom code, using the start of head and start of body fields | The GoogleTagManager component from @next/third-parties, or next/script |
Plan needed | Custom code needs a paid plan, check Webflow's current plans | Check Framer's current plan page | None, it's your code |
Form success events | A small script that pushes an event when Webflow shows the success state | Pushed from a code component or a tracked redirect to a thank-you page | Pushed from the form's success handler |
Route changes | Full page loads, so page views work by default | Check page view behaviour in GTM Preview | Client-side navigation needs a history change trigger or explicit events |
Testing | GTM Preview on the published site | GTM Preview on the published site, custom code doesn't run in the editor | GTM Preview on a preview deployment |
On Next.js, the GoogleTagManager component in the Next.js docs loads the container after hydration and gives you a sendGTMEvent helper for pushing events from client components. Our GTM on Webflow guide walks through Webflow's form events in detail. Platform menus move, so we check Framer's and Webflow's current help pages at the start of each project.
What should go in the data layer?
The data layer should hold the events that map to your funnel, named consistently, with only the details your reports actually use. Most marketing sites need only a handful of events. If you're not sure what a data layer is, our explainer on what a data layer is in Google Tag Manager starts from zero.
Event | When it fires | Useful parameters |
|---|---|---|
generate_lead | A contact or demo form succeeds | form name, page path |
book_meeting | A Calendly or Cal.com booking completes | meeting type |
sign_up | A signup or waitlist form succeeds | plan, method |
cta_click | A primary call to action is clicked | button label, section |
file_download | A gated asset is downloaded | file name |
Event names like generate_lead and sign_up follow GA4's recommended events, which keeps GA4 reports and ad platform imports simple. We write the list into a short tracking plan so the next person to touch GTM knows what each event is for.
How does GTM work with Consent Mode and cookie banners?
GTM is usually where consent is enforced: the consent platform tells GTM what the visitor agreed to, and tags only fire, or only fire in limited mode, when the matching consent is granted. Google's Consent Mode v2 uses signals such as analytics_storage, ad_storage, ad_user_data and ad_personalization for this.
The order of loading matters. Default consent must be set before any Google tag runs, and the banner's update must reach GTM before conversion tags fire. Our guide to Consent Mode v2 mistakes covers the failures we see most, and cookie banners on Framer and Webflow compares native options with consent platforms.
Does Google Tag Manager slow down your site?
GTM itself is a modest script, but the tags inside it can slow a site a lot, because each one adds third-party JavaScript. The container makes it easy to keep adding tags, so speed problems tend to grow quietly after launch.
Pros
- One place to audit and remove scripts, instead of hunting through page code
- Tags can fire only on the pages and events that need them
- Marketing changes don't wait for a developer or a site publish
- Versioning makes it safe to test and roll back
Cons
- Every extra tag adds JavaScript that can hurt load speed and INP
- Anyone with publish access can break tracking or the page
- Tags added without a plan create duplicate and conflicting data
- Some ad blockers block GTM, so client-side data is never complete
We set tags to fire only where they're needed and check Core Web Vitals after the container is live. Our third-party scripts audit method shows how to find the tags that cost the most. For teams that want more control, server-side tagging moves some processing off the browser, though it adds hosting and setup work.
What are the common GTM setup mistakes?
Most GTM problems are data problems that look fine until someone compares reports. These are the ones we check for.
- Tracking button clicks instead of form success: a click on Submit counts failed and spam submissions as leads.
- Duplicate GA4 installs: GA4 loaded by GTM and by a platform setting at the same time.
- Missing page views on Next.js: client-side navigation that never tells GTM the page changed.
- No naming convention: tags called "New Tag 3" that nobody dares to delete.
- Too many people with publish rights: changes go live with no review.
- Testing in the editor: Framer and Webflow custom code only runs on the published site, so tests in the editor prove nothing.
How do we set up Google Tag Manager, and what does it cost?
Agree the events
We list the conversions that matter with you, usually leads, bookings and signups, and write them into a short tracking plan.
Install and clean up
One GTM container on the site, with any hard-coded tags it replaces removed.
Build the data layer
Form success, bookings and key clicks pushed as named events with useful parameters.
Connect consent
Your cookie banner and Consent Mode v2 set up so tags respect what visitors chose.
Test and hand over
Every tag checked in GTM Preview and GA4 DebugView, then a short guide for your team on adding tags safely.
GTM setup is part of how we build every site. Our website package is $8,000 fixed for up to six pages, with copy, design and the build, and our GA4 integration page covers the analytics side in more depth. If you need ongoing tag changes after launch, the monthly retainer is $6,000. The next step is a free 30-minute call.
















