---
title: "Google Tag Manager and Framer: How to Connect Them (2026)"
description: "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,."
url: https://www.shaheermalik.com/integrations/google-tag-manager
language: en
format: agent view of this page (the same content as the page, as plain text)
updated: 2026-11-23
---

[Integrations](https://www.shaheermalik.com/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.

[Framer site in 14 days](https://www.shaheermalik.com/shipitlive/framer-website-in-14-days) [All integrations](https://www.shaheermalik.com/integrations)

At a glance

- How it connects Custom code
- Where in Framer Site Settings, Code: two snippets
- Checked 29 October 2026

By [Shaheer Malik](https://www.shaheermalik.com/about) · Source: [Framer Help: Add Google Tag Manager to your site](https://www.framer.com/help/articles/how-to-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

- Framer's help also has a guide to tracking click events with Tag Manager
- If Preview will not connect, Framer suggests the Tag Assistant Companion browser extension
- Do not also paste the GA4 ID into Framer's built-in field, or page views may be counted twice

## 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:

- **Placement:** the start or end of the head, or the start or end of the body
- **Pages:** every page, or only the pages you select, including CMS pages
- **When it runs:** once, or on every page visit

## Before you add tracking

- Check the consent rules for where your visitors are, and add a consent banner if you need one
- Mask typed text in any tool that records sessions
- Install each tool once, so page views are not counted twice
- Test on the published site, not the editor preview, and watch page speed after adding scripts

## At a glance

| Tool | Google Tag Manager |
| --------------- | --------------------------------- |
| Category | Analytics |
| How it connects | Custom code |
| Where in Framer | Site 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

- [Google Analytics and Framer](https://www.shaheermalik.com/integrations/google-analytics): a built-in setting
- [Google Search Console and Framer](https://www.shaheermalik.com/integrations/google-search-console): a verification meta tag
- [Microsoft Clarity and Framer](https://www.shaheermalik.com/integrations/microsoft-clarity): custom code

Every integration is on the [integrations](https://www.shaheermalik.com/integrations) page. If you would rather have the site built with this already connected, the [Framer website sprint](https://www.shaheermalik.com/shipitlive/framer-website-in-14-days) is $1,500 fixed for 14 days.

Work I designed and built

[ Silver Cat Boats Marine / Luxury · 2024](https://www.shaheermalik.com/case-studies/silver-cat-boats) [ Quadzio SaaS · 2024](https://www.shaheermalik.com/case-studies/quadzio-case-study) [ EagleRider Website Redesign Travel & Mobility · 2024](https://www.shaheermalik.com/case-studies/eaglerider-website-redesign)

Shown as the standard of work. Each project had its own scope and price. [All case studies](https://www.shaheermalik.com/case-studies)

## Want it connected for you?

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

[See the Framer sprint](https://www.shaheermalik.com/shipitlive/framer-website-in-14-days) [Get in touch](https://www.shaheermalik.com/contact)

Only need a marketing site of up to 25 pages? The [fixed-price website](https://www.shaheermalik.com/fixed-price-website) is $1,500, designed and built in Framer and live in 14 days.

## What you can do here
- Get a fixed-price proposal: https://www.shaheermalik.com/proposal/chat (describe the project in a sentence or two)
- Free website audit: https://www.shaheermalik.com/audit?site=example.com (replace example.com with the site; the score needs no email)
- Book a free scope call: https://www.shaheermalik.com/fixed-price-website#book
- Contact: https://www.shaheermalik.com/contact
- Prices and facts for the whole site: https://www.shaheermalik.com/llms.txt

## Structured data

```json
{
 "@context": "https://schema.org",
 "@type": "HowTo",
 "name": "How to connect Google Tag Manager to a Framer site",
 "description": "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.",
 "url": "https://www.shaheermalik.com/integrations/google-tag-manager",
 "step": [
  {
   "@type": "HowToStep",
   "position": 1,
   "name": "Create a Tag Manager container and copy its two snippets",
   "text": "Create a Tag Manager container and copy its two snippets"
  },
  {
   "@type": "HowToStep",
   "position": 2,
   "name": "In Framer, open Site Settings, Code, and add the first snippet: placement start of head, all pages, run once",
   "text": "In Framer, open Site Settings, Code, and add the first snippet: placement start of head, all pages, run once"
  },
  {
   "@type": "HowToStep",
   "position": 3,
   "name": "Add the second snippet: placement start of body, all pages, run once",
   "text": "Add the second snippet: placement start of body, all pages, run once"
  },
  {
   "@type": "HowToStep",
   "position": 4,
   "name": "In Tag Manager, create a Google Tag with your GA4 Measurement ID and the Initialization, All Pages trigger",
   "text": "In Tag Manager, create a Google Tag with your GA4 Measurement ID and the Initialization, All Pages trigger"
  },
  {
   "@type": "HowToStep",
   "position": 5,
   "name": "Use Tag Manager's Preview to connect to the published site, then check GA4's DebugView for page_view events",
   "text": "Use Tag Manager's Preview to connect to the published site, then check GA4's DebugView for page_view events"
  }
 ]
}
```
