# Google Analytics on Framer

> Add GA4 to Framer by pasting a Measurement ID in Site Settings, forward framer:click events with Custom Code, and check that the tag fires.

Canonical: https://scaplet.com/seo/framer/google-analytics

Guide Framer Framer · Analytics

Add GA4 to Framer by pasting a Measurement ID in Site Settings, forward framer:click events with Custom Code, and check that the tag fires.

3 min

read

3

sources

Oct 29, 2026

updated

Scaplet Editorial Team

author

In one line

Create a Google Analytics property, copy its Measurement ID, open Site Settings in Framer, paste it into the field labeled Google Analytics Measurement ID, then save and publish. For click and form events, add a script to the Custom Code section that listens for framer:click or framer:formsubmit. Framer says IP anonymization is not required in GA4.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fframer%2Fgoogle-analytics%20(%22Google%20Analytics%20on%20Framer%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fframer%2Fgoogle-analytics%20(%22Google%20Analytics%20on%20Framer%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fframer%2Fgoogle-analytics%20(%22Google%20Analytics%20on%20Framer%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fframer%2Fgoogle-analytics%20(%22Google%20Analytics%20on%20Framer%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

Site Settings > Google Analytics Measurement ID

Where in Framer

Custom Code section

Other tools

framer:click, framer:formsubmit, framer:pageview, framer:triggerinvoke

Events

Not required in GA4, per Framer

IP anonymization

_01_Your call

## Pick the install route

If this fits

### Use the Measurement ID field if

- You want the standard Measurement ID setup with no code.
- You are fine editing nothing beyond Site Settings.
- You do not need custom events.

Or

### Use Custom Code if

- You want to forward link clicks or form submits as GA events.
- You run another tool that needs its tracking code pasted in.
- You already manage tags somewhere else and want to keep that setup.

Framer's help describes both routes: tracking code goes in your settings, and for other third-party tools you paste their tracking code into the Custom Code section. Framer also publishes separate guides for [Google Tag Manager](/glossary/google-tag-manager), listed as related articles on the setup page; this guide covers the direct route.

_02_How it works

## Install GA4 with the Measurement ID

**IP anonymization and consent**Framer notes that in Google Analytics 4, IP anonymization is not required, as it doesn't log or store IP addresses, and tells you to ensure GDPR compliance when using integrations. Consent handling is your responsibility; Framer's page does not describe a built-in banner.

1. 01

### Create a property

If you don't already have a [Google Analytics](/glossary/google-analytics-4) account, create one on the Google Analytics website, then set up a property following Google's instructions.
2. 02

### Copy the Measurement ID

Copy the Measurement ID provided after creating your property. Google's help says a Google tag ID usually starts with "G-".
3. 03

### Paste it

Open Site Settings in your Framer project and paste the ID into the field labeled "Google Analytics Measurement ID."
4. 04

### Save and publish

Save your changes and publish your site.

_03_Framer custom events

## Forward click and form events

First give links and forms a tracking ID: when you set up a link or select a form on the canvas, you can add one, and results then show under Analytics Overview in a section called Tracking, which lists the top 20 tracking events. To send those events to Google Analytics, add a script to the Custom Code section. Framer fires four custom events.

Event

### `framer:click`

Fires when

Someone clicks a link with a tracking ID set

Detail fields

`trackingId`, `href`

Event

### `framer:formsubmit`

Fires when

Someone submits a form with a tracking ID set

Detail fields

`trackingId`

Event

### `framer:pageview`

Fires when

Someone views a page

Detail fields

`framerLocale`

Event

### `framer:triggerinvoke`

Fires when

A trigger with a tracking ID set is invoked

Detail fields

`trackingId`

Framer's gtag.js example for clicks

```
document.addEventListener("framer:click", (event) => { gtag('event', 'click', { 'event_category': 'engagement', 'event_label': event.detail.trackingId, 'value': event.detail.href }); });
```

This [snippet](/glossary/snippet) is Framer's own example. It calls `gtag`, so it only works if the gtag.js library is on the page. Framer's page does not say whether the Measurement ID field loads it, so test before relying on it, and note Framer's page also shows an analytics.js (`ga('send', ...)`) variant, which belongs to Universal Analytics, not GA4.

_04_How it works

## Check it worked

1. 1

### Find the ID in source

Open the published site, view source and search for your Measurement ID.
2. 2

### Watch the network

In DevTools, Network tab, filter for `collect` or your `G-` ID while loading and clicking. A request per page view means the tag fires.
3. 3

### Check Google Analytics

Use a Google Analytics real-time report in another browser. If a tracked click matters, click it once and confirm the event arrives.

For search-side data, see [Framer SEO guides](/seo/framer); for the [favicon](/glossary/favicon) and other head settings, [Framer favicon](/seo/framer/favicon).

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- framer.com
- google.com

1. 01 [Setting up Google Analytics | Framer Help](https://www.framer.com/help/articles/how-to-set-up-google-analytics/) framer.com · checked 2026-11-01
2. 02 [How to track links and forms in Framer | Framer Help](https://www.framer.com/help/articles/how-to-track-links-and-forms-in-framer/) framer.com · checked 2026-11-01
3. 03 [Find your Google tag ID | Analytics Help](https://support.google.com/analytics/answer/9539598) support.google.com · checked 2026-11-01

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Where do I paste the Google Analytics ID in Framer?

Open Site Settings in your Framer project and paste the Measurement ID into the field labeled "Google Analytics Measurement ID", then save and publish.

_02_ How do I add other analytics tools to Framer?

Paste their tracking code into the Custom Code section of your Framer project, per Framer's help.

_03_ Can I send Framer click events to Google Analytics?

Yes. Add a script to Custom Code that listens for `framer:click` or `framer:formsubmit` and forwards them. Framer provides gtag.js and analytics.js examples.

## Keep learning

[All platform guides](/seo)

[Learn Framer favicon CMS](/seo/framer/favicon) [Related Framer SEO Website builders](/seo/framer) [Read next Framer robots.txt CMS](/seo/framer/robots-txt) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in platform guides
[Framer SEO](/seo/framer)

More in Framer SEO
[Framer favicon](/seo/framer/favicon) [Framer robots.txt](/seo/framer/robots-txt) [Framer URL redirects](/seo/framer/redirects) [Framer XML sitemap](/seo/framer/xml-sitemap) [Google Analytics on Framer](/seo/framer/google-analytics)

Terms on this page
[Google Tag Manager](/glossary/google-tag-manager) [Google Analytics 4](/glossary/google-analytics-4) [Search snippet](/glossary/snippet) [Favicon](/glossary/favicon)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
