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

  • 1
    In Google Analytics, open Admin.
  • 2
    Under Data collection and modification, click Data streams.
  • 3
    Open the Web tab and click your data stream.
  • 4
    Copy 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

  • 1
    Open Settings → Integrations.
  • 2
    Paste the ID in the Google Analytics field.
  • 3
    Publish.

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

Start building with your AI

Free to start. Connect Claude, ChatGPT or Cursor, fine-tune it in the editor, and host it anywhere.

Get started for free
Flipsite

©2026 Flipsite. All rights reserved. Made in the EU 🇪🇺 🇦🇽