Why direct traffic increases after a cookie banner (and the fix)
Published November 10, 2026
Direct traffic jumped the day your cookie banner went live? The landing page that carried the source was never recorded. How to confirm it, and how to get the real source back.
Direct traffic often rises after a cookie banner goes live because the page that carried the traffic source is never recorded. The referrer and the UTM tags only exist on the landing page. If your analytics tag waits for consent and the visitor accepts on the second page, the first hit your tool receives comes from your own site, with no campaign tags. Google Analytics then has no source information, and a session without source information is reported as (direct) / (none). Your campaigns did not stop working: their visits were relabeled. Here is how to confirm it and how to fix it.
Why does direct traffic jump when you add a banner?
Follow one visit, step by step.
- A visitor clicks your newsletter link, which ends with
?utm_source=newsletter&utm_medium=email. They land on a product page. - Your banner appears. The visitor ignores it and clicks to a second page.
- On that second page, they click "Accept". Your analytics tag now fires for the first time.
- The URL of the second page has no UTM tags. Its referrer is your own site.
Google Analytics does not treat your own domain as a new traffic source. Its referral settings documentation explains that, by default, self-referring traffic is not measured as a new referrer. And according to Google's guide to (direct) / (none) traffic, sessions with no clear referral source end up as direct. The newsletter never gets the credit.
The same thing happens to visits from Google search, social networks and ads. The more visitors accept on a later page rather than on the landing page, the bigger the jump in direct traffic.
Which setups make it worse?
- Basic Consent Mode. Google's consent mode overview says basic mode "transmits no data to Google prior to user interaction with the consent banner". If the interaction happens on page two, page one does not exist for Google Analytics.
- Tags that only fire on the next page load. Some banners save the choice and only load the tags when the next page loads, instead of updating consent on the current page.
- Banners that hide behind a click. A small banner that visitors can ignore while browsing produces more "accept on page two" visits than one shown on the landing page.
- A banner that loads late. If your tag runs before the banner sends its update, the tag can fire in a denied state. Google provides
wait_for_updatefor this case. - Redirects. Google notes that redirects, especially from https to http, can strip UTM parameters. A banner is not the only cause of direct traffic.
Visitors who refuse are a separate case. In basic mode they are not counted at all, so they make your total traffic fall rather than your direct share rise. That problem is covered in why GA4 traffic drops after a cookie banner.
How do you diagnose it?
You can confirm the mechanism in half an hour, without a developer.
- Look at the date. In GA4, open the traffic acquisition report and compare the share of Direct the week before and the week after the banner went live. A step change on that exact day is a strong sign.
- Look at the landing pages of direct sessions. Real direct visits land mostly on your home page or on pages people bookmark. If direct sessions suddenly "land" on product pages, blog posts or the second step of a form, those are visits that started one page earlier.
- Compare with sources that do not depend on your banner. Search Console clicks, the sends and clicks in your email tool, or clicks in your ad platform. If those are stable while organic, email or paid traffic falls in GA4 and direct rises, the traffic was relabeled.
- Test it yourself. Open a private window, visit one of your pages with
?utm_source=test&utm_medium=test, ignore the banner, click to a second page, then accept. In GA4 DebugView or the Realtime report, check which source the session gets. - Repeat the test accepting on the first page. If the source is correct this time, you have confirmed that the issue is timing, not your UTM tags.
On Shopify, add one more check: if you use a third-party banner, make sure it shares consent with Shopify through the Customer Privacy API, as explained in our Shopify cookie banner guide.
How do you fix it in Google Analytics?
You cannot make GA4 measure visitors who have not consented in a setup that requires their consent. But you can stop losing the source of visitors who do accept.
- Set consent defaults before any tag. Google's consent mode implementation guide says the default command must run on every page before any command that sends measurement data. If it runs out of order, the defaults do not work.
- Send the consent update on the same page, at the moment of the click. The tags waiting on that page can then fire while the URL still holds the UTM tags and the original referrer.
- Use
wait_for_updateif your banner loads asynchronously, so tags wait a few hundred milliseconds for the banner's answer. - Consider advanced Consent Mode. In advanced mode, Google tags load when the page opens and send consent state and measurements without cookies while consent is denied. Google uses these pings to model missing data. Whether advanced mode is acceptable for your site is a legal decision, not just a technical one.
- Consider
url_passthrough. When ad storage is denied, it can pass ad click information such asgclidorwbraidthrough the URLs of internal links on the same domain, so the information survives until consent is given. - Show the banner on the landing page, clearly. The more visitors answer on the first page, the less source information you lose.
After each change, rerun the private-window test. Then compare the share of direct traffic over two full weeks.
Can you measure where visits come from without consent?
The steps above reduce the damage. They do not remove it, because any tool that waits for consent will miss the landing page of the visitors who answer late or never answer.
A complementary approach is to measure where visits come from with a tool that does not need consent in the first place. In France, the CNIL allows audience measurement trackers to be exempt from consent when their purpose is strictly limited to measuring the site's audience, they produce anonymous statistics only, and the data is not cross-referenced or used to follow people across sites. Knowing which site sent a visitor can fit that purpose, but only up to a point: the CNIL's July 2025 self-assessment grid expects an exempt tool to keep the referrer to the domain and not to collect UTM tags or campaign ids by default. Campaign-level detail therefore stays subject to consent rules. Read the CNIL exemption conditions before relying on it: the exemption is French, other countries differ, and the site owner stays responsible.
This is where Klickbee Tracking fits. It is cookieless audience measurement designed with the CNIL exemption in mind, and it records the referrer, the UTM tags and the first touch on the landing page itself. Its acquisition data (UTMs, ad click ids, first touch) goes beyond the exemption, so consent rules apply to it: how you collect it depends on your country and setup, and that call is yours. The free built-in banner only gates the ad pixels you add in Klickbee, such as Meta or Google Ads. You can keep GA4 for the visitors who consent if you need it.
Direct traffic that grows on the day your banner goes live is not new direct traffic. It is your campaigns, recorded one page too late.
What will this not fix?
- Ad platforms still need consent. A cookieless analytics tool can show you that a visit came from a Meta ad. It does not give Meta the right to receive that visitor's conversion. See Consent Mode v2 and missing Google Ads conversions for that side.
- Real direct traffic exists. Typed URLs, bookmarks, links in PDFs and some apps really are direct. Expect a base level, not zero.
- Comparing tools takes time. Run your new measurement alongside the old one for a few weeks before drawing conclusions.
To see your real sources, create a free Klickbee account, or read how privacy and consent work in the tracker first.
This article is information, not legal advice.