Setting up analytics and SEO on a Webflow site: what we fixed and what we learned

Setting up analytics and SEO on a Webflow site: what we fixed and what we learned

Our mobile PageSpeed performance went from 76 to 95 and Accessibility from 97 to 100. What mattered most was making the hero image load first, serving images at the size they're shown, removing a duplicate Google tag, and replacing opacity-dimmed text with a real color.

‍

Diem Ngo
Founder of Ngo Studio
Last updated:
November 2, 2026
Blog article main image at the top of the page.

Launching a website feels like the finish line. It isn't. The day after the Ngo Studio site went live, we wanted to know who was visiting, whether Google could find it, and why the page wouldn't scroll on our phones. Every answer opened three more questions.

This is what we set up on our Webflow site, the problems we ran into, and the order we would do it in next time. It's written for Webflow owners and designers who want to set up analytics and SEO properly.

Step 1: Add Google Analytics 4

GA4 takes about ten minutes to set up, and the only thing Webflow needs from it is one ID.

  1. Create an account at analytics.google.com, then a GA4 property with your time zone and currency.
  2. Add a Web data stream with your site's address. Use the same version of your domain (with or without www) as your live site.
  3. Copy the Measurement ID, which starts with G-. You'll find it under Admin → Data streams.
  4. Add it to Webflow. Either enter it in Site settings → Apps & integrations, or paste Google's snippet into Site settings → Custom code → Head.
  5. Open your site, then check Reports → Realtime in GA4. You should see yourself within a minute.

Use only one of the two methods in item 4, never both. We explain why in "Two mistakes we nearly missed" below.

If your enquiries come in through email links, mark clicks on those links as key events under Admin → Events. Then GA4 shows you which pages lead to real enquiries, not just visits.

Step 2: Deal with cookie consent

If you use Google Analytics and have visitors in the EU, you need consent before analytics cookies are set. Webflow has no built-in cookie banner, which surprised us.

There are two realistic routes:

  • Analytics with a consent banner. Use a Webflow Marketplace app such as Consent Pro by Finsweet, or a policy service such as Termageddon that includes a banner. We use the latter on our own site. As a design agency, we applied to Termageddon's partnership program and were accepted, and the program includes their cookie banner. Choose opt-in, keep analytics off until the visitor accepts, and link a privacy policy. You get the richest data, but some visitors will decline, so your numbers will be lower.
  • Cookie-free analytics. Tools like Plausible or Fathom count visits without personal data, so they generally don't need a banner. They're simpler, but paid, and show less detail than Google.

If you use a banner, put the Google tag under the consent tool's control. A tag pasted straight into Webflow's Head code loads for everyone, before anyone has agreed to anything.

This is practical guidance from our own setup, not legal advice. If your situation is complicated, please contact a lawyer.

Step 3: Lay the SEO foundations

Analytics tells you who visits. Search Console tells you how Google sees you. Set up both.

  • Google Search Console. Add your domain, verify it, and submit your sitemap.xml (a file that lists every page on your site so Google can find them). It shows which searches bring people to your site and whether your pages are indexed. Link it to GA4 under Admin → Product links.
  • One primary domain. Choose www or non-www, redirect the other with a 301, and use the same version everywhere: schema, sitemap, Search Console and Analytics.
  • Unique titles and descriptions. Every page needs its own title (about 60 characters) and meta description (about 155) in Webflow's page settings. Duplicates are the most common easy SEO fix.
  • Structured data. We added JSON-LD for the organisation, the website, blog posts and the FAQ page, so search engines and AI tools can read the site clearly. Keep it in one place: either Webflow's schema field or custom code, not both.
  • An llms.txt file. It's a plain summary of your site for AI tools. Webflow lets you upload one under Site settings → SEO.
  • Bing Webmaster Tools. It takes two minutes to import from Search Console, and it matters for AI search that uses Bing.

Don't forget alt text on images, especially in your portfolio.

Step 4: Fix what PageSpeed finds

Our first mobile PageSpeed run scored 76. Accessibility, Best Practices and SEO were already 97 to 100, so the whole problem was one number: Largest Contentful Paint (LCP) at 6.7 seconds. These are the fixes that made a difference.

Our first mobile PageSpeed run: performance 76, with LCP at 6.7 s.
  • Make the hero image easy to find. The hero image was a CSS background, so the browser only discovered it after the stylesheet had loaded. We swapped it for a regular image element set to load eagerly, with fetchpriority="high", so the browser finds it straight away. A preload link on its own wasn't enough: it didn't match the real request, so Lighthouse's check kept failing.
Lighthouse's LCP check before the fix: the hero image isn't discoverable from the HTML and has no high fetch priority.
  • Serve images at the size they're shown. Blog thumbnails were downloaded at 404 × 406 px but displayed far smaller, and a 512 px logo was shown at 42 px. We re-exported the thumbnails at 56 × 56 px. Set the real size in the Designer's Style panel so Webflow generates the right sizes, and upload small versions where you can.
Lighthouse's image delivery check: images downloaded larger than the size they're shown at.
  • Delay non-essential network calls. Our weather and world clock widgets made about ten requests as the page loaded. We moved them to run after the page has finished loading, so they stop competing with the content people see first.
The network dependency tree: weather and location requests (open-meteo, ipwho.is) fire as the page loads.
  • Remove what you don't use. Check the Interactions panel and delete any components you don't use. Fewer Webflow features on a page means less JavaScript to load.

A console check for Webflow components on the page: only the nav is in use.
‍

The screenshot below is a mobile PageSpeed Insights report from partway through the work, taken after our first round of fixes. It shows Largest Contentful Paint down from 6.7 s to 5.3 s: real progress, but still well above Google's 2.5 s target, so there was more to do.

An earlier run, after the first round of fixes: LCP at 5.3 s.

Two cautions. Lab scores swing from run to run, so average three tests before drawing conclusions. And some warnings, such as render-blocking CSS and CDN cache lifetimes, come from Webflow's hosting. You can't change them, so don't spend time on them.

Render-blocking CSS, served by Webflow's CDN.
The cache lifetime warning: a fixed 23 h 30 m on Webflow's CDN.
‍

Step 5: Fix low-contrast text

PageSpeed's Accessibility score was 97, and the missing points came from one warning: "Background and foreground colors do not have a sufficient contrast ratio." Low-contrast text is hard to read for many people. The failing elements were all secondary text in our notes widget: the "Priority" heading, the grey lines under each note, and the date and time in the welcome note.

PageSpeed's contrast warning, with the failing elements listed.

The cause was a common shortcut. We had made this text look softer by lowering its opacity, which just makes dark text paler. At 60% opacity our text had a contrast ratio of about 4.3:1 on white, and at 40% only 2.4:1. The minimum for normal text (WCAG AA) is 4.5:1.

The fix was to stop using opacity for muted text and give it a real color instead. We replaced every dimmed value with one solid color, #5a5e72, which scores 6.4:1 on white and at least 5.3:1 on the tinted hover and active backgrounds. It still reads as secondary text, but it passes, and Accessibility reached 100. Before you run PageSpeed, check your own muted text: Chrome's DevTools shows the contrast ratio when you inspect a color.

Two mistakes we nearly missed

Google Analytics was loading twice. PageSpeed flagged a 186 KiB script on our own domain that we hadn't added. Chrome's Network tab showed it sending page_view events, which Google Analytics sends. It was a second copy of the Google tag. We had entered the same G- ID in Webflow's Google tag settings and pasted the snippet into the Head. Two copies slow the page and can count every visit twice. Removing one cut the unused JavaScript flagged in half.

PageSpeed listing the Google tag twice: once from Google's servers and once from our own domain.

The same G- ID was also entered in Webflow's Google tag settings.
After removing one copy, the unused JavaScript flagged fell from 246 KiB to 116 KiB.

The page wouldn't scroll on an iPhone. On first load, we couldn't scroll the hero on mobile. A full-screen About popup was hidden with visibility: hidden, but it was still sitting on top of the page. Setting it to display: none while closed fixed it. We also set html, body to height: auto and overflow-y: auto, which guards against rules that block scrolling on iOS. Our weather widget also asked for location permission on page load, so we switched that off. Test on a real phone, not only in a desktop browser's mobile view.

A console check for elements that could block scrolling: the About popup (ab) is on the list.

Where we landed: 95, and why not 100

After these fixes our mobile PageSpeed score settled at 95, with Accessibility, Best Practices and SEO all at 100.

Our final mobile run: performance 95, LCP 2.6 s, total blocking time 140 ms.

The one metric still short of green is Largest Contentful Paint at 2.6 s, just over Google's "good" threshold of 2.5 s. Much of what holds it back comes with the design and the platform: Webflow's own render-blocking CSS and JavaScript that we can't change, the Google tag we need for analytics, and our live weather and world clock widgets. PageSpeed also tests on an emulated mid-range phone on slow 4G, which is harsher than most real visits.

Sometimes the right call is to accept a lower score. We could chase the last 5 points by dropping the analytics tag or removing the widgets, but those are elements we choose not to compromise on, so we accept the lower score as the price of keeping them on our website. A 95 is in Google's green range, and a site that is fast, accessible and looks the way you want is worth more than a perfect 100.

The checklist we'd follow next time

  1. Set up GA4 and confirm one page view in Realtime.
  2. Install consent before you promote the site, and put the Google tag under its control.
  3. Add the site to Search Console and submit the sitemap.
  4. Pick one primary domain and redirect the other.
  5. Write a unique title and description for every page.
  6. Run PageSpeed on mobile three times, and fix the largest problem first.
  7. Make the hero a real image that loads eagerly with fetchpriority="high", and serve every image at the size it's shown.
  8. Use a real color for muted text, not opacity, and check its contrast ratio.
  9. Test on a real phone.

If you'd like help with analytics, SEO or speed on your Webflow site, let's get in touch.