Add Google Analytics
Connect Google Analytics 4 to your site with its measurement ID, and what it means for speed and consent.
Flipsite adds the Google Analytics script to every page when you publish. You only need the measurement ID of your Google Analytics 4 property.
Find your measurement ID
-
1In Google Analytics, open Admin.
-
2Under Data collection and modification, click Data streams.
-
3Open the Web tab and click your data stream.
-
4Copy the measurement ID from the first row. It starts with
G-.
You need to be an Editor or higher on the property to see it.
Add it to your site
-
1Open Settings → Integrations.
-
2Paste the ID in the Google Analytics field.
-
3Publish.
Over MCP, call site_integrations_edit with googleAnalytics set to the ID.
Check that it works
The script only runs on the published site, not in the preview. Open your live site in a new tab and look at the Realtime report in Google Analytics. Your visit shows up there.
Consent and speed
Google Analytics uses cookies. In the EU, visitors have to consent before it runs. It is also the heaviest of the services Flipsite supports: in our test it sent about 160 KB to a plain page, against 5 to 8 KB for Plausible, Simple Analytics and Fathom. The page still scored 100 on Lighthouse. If you want a light, cookieless alternative, see Add Plausible Analytics or Add Simple Analytics.
List Google Analytics in your privacy policy: Add a GDPR-compliant privacy policy.
Read more about finding your measurement ID. Using another service? See Add analytics and tracking.
Frequently asked questions
Related articles
Add analytics and tracking
Add Plausible, Simple Analytics, Google Analytics, Google Tag Manager, Meta Pixel or Fathom.
Add Plausible Analytics
Connect Plausible to your site with its script name. No cookies, a tiny script, and the Lighthouse score stays at 100.
Add Google Tag Manager
Connect Google Tag Manager to your site with its container ID, and manage your other tags from there.