FNJ

Setting Up Google Analytics After Exporting a Framer Site

Framer's built-in analytics doesn't travel with an export. Here's exactly how to wire up GA4 (or another provider) on your new hosting.

PublishedJuly 17, 2026
Read time2 min
Written byThe Framer → Next.js team
All posts ↗

Framer includes its own basic analytics for published sites, but that data — and the tracking itself — is tied to Framer's hosting. Once you export and move to your own domain/hosting, you need to set up tracking independently.

Why this doesn't carry over automatically

Framer's analytics script is part of its runtime, loaded from Framer's own infrastructure. A runtime-stripped export removes it along with everything else Framer-specific — correctly, since you don't want a tracking script phoning home to a platform you're leaving. But it means day one on your new hosting has zero analytics until you add your own.

Setting up Google Analytics 4

  1. Create a GA4 property in Google Analytics if you don't already have one, and grab your Measurement ID (starts with G-).
  2. Add the GA4 tag to your site. For a static HTML export, that's the standard gtag.js snippet dropped into the <head> of every page (or a single shared layout file, if your export structure has one). For a Next.js export, this is typically a single script added to your root layout, so it applies site-wide without touching every page.
  3. Verify it's firing — GA4's Realtime report is the fastest check: open your live site in another tab, watch for your own visit to register within a few seconds.
  4. Set up conversion events for anything that actually matters to the business — form submissions, key button clicks — rather than relying on pageviews alone.

Don't forget these while you're in there

  • Search Console — verify your new domain (or the new hosting URL, if you kept the same domain) as a fresh property if you don't already have it verified, so you can monitor indexing and search performance going forward.
  • A sitemap — make sure one exists and is submitted, especially important right after a migration when you want Google to re-crawl efficiently rather than discover pages slowly through normal crawling.
  • Any existing UTM-tagged campaigns or backlinks pointing at your old Framer URL — if your domain changed as part of the move, a redirect strategy matters for not losing that traffic and link equity.

Analytics continuity is one of the easiest things to forget in a platform migration, precisely because the old dashboard doesn't send you an alert saying "you have zero visibility now" — it just quietly stops being useful.

#framer#analytics#google analytics#export#seo

Convert your Framer site next

Free, takes about a minute, and you can preview the result before deploying.

Convert free →
Up nextThe Best Framer to Next.js Converter Options in 2026, Compared Honestly

Ready to convert your website?

Paste your published Framer URL to generate a production-ready project in minutes.