Find out where the Privacy Consent cookie banner does not run and what to use instead
The TermsFeed Privacy Consent cookie banner runs only as a script in a web page whose head you edit and which loads over http:// or https://. Shopify checkout, some iframes, native apps, local file:/// pages, and platforms with no head access fail that test. Check your case in this table, then read its section for the alternative.
| Environment | What happens | The alternative |
|---|---|---|
| Shopify checkout | The theme code does not run, so the snippet is absent | Connect the Shopify Customer Privacy API on the storefront |
| Inside an iframe | The consent banner covers that frame only, and a frame with no hostname stops the script | Install on the top page and hold the frame behind a replaceable tag |
| Native apps and webviews | Native SDKs never read the answer, and a webview keeps its own storage | Use a consent tool built for mobile apps |
Local file:/// pages |
The script stops and prints [ee][36de8955] |
Serve the folder from a local web server |
| Platforms with no head access | The snippet has no place to go | Move to a plan or a platform with site-wide head code |
What these environments have in common
These environments share one trait: the page lacks a head you control, a hostname, or a browser that keeps the answer. The script reads the page hostname to fetch its settings, and it stores the answer in localStorage. Without a hostname it stops before it loads the consent banner. With localStorage blocked it runs, and no answer survives the page.
Shopify checkout
Privacy Consent does not run on Shopify checkout pages, because Shopify does not run theme code there. The snippet in theme.liquid covers the storefront only, so checkout does not show the Privacy Consent banner or run a vendor tag.
Connect Privacy Consent to the Shopify Customer Privacy API on the storefront. The answer then reaches Shopify before the visitor gets to checkout. Set the connection up with Shopify Customer Privacy API.
Pages inside an iframe
Privacy Consent inside an iframe controls only that frame, and it stops in a frame with no hostname of its own. A frame that loads a real page, such as https://widgets.example.com/form, runs the script normally, and the consent banner appears inside the frame. Nothing on the surrounding page waits for it.
An about:blank or srcdoc frame has no hostname, so the script stops and prints [ee][36de8955] and then [ee][e216c2da] in the Console tab. A sandboxed frame without allow-same-origin sends Origin: null, so the settings request fails and the Console tab shows [ee][34c59001].
Install Privacy Consent on the top page, and hold the frame behind a replaceable iframe tag, which shows an embed placeholder until the visitor accepts the vendor. Set it up with Replaceable Tags.
Native apps and webviews
TermsFeed does not offer a Privacy Consent SDK for iOS or Android, so Privacy Consent stays a website script. Analytics and advertising SDKs compiled into a native app, such as Firebase or the Meta SDK, run outside Privacy Consent and never read its answer.
A webview that loads your website over https:// runs the script as a browser does. It keeps the answer in its own storage, apart from the browser on the same device. A visitor who answered in the browser sees the consent banner again inside the app.
Use a consent tool built for mobile apps to control native SDKs, and keep Privacy Consent on the web pages. The website and the app then keep separate consent records.
Local file:/// pages
A page opened from the disk as file:/// has no hostname, so Privacy Consent stops before it loads the consent banner. The Console tab shows [ee][36de8955], followed by [ee][e0498738]. The Network tab, filtered for termsfeedtag, shows plugin.js and plugin-2.js and no settings.json request.
Serve the folder from a local web server instead. This command serves the current folder at http://localhost:8000, where the script runs normally without any entry in the TermsFeed app.
python3 -m http.server 8000
The clicks you make while testing reach the consent log, with localhost in the domain column of the CSV.
Platforms with no access to the page head
A website builder with no site-wide field for head code gives the snippet no place to go. Google Sites and GoDaddy Websites + Marketing are examples.
An HTML embed block does not replace the head field. A builder that places the block inside an iframe limits Privacy Consent to that frame. Move to a plan or a platform with site-wide head code, and find the field for each platform in the install catalog.
How to tell whether a page falls into one of these cases
Open the page, open Chrome DevTools, and reload with the Network filter set to termsfeedtag. Read the result against these cases.
- No request appears. The snippet is not in the page, which fits Shopify checkout and builders with no head access.
plugin.jsandplugin-2.jsload, with nosettings.json, and the Console tab shows[ee][36de8955]. The page has no hostname. The next line names the cause:[ee][e0498738]for afile:page,[ee][e216c2da]for a frame,[ee][dc058367]for another protocol, and[ee][892b3853]for anything else.- All 7 requests appear, and the consent banner shows inside a box of the page. Privacy Consent runs inside an iframe. Run
window.self === window.topin the Console tab of that frame, and it printsfalse. - All 7 requests appear in a webview, and the consent banner returns after an answer in the browser. The webview keeps its own storage, as expected.
Any other code points to a different fault. Look it up in the Console Error Reference.