---
title: "Framer Help: Add Google Tag Manager to your site"
description: Learn how to install Google Tag Manager on your Framer site and connect it to Google Analytics 4.
published: "Nov 6, 2026, 11:03 AM UTC"
---

# Add Google Tag Manager to your site

Learn how to install Google Tag Manager on your Framer site and connect it to Google Analytics 4.

[Google Tag Manager](../../../dictionary/google-tag-manager) (GTM) lets you manage tracking tags without modifying your site's code. This guide shows you how to install GTM in Framer, connect it to [Google Analytics](../../../dictionary/google-analytics) 4 (GA4), and verify that everything is working correctly.

If you only want to use [Google Analytics](../../../dictionary/google-analytics), follow the [dedicated Google Analytics setup guide](../how-to-set-up-google-analytics/) instead. Both work on any site you publish with Framer’s [website builder](../../../).

### [Create a Google Tag Manager container](#create-a-google-tag-manager-container)
1. Go to `tagmanager.google.com`.
2. Click **Create Account**.
3. Enter your **Account Name** and **Container Name**.
4. Select **Web** as the target platform.
5. Accept the terms and create your container.

Google Tag Manager will display two code snippets. You’ll add both to your Framer site in the next step.

### [Add the Google Tag Manager code to Framer](#add-the-google-tag-manager-code-to-framer)
1. Open your Framer project.
2. Go to **Site Settings** → **Code**.
3. Add the first GTM snippet as a custom code entry with these settings:

**Setting** | **Value**
Placement | Start of `<head>`
Pages | All
Run | Once
1. Add the second GTM snippet as another custom code entry with these settings:

**Setting** | **Value**
Placement | Start of `<body>`
Pages | All
Run | Once

### [Connect Google Tag Manager to Google Analytics](#connect-google-tag-manager-to-google-analytics)

To send data to Google Analytics, you’ll need a GA4 property and web data stream.
1. Go to **analytics.google.com**.
2. Create a GA4 property and a **Web** data stream if you don't already have one.
3. Copy your **Measurement ID**.
4. Return to **Google Tag Manager**.
5. Create a new **Google Tag**.
6. Paste your **Measurement ID** into the **Tag ID** field.
7. Set the trigger to **Initialization – All Pages**.
8. Save the tag.

### [Verify your setup](#verify-your-setup)
1. In Google Tag Manager, click **Preview** and connect to your published website.
2. Confirm that the **Google Tag** fires successfully in Tag Assistant.
3. In Google Analytics, go to **Admin** → **DebugView**.
4. Visit your site and confirm that events, such as `page_view`, appear.

If Preview mode doesn’t connect, try installing the **Tag Assistant Companion** browser extension.

### [Publish your changes](#publish-your-changes)

After you’ve confirmed that everything is working correctly, click **Submit** in Google Tag Manager and publish your container.

#### FAQ

### Do I need both Google Tag Manager and Google Analytics?

No. If you only need basic website analytics, you can install Google Analytics directly. Google Tag Manager is useful when you want to manage multiple tags or configure advanced tracking.

### Why isn’t Preview mode connecting to my site?

Make sure you’ve published your latest changes in Framer and installed both GTM code snippets in the correct locations. Browser extensions or privacy settings can also interfere with Preview mode.

### Can I track button clicks and other custom events?

Yes. Google Tag Manager supports custom triggers and events for buttons, links, forms, and many other interactions. These are covered in separate guides.

Updated

September 15, 2026

## Your next idea starts here

Create personal portfolio, Build startup site, `Launch landing page`, Start company blog

[Start without AI](https://framer.com/signup)

---

## Navigation

- [Enterprise](../../../enterprise/)
- [Pricing](../../../pricing)
- [Log in](https://framer.com/login)
- [Sign up](https://www.framer.com/r/signup/)
- [Brand guidelines](../../../brand)
- [Help center](../../)
- [Integrations](../../integrations/)
- [AI](../../../ai/)
- [Agents](../../../agents/)
- [MCP New](../../../mcp/)
- [Design](../../../design/)
- [Collaborate](../../../collaborate/)
- [CMS](../../../cms/)
- [Hosting](../../../hosting/)
- [Performance](../../../performance/)
- [Analytics](../../../analytics)
- [SEO](../../../seo/)
- [Skills New](../../../skills)
- [Convert](../../../convert/)
- [Publish](../../../publish/)
- [Updates](../../../updates)
- [Templates](https://www.framer.com/community/marketplace/templates/)
- [Components](https://www.framer.com/community/marketplace/components/)
- [Vectors](https://www.framer.com/community/marketplace/vectors/)
- [Plugins](https://www.framer.com/community/marketplace/plugins/)
- [Gallery](https://www.framer.com/community/gallery/)
- [Hire Experts](https://www.framer.com/community/members/)
- [Switch New](../../../switch/)
- [Agencies](../../../agencies/)
- [Startups](../../../startups/)
- [Academy](../../../academy/)
- [Desktop App](../../../downloads/)
- [Developers](../../../developers/)
- [Affiliates](../../../creators)
- [Experts New](../../../expert/apply/)
- [Guides](../../../guides)
- [Blog](../../../blog/)
- [Newsletter](../../../newsletter)
- [Stories](../../../stories/)
- [Skills Index New](../../../skills/index)
- [Students](../../../education/students/)
- [Ambassadors](../../../)
- [Help Articles](../../)
- [Meetups](../../../meetups/)
- [Contact](../../../contact/)
- [Designers](../../../solutions/designers/)
- [Agencies](../../../solutions/agencies/)
- [Marketers](../../../solutions/marketers/)
- [Growth](../../../solutions/growth/)
- [Builders](../../../solutions/builders/)
- [Engineers](../../../solutions/engineers/)
- [Site Teams](../../../solutions/site-teams/)
- [Founders](../../../solutions/founders/)
- [AI website builder](../../../solutions/ai-website-builder/)
- [AI design agent](../../../solutions/ai-designer/)
- [Pro sites](../../../solutions/website-builder/)
- [Landing pages](../../../solutions/landing-pages/)
- [Portfolio maker](../../../solutions/portfolio-website/)
- [UI/UX design](../../../solutions/ui-ux-design/)
- [Figma to HTML](../../../solutions/figma-to-html/)
- [No-code](../../../solutions/no-code-website-builder/)
- [Compare](../../../compare)
- [Webflow](../../../compare/framer-vs-webflow)
- [Figma](../../../compare/framer-vs-figma)
- [Wix](../../../compare/framer-vs-wix)
- [Squarespace](../../../compare/framer-vs-squarespace)
- [WordPress](../../../compare/framer-vs-wordpress)
- [Readymag](../../../compare/framer-vs-readymag)
- [Ceros](../../../compare/framer-vs-ceros)
- [Unbounce](../../../compare/framer-vs-unbounce)
- [Lovable](../../../compare/framer-vs-lovable)
- [Claude Code](../../../compare/framer-vs-claude-code)
- [ChatGPT](../../../compare/framer-vs-chatgpt)
- [Codex](../../../compare/framer-vs-codex)
- [Contentful](../../../compare/framer-vs-contentful)
- [Sanity](../../../compare/framer-vs-sanity)
- [AEM](../../../compare/framer-vs-adobe-experience-manager)
- [Replit](../../../compare/framer-vs-replit)
- [Astro](../../../compare/framer-vs-astro)
- [v0](../../../compare/framer-vs-v0)
- [About New](../../../about)
- [Careers](../../../careers/)
- [Security](../../../legal/security)
- [Brand](../../../brand)
- [Abuse](mailto:abuse@framer.com)
- [Legal](../../../legal/community-terms)
- [Trust](https://app.eu.vanta.com/framer.com/trust/ow67ujg7iav0t6qtd1o6r2)
- [Merch](../../../store)
- [Keyboard](../../../f1)
- [Stack Score](../../../stack-score/)
- [Free domains](../../../domains/)
- [CanvasBench](../../../canvasbench/)
- [State of Sites](https://www.framer.com/state-of-sites-2026/)
- [AEO scanner](../../../aeo)
- [Link Preview](https://www.linkpreview.app/)
- [Checking status](https://www.framerstatus.com/)
