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.
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.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
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, listed as related articles on the setup page; this guide covers the direct route.
If you don't already have a Google Analytics account, create one on the Google Analytics website, then set up a property following Google's instructions.
Copy the Measurement ID provided after creating your property. Google's help says a Google tag ID usually starts with "G-".
Open Site Settings in your Framer project and paste the ID into the field labeled "Google Analytics Measurement ID."
Save your changes and publish your site.
framer:clicktrackingId, hrefframer:formsubmittrackingIdframer:pageviewframerLocaleframer:triggerinvoketrackingIddocument.addEventListener("framer:click", (event) => {
gtag('event', 'click', {
'event_category': 'engagement',
'event_label': event.detail.trackingId,
'value': event.detail.href
});
});This 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.
Open the published site, view source and search for your Measurement ID.
In DevTools, Network tab, filter for collect or your G- ID while loading and clicking. A request per page view means the tag fires.
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; for the favicon and other head settings, Framer favicon.
3 questions people ask next, answered from the sources on this page.
Open Site Settings in your Framer project and paste the Measurement ID into the field labeled "Google Analytics Measurement ID", then save and publish.
Paste their tracking code into the Custom Code section of your Framer project, per Framer's help.
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.
Run the free audit, then approve the fixes. Every change can be undone.