- SureCookie Installation Guide
- Installing SureCookie Pro
- Updating SureCookie
- How to Set Up SureCookie: Onboarding Wizard Guide
- SureCookie Dashboard Overview
- Connecting Your Site to SureCookie (Scanner Setup)
- Using SureCookie on Multiple Sites
- Uninstalling SureCookie & Data Cleanup
- SureCookie Shortcodes Reference
- Preferences Settings (Menu, Branding, Analytics)
- Customizing Banner Content
- Customizing Banner Layout
- Custom CSS for Banner Styling
- How to Configure the Floating Widget
- Customizing the Preference Modal
- Controlling Where the Cookie Banner Appears
- Customizing Banner Colors (Custom Colors, WCAG)
- Customizing the Blocked Content UI
- Banner Text in the Wrong Language (WPML, Polylang, and Locales)
- Re-Consent
- Understanding SureCookie Logs
- How to Set Up Geographic Targeting
- Block Scripts Until Consent (Resource Blocking)
- Setting Up Google Consent Mode v2
- Consent Models Explained (Opt-in vs Opt-out)
- Exporting Consent Logs (PDF Proof + CSV)
- Consent & Data Settings (Duration, Retention, Renew)
- Consent Forwarding Across a Multisite Network
- Resource / Script Blocking (Add Embeds + Fixes)
- CCPA / CPRA Compliance with SureCookie
- Handling Data Requests
- Setting Up Your Business Details
- Generating a Privacy Policy Page
- Recording Consent Without Storing Visitor IP Addresses
- What SureCookie Blocks Before Consent
- Generating a Cookie Policy Page
- Troubleshooting SureCookie
- Fix a Stuck or Failed Cookie Scan
- Why Some Cookies Aren’t Detected
- Banner Not Appearing: Troubleshooting
- Settings or Cookie Categories Not Saving or Loading
- Embeds Blocked After Consent (YouTube, Maps, Vimeo)
- Site Performance / Page Speed
- Scanning Your Site From Your Browser
- Importing and Exporting SureCookie Settings
- Verifying Your Domain With a DNS Record
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
| Element | In the page HTML | Added later in the browser |
|---|---|---|
<script src="..."> (external script) | Held | Held |
Inline <script> code | Held when the code matches a known service | Not held |
<iframe>, including lazy-load attributes (data-src, data-lazy-src, data-orig-src) | Held, with a placeholder and a button to load it | Held |
<embed> and <object> from another site | Held | Not held |
<link> with rel set to stylesheet, preload, modulepreload, prefetch, prerender, preconnect or dns-prefetch (since 1.5.0) | Held | Held |
YouTube and Vimeo video facades (lite-youtube, lite-vimeo, since 1.8.0) | Held | Not applicable |
Markup inserted with innerHTML and similar calls (since 1.9.0) | Not applicable | Iframes and stylesheets held |
Two consequences are worth knowing:
- Fonts from a blocked host are held along with the stylesheet that declares them, or the
preloadlink that fetches them. Google Fonts and Bunny Fonts are in the catalog under Functional. - Resource hints are held too. A
preconnectto 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, includingsrcsetand 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-faceandurl()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 withdocument.writeafter 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 category | Consent Mode signals |
|---|---|
| Marketing | ad_storage, ad_user_data, ad_personalization, personalization_storage |
| Analytics | analytics_storage |
| Functional | functionality_storage |
| Essential | security_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
- 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.
- 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.
- 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_storageoranalytics_storage. - 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.
We don't respond to the article feedback, we use it to improve our support content.