|
/ Documentation /Consent & Compliance/ What SureCookie Blocks Before Consent

What SureCookie Blocks Before Consent

SureCookie holds third-party resources until a visitor accepts the cookie category they belong to. This page lists exactly which HTML elements it holds, which it does not, and how to cover the gaps, so you can describe your site accurately in your own records.

Everything here applies to SureCookie 1.9.0 and SureCookie Pro 1.8.0. Where a capability arrived in an earlier version, the version is named.

How SureCookie Decides What to Hold

Blocking runs while the banner is on and Block Scripts Until Consent is on under Tracking Manager > Scripts and Embeds. Both are on by default.

A resource is held when its address matches a service in the SureCookie catalog, or a rule on your Scripts and Embeds list, for a category the visitor has not accepted. Matching is by host. Since SureCookie 1.5.0, a blocked host is held on every element type in the table below, not only on the type a scan happened to see.

SureCookie holds resources in two places:

  • In the page HTML, as your server sends it.
  • In the browser, for elements that scripts, tag managers and page builders add after the page loads.

Elements Held Before Consent

ElementIn the page HTMLAdded later in the browser
<script src="..."> (external script)HeldHeld
Inline <script> codeHeld when the code matches a known serviceNot held
<iframe>, including lazy-load attributes (data-src, data-lazy-src, data-orig-src)Held, with a placeholder and a button to load itHeld
<embed> and <object> from another siteHeldNot held
<link> with rel set to stylesheet, preload, modulepreload, prefetch, prerender, preconnect or dns-prefetch (since 1.5.0)HeldHeld
YouTube and Vimeo video facades (lite-youtube, lite-vimeo, since 1.8.0)HeldNot applicable
Markup inserted with innerHTML and similar calls (since 1.9.0)Not applicableIframes and stylesheets held

Two consequences are worth knowing:

  • Fonts from a blocked host are held along with the stylesheet that declares them, or the preload link that fetches them. Google Fonts and Bunny Fonts are in the catalog under Functional.
  • Resource hints are held too. A preconnect to a blocked host is held, because the connection alone sends the visitor’s IP address to that host.

What SureCookie Does Not Hold

SureCookie does not directly block the following resource types or requests. A browser, another plugin or a provider can still prevent them from loading.

  • Images. No <img> is ever held, including srcset and tracking pixels. A host whose only resource is an image loads whatever category it is in. Since SureCookie 1.9.0, a row on Scripts and Embeds whose address looks like an image is marked May load as an image.
  • Plain HTML5 media. A <video>, <audio> or <source> that loads a file from another site. YouTube and Vimeo embedded as iframes or facades are held, and so are Presto Player and Elementor video widgets.
  • CSS that loads its own files. @import, @font-face and url() inside an inline <style> block, or inside a stylesheet SureCookie does not hold, and CSS background images.
  • Requests a script makes itself. fetch, XMLHttpRequest, sendBeacon, new Image() and WebSocket calls from code that is already running.
  • Hosts SureCookie does not know. A resource whose host is neither in the catalog nor on your Scripts and Embeds list.
  • Copies on your own domain. A third-party script that an optimization plugin has copied to your own domain no longer matches the third-party host.
  • Edge cases. <iframe srcdoc>, markup inside a shadow root, and content a script writes with document.write after the page loads.

Note: One integration covers an image case: with PixelYourSite, SureCookie stops it printing its own <noscript> pixel image while blocking is on.

Google Consent Mode

With Google Consent Mode on, Google’s own tags (Google Analytics, Google Ads and Google Tag Manager) load before consent and wait on consent signals instead of being held. Tags that Google Tag Manager adds from other services are still held when their host is known, because the browser layer checks every script a tag manager creates.

Which signal each category drives:

SureCookie categoryConsent Mode signals
Marketingad_storage, ad_user_data, ad_personalization, personalization_storage
Analyticsanalytics_storage
Functionalfunctionality_storage
Essentialsecurity_storage (always granted)

SureCookie Pro

SureCookie Pro adds no element types. Its Compliance Guard holds newly found hosts with the same mechanism, so a held host is covered on every element type listed above.

Covering the Gaps

  1. Add unknown hosts. On Tracking Manager > Scripts and Embeds, add a rule for the host and pick its category. It is then held like a catalog service.
  2. Replace what cannot be held. Load a tracking pixel through its script version, embed media through a held iframe, and self-host fonts rather than importing them from CSS.
  3. Gate tags in Google Tag Manager. For a tag that sends data with its own code, open the tag’s Advanced Settings > Consent Settings and choose Require additional consent for tag to fire, with ad_storage or analytics_storage.
  4. Check the result. Open your site in a private window, open your browser’s network panel, and load a page without answering the banner. Anything listed there from a third-party host loaded before consent.

Important: The list above describes what SureCookie holds, not whether a site is compliant. Check your own site with step 4 before you rely on it.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top