Trackum

Core Web Vitals: How Tracking and Cookie Banners Affect Them

LCP, INP and CLS depend on more than images and your theme. Tag Manager, pixels and cookie banners play a part too. Here is how to measure cleanly and improve with focus.

Guide · · Updated · 6 min read · Written with AI, AI-assisted review on

Core Web Vitals: How Tracking and Cookie Banners Affect Them
📷 Chris Liverani · Unsplash

What do the Core Web Vitals measure?

Core Web Vitals are three metrics Google uses to judge how a page feels to visitors: Largest Contentful Paint (LCP) measures when the largest visible content has loaded. Interaction to Next Paint (INP) measures how quickly the page responds to clicks, taps and keyboard input. Cumulative Layout Shift (CLS) measures how much content jumps around unexpectedly. Good values are an LCP of up to 2.5 seconds, an INP of up to 200 milliseconds and a CLS of up to 0.1. The value that is reached or beaten by three quarters of page views (the 75th percentile) counts, separately for mobile and desktop.

In March 2024, INP replaced the older metric First Input Delay. The difference matters for anyone with a lot of tracking on the page: First Input Delay only measured the very first interaction, while INP looks at all interactions during the visit. Every click that triggers a tracking event therefore feeds into the rating. If you attach many tags to clicks, you notice it here first.

Core Web Vitals at a glance
MetricWhat it measuresGood up toTypical influence from tracking
Largest Contentful Paint (LCP)Load time of the largest visible content2.5 secondsScripts that start on load; a banner that appears late
Interaction to Next Paint (INP)Response to clicks, taps, keyboard200 millisecondsMany tags on click triggers
Cumulative Layout Shift (CLS)Unexpected shifting of content0.1A banner bar that pushes content down

Google uses the Core Web Vitals as one of many signals in search. Good values alone will not lift a page if the content does not fit. But bad values are a real problem for visitors: a page that jumps while you tap or hangs noticeably after a click loses inquiries and purchases. For marketing leads, that is the more important reason to deal with this, because paid clicks from Google Ads and Meta land on exactly these pages.

Measuring Core Web Vitals: PageSpeed Insights and Search Console

For individual pages, PageSpeed Insights is the fastest way. At the top, the tool shows field data from the Chrome User Experience Report, meaning measurements of real visitors over the last 28 days. Below that comes lab data from Lighthouse, a single test run with a simulated device and a throttled connection. Field data only exists if a page gets enough visits from Chrome users. Small websites often lack it, and then only the lab measurement is left.

The lab measurement cannot measure INP directly, because nobody clicks there. It shows Total Blocking Time instead, meaning how long the browser’s main thread is blocked by scripts. This value is a good indicator of whether tracking scripts worsen the response time. For the whole website, you use the Core Web Vitals report in Google Search Console. It is also based on field data, groups similar pages together and rates them as “Good,” “Needs improvement” or “Poor.”

→ Cookie banner with Consent Mode v2: compliant, with no monthly license

How tracking scripts burden LCP and INP

Every tag in Google Tag Manager loads code: the Meta Pixel, the LinkedIn Insight Tag, the TikTok pixel, heatmap tools, chat widgets. Each of these scripts has to be downloaded, processed and executed. If that happens at the same time as the main image or the headline loads, LCP is delayed. The bigger effect, though, usually shows up in INP: if several tags have to finish their work after a click before the browser can show the response to the click, the page feels sluggish.

A typical pattern: over the years, an online store has collected seven pixels, three of them for ad platforms that are no longer booked. Every click on “Add to cart” triggers events in all the pixels. The lab measurement shows a high Total Blocking Time, and in Search Console the product pages are at “Needs improvement” for INP. After removing the old pixels and combining the events, the blocking time drops clearly, without a single relevant measurement going missing.

Cookie banners are a common cause of bad CLS values. It happens when the banner is inserted as a bar at the top of the normal page flow and pushes all the content down after it was already visible. For the visitor, the page jumps, and for Google, the layout shift value rises. A banner that sits as an overlay above the page, that is, with fixed positioning, does not shift existing content. According to web.dev, a newly inserted element only counts as a layout shift if it moves other visible elements.

The banner can also play a role for LCP. If the banner itself is the largest visible content, for example on mobile, its load time counts as LCP. Banners that load several files and fonts afterward appear late and push the value up. To check this, look in PageSpeed Insights under the diagnostics to see which element was detected as the Largest Contentful Paint.

→ Setting up Google Consent Mode v2 correctly: no warning in Tag Assistant

How to improve Core Web Vitals: concrete steps for tracking

You do not have to give up tracking to get good values. Usually it is enough to clean up and control the order. The following measures bring the most in practice without losing any measurement data.

  • Keep only necessary tags: remove pixels for platforms where you no longer advertise.
  • Load tags only after consent: without consent, only what may legitimately run without consent starts.
  • Load scripts asynchronously so they do not block the page from rendering.
  • Show the cookie banner as an overlay, not as a bar that shifts content.
  • Combine click events instead of building a separate click trigger for every platform.
  • Install the container code only once, not additionally through a plugin.

The point about consent has a double benefit. If marketing tags are only loaded after consent, you meet the requirements of § 25 TDDDG more fully and at the same time relieve the first page load, because no pixels load on the very first visit. This article is not legal advice. Technically, though, the rule is: what does not load cannot slow the page down.

Testing routine: how to find the bottleneck

Start with Search Console and see which page groups perform badly. Open a typical page from that group in PageSpeed Insights and note LCP, CLS and Total Blocking Time. Then open the developer tools in the Chrome browser, switch to the Performance tab and record a page load with a click. There you can see which scripts run for a long time and which domain they come from. You can recognize domains of ad platforms and analytics tools by their names.

For a direct comparison, you can measure the page once with and once without consent in the banner. If the difference is big, the bottleneck is in tracking. If it is small, it lies more with images, fonts or the theme. That way you avoid removing pixels that are not the problem at all.

In Google Tag Manager itself, Preview helps you. For each event in the timeline, from loading the container to every click, it shows which tags were fired. If five or six tags hang on a simple click, that is a candidate for combining. Also check which tags already start with the Initialization or Page View triggers. Anything that is not needed right away can often load later, for example with the Window Loaded trigger.

Lean tracking without losses: how Trackum helps

With the setup for €150 excl. VAT, Trackum builds Google Tag Manager, Google Analytics 4 and Consent Mode v2 so that tags only load after the appropriate consent and only the events you really need are measured. Everything is tested in preview beforehand, with and without consent. The Trackum cookie banner is a single file of 6.6 KB and loads nothing afterward. If you want to know what is loading on your site right now, write to us through the inquiry form.

Frequently asked questions

What are the Core Web Vitals?

Three metrics from Google for user experience: Largest Contentful Paint (load time of the largest content), Interaction to Next Paint (responsiveness to input) and Cumulative Layout Shift (layout movement). Good values are an LCP of up to 2.5 seconds, an INP of up to 200 milliseconds and a CLS of up to 0.1, each measured at the 75th percentile of page views.

What does CLS mean for websites?

CLS stands for Cumulative Layout Shift and measures how much visible content shifts unexpectedly. A cookie banner that claims space at the top of the page after the fact and pushes the content down is a typical cause.

How can I measure Core Web Vitals?

The easiest way is PageSpeed Insights for individual pages and the Core Web Vitals report in Google Search Console for the whole website. Both use field data from real Chrome users from the Chrome User Experience Report, as long as enough data is available.

Does Google Tag Manager hurt Core Web Vitals?

Google Tag Manager loads asynchronously, but its container code grows with every tag. Most tags also load their own code. Many pixels, heavy scripts and tags that fire immediately on page load mainly burden INP and sometimes LCP.

Sources

  1. web.dev: Web Vitals web.dev
  2. web.dev: Cumulative Layout Shift (CLS) web.dev
  3. Google Search Central: Core Web Vitals and Google Search results developers.google.com
  4. Search Console Help: Core Web Vitals report support.google.com
Help