<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Flora Wilson</title>
    <description>The latest articles on DEV Community by Flora Wilson (@flora_wilson_91d112d043ec).</description>
    <link>https://dev.to/flora_wilson_91d112d043ec</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4186562%2F26f4ac35-e4dd-42c7-95a4-37d5cc60a5c2.png</url>
      <title>DEV Community: Flora Wilson</title>
      <link>https://dev.to/flora_wilson_91d112d043ec</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/flora_wilson_91d112d043ec"/>
    <language>en</language>
    <item>
      <title>Your Cookie Banner Shows Up. Are the Cookies Already Loaded? (5-Minute DevTools Test)</title>
      <dc:creator>Flora Wilson</dc:creator>
      <pubDate>Thu, 15 Oct 2026 10:47:39 +0000</pubDate>
      <link>https://dev.to/flora_wilson_91d112d043ec/your-cookie-banner-shows-up-are-the-cookies-already-loaded-5-minute-devtools-test-5cpm</link>
      <guid>https://dev.to/flora_wilson_91d112d043ec/your-cookie-banner-shows-up-are-the-cookies-already-loaded-5-minute-devtools-test-5cpm</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; A cookie banner can appear on screen while tracking cookies load behind it. Test yours in DevTools, set Google's consent defaults to denied, and let a consent platform release tags only after a visitor chooses.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem you get asked to fix
&lt;/h2&gt;

&lt;p&gt;Marketing says the numbers look off. Legal asks if the site is compliant. Both questions often lead to the same place: the banner shows, but the tags don't wait for it.&lt;/p&gt;

&lt;p&gt;That gap is what the UK regulator, the ICO, tested for when it reviewed the top 1,000 UK websites in 2025. Its checks included advertising cookies stored before a visitor could choose, and advertising cookies placed when a visitor hadn't agreed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test yours in five minutes
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your site in a private window.&lt;/li&gt;
&lt;li&gt;Before touching the banner, open DevTools, go to &lt;strong&gt;Application &amp;gt; Cookies&lt;/strong&gt; and select your domain.&lt;/li&gt;
&lt;li&gt;Look for tracking cookies such as &lt;code&gt;_ga&lt;/code&gt; (Google Analytics) or &lt;code&gt;_fbp&lt;/code&gt; (Meta Pixel).&lt;/li&gt;
&lt;li&gt;Click Reject, reload the page and check again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If those cookies appear before a choice or after Reject, the banner is only for show.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set Google's defaults first
&lt;/h2&gt;

&lt;p&gt;Google's consent mode docs say the default command must run on each page before any command that sends measurement data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;gtag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;consent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;default&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;ad_storage&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;denied&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;ad_user_data&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;denied&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;ad_personalization&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;denied&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;analytics_storage&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;denied&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a visitor accepts, your consent platform sends a &lt;code&gt;gtag('consent', 'update')&lt;/code&gt; command with the same four keys set to &lt;code&gt;'granted'&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters beyond compliance
&lt;/h2&gt;

&lt;p&gt;Tags that respect choices give marketing data it can rely on, and consent signals let Google model conversions it can't observe. It's one of the reasons &lt;a href="https://seers.ai/blogs/why-cookie-banners-matter/" rel="noopener noreferrer"&gt;cookie banners matter&lt;/a&gt; to the people reading the reports as much as to legal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Seers AI fits
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://seers.ai" rel="noopener noreferrer"&gt;Seers AI&lt;/a&gt; scans your site, sorts cookies and scripts into categories and blocks them until a visitor chooses. It sends the answer through &lt;a href="https://seers.ai/google-consent-mode-v2/" rel="noopener noreferrer"&gt;Google Consent Mode v2&lt;/a&gt; and Microsoft Consent Mode, supports IAB TCF v2.2 and logs each choice. You install it with a plugin for &lt;a href="https://seers.ai/products/wordpress-cookie-consent/" rel="noopener noreferrer"&gt;WordPress&lt;/a&gt;, &lt;a href="https://seers.ai/products/shopify-cookie-consent/" rel="noopener noreferrer"&gt;Shopify&lt;/a&gt;, &lt;a href="https://seers.ai/products/magento-cookie-consent-extension/" rel="noopener noreferrer"&gt;Magento&lt;/a&gt; or Joomla, or a snippet in your site header.&lt;/p&gt;




</description>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
