Flat 30% off for Singapore 🇸🇬

Integrations · Analytics

Google Tag Manager and Framer: how to connect them

Install Google Tag Manager on Framer by adding its two snippets as custom code: the first at the start of the head and the second at the start of the body, both on all pages and set to run once. Then create a Google Tag with your GA4 Measurement ID inside Tag Manager.

At a glance

  • How it connectsCustom code
  • Where in FramerSite Settings, Code: two snippets
  • Checked29 October 2026

By Shaheer Malik · Source: Framer Help: Add Google Tag Manager to your site, read on 29 October 2026

Quick answer: Install Google Tag Manager on Framer by adding its two snippets as custom code: the first at the start of the head and the second at the start of the body, both on all pages and set to run once. Then create a Google Tag with your GA4 Measurement ID inside Tag Manager.

How to connect Google Tag Manager to Framer

  1. Create a Tag Manager container and copy its two snippets
  2. In Framer, open Site Settings, Code, and add the first snippet: placement start of head, all pages, run once
  3. Add the second snippet: placement start of body, all pages, run once
  4. In Tag Manager, create a Google Tag with your GA4 Measurement ID and the Initialization, All Pages trigger
  5. Use Tag Manager's Preview to connect to the published site, then check GA4's DebugView for page_view events

Good to know

How custom code works in Framer

Framer's Custom Code section, in Site Settings, is where tracking scripts and chat widgets go. Framer's help lists analytics and marketing tags, chat and support widgets, small CSS and JavaScript tweaks, and structured data as its uses. For each snippet you choose:

Before you add tracking

At a glance

ToolGoogle Tag Manager
CategoryAnalytics
How it connectsCustom code
Where in FramerSite Settings, Code: two snippets

Google Tag Manager and Framer questions

Where do the Tag Manager snippets go in Framer?

In Site Settings, Code: the first at the start of the head and the second at the start of the body, both on all pages and set to run once.

Can I track button clicks in Framer with Tag Manager?

Yes. Framer's help centre has a separate guide to tracking click events with Google Tag Manager.

Related integrations

Every integration is on the integrations page. If you would rather have the site built with this already connected, the Framer website sprint is $1,999 fixed for 14 days.

Want it connected for you?

I design and build Framer sites with analytics, forms and integrations set up, for a fixed $1,999 in 14 days.