The TermsFeed Privacy Consent (CMP) script makes 7 requests before it applies consent or shows the cookie banner. Every timing rule in the developer guides comes from that sequence. Code that depends on an answer waits for a callback or reads the stored record. Code that has to run before any vendor sits in your page on its own.

The diagram shows what starts each request and the point where Privacy Consent takes over.

Load sequence: your page loads plugin.js, which adds plugin-2.js, which starts 3 code files and 2 settings.json requests, and Privacy Consent starts once all of them have arrived

All 7 requests go to cdn.termsfeedtag.com, and you see them in the Network tab with the filter termsfeedtag. The <token> in each path is the 32-character identifier of your consent banner, and <hostname> is the page hostname.

Privacy Consent starts once the 3 code files and the second settings response have arrived. It reads the stored answer, decides the consent model of the visit, and shows the consent banner where the visit needs it. Next it creates the embed placeholders, sends the consent signal defaults, inserts the on-load vendor tags, and then inserts the accept and decline vendor tags.

No step waits for the load event of the page, so a snippet your own code adds after the page has parsed runs the same sequence. Each answer adds a GET request to /plugins-api/pc/v1/<token>/<hostname>/events.push/<payload>, which records the answer in the consent log and returns HTTP 201. Every page view sends 1 such request as Privacy Consent starts, a first visit sends 1 more, and a consent banner that asks sends another. Vendor tags then make their own requests to the hosts of each vendor.

The settings document takes 2 fetches

Privacy Consent fetches settings.json twice, and only the second response holds your configuration. The first response is a small JSON object with a url field. Open the last settings.json request in the Network tab whenever a guide asks you to read the settings.

The second address carries your hostname and a language list taken from the page and the browser, such as en,ro. Its response reports the location and signal the TermsFeed server found for the visitor in user_country, user_state, and user_global_privacy_control.

A serviceable value other than true stops Privacy Consent with [ww][05cfcfb6] in the Console, so no consent banner, vendor tag, or consent log event follows. Check the status of the consent banner in the TermsFeed app, then match the warning in the console error reference.

Consent state is not available synchronously at page load, because Privacy Consent applies nothing until its requests have finished. A script in your <head> that asks whether a visitor accepted analytics runs long before Privacy Consent has decided anything. Each part of the public surface becomes available at its own moment, and your code picks the one that fits.

  • The stored record. The localStorage key termsfeed_privacy_consent_state is readable at once, before any request. It holds the last saved answer, which Privacy Consent ignores once it has expired.
  • The page API. window.termsfeed_privacy_consent exists once plugin-r2.js has run, and it is undefined before that. Install callbacks with the integration snippet, which handles both cases.
  • The initialized callback. It runs once per page view, after Privacy Consent has decided the visit and started the vendors.
  • The answer callbacks. acceptedAll, acceptedSome, and rejectedAll run after an answer, and they do not run on page load for a returning visitor.

Consent signals follow the same order. A Google tag added from its template gets its Google Consent Mode v2 defaults before it runs. A Google tag pasted into your page runs before Privacy Consent has sent anything. Compare the 2 setups in Google Consent Mode v2. Choose the callback or the record for your code with callbacks and consent semantics.

Privacy Consent needs a page with a hostname, and it stops with a console code on a page that has none. It loads the consent banner on the domains you add, the main website domain and the additional domains, and on development hostnames such as localhost. The table pairs each situation with what you see.

Situation Result
A page opened from a file:/// address [ee][36de8955], then [ee][e0498738], and nothing runs
A frame with no hostname of its own, such as about:blank or a srcdoc frame [ee][36de8955], then [ee][e216c2da], and nothing runs
An address with a protocol other than http or https and an empty hostname [ee][36de8955], then [ee][dc058367], and nothing runs
Any other page with an empty hostname [ee][36de8955], then [ee][892b3853], and nothing runs
A page that sends Origin: null, or an Origin that does not carry its hostname The second settings request returns HTTP 400 and [ee][34c59001] prints
A page with no script at /plugins/pc/v1/<token>/plugin.js or plugin-2.js [ee][4e776763], and nothing runs
A consent banner the server reports as not serviceable [ww][05cfcfb6], and nothing runs
A browser that blocks localStorage The script runs and prints [ee][d7b5f985] or [ee][ef136bd1], and no answer survives the page
A browser without fetch or <template> The script throws an error and stops

A page inside an <iframe> runs Privacy Consent normally when its document has a hostname. Find the alternative for each environment outside the reach of the script in the unsupported environments.

Load the script from the exact address the TermsFeed app gives you, because that address carries your token and receives every update. The paths do not hold a release number. TermsFeed updates the files behind the address.

A copy on your own host under the same path sends every later request to your host, which then has to forward each one with its Origin header. A copy under any other path, or bundled into your code, still loads plugin-2.js from cdn.termsfeedtag.com, and that copy stops receiving updates. Place the snippet with the order rules in the install guide.

Failures that do not print an error code

Several integration faults do not print an [ee] or [ww] line, so check for them on purpose while you build. Each one leaves the page looking normal until a vendor fails to appear.

  • A vendor tag your Content Security Policy blocks. The browser reports the refusal in the Console with its own message, and no Privacy Consent code appears.
  • An HTML vendor tag with no <div id="YOUR_VENDOR_ID"> on the page. Privacy Consent inserts an HTML vendor tag only inside that div, so nothing appears.
  • A replaceable tag whose vendor has "Has replaceable tags?" off. The tag does not get a placeholder, and the embed never loads.
  • A replaceable tag your code renders after the script started. Privacy Consent looks for embeds once, so this one waits for the next page load.
  • A window.termsfeed_privacy_consent_callbacks value set after the script loaded. Privacy Consent reads that global once, so your callbacks never run. The integration snippet avoids this fault.
  • An on-load <script src> with no async on a server that never answers. It holds the accept and decline vendor tags of every vendor until the browser gives up on it.

Each fault shows up as a symptom on the page, such as a missing placeholder or a vendor that never runs. Find the check and the fix for each symptom in troubleshooting by symptom.

Changes you save in the TermsFeed app reach live visitors with no change to your website, within 1 hour at the latest. A save publishes the settings document at once. A visitor with no cached copy gets the change on the next page load. A browser that loaded the settings in the last hour keeps its copy until that hour ends.

Vendors, vendor tags, colors, policy links, and the on and off state of the consent banner all travel in the settings document. Changes to your own markup, such as a replaceable tag or an element that opens the Preferences Center, reach visitors when you deploy your site. Check what a saved change does to answers visitors already gave in versions and what changes mean.

How to verify the load sequence on your site

Confirm the requests and the console codes on your own page in a private window with Chrome DevTools open.

  1. Select the Network tab, type termsfeedtag in the filter box, and reload the page.
  2. Confirm that plugin.js, plugin-2.js, plugin-r2.js, preferences-r2.js, vendors-r2.js, and 2 settings.json requests appear, each with status 200.
  3. Open the second settings.json response and confirm that serviceable is true.
  4. Select the Console tab and confirm that no line contains [ee] or [ww].
  5. Answer the consent banner, or click Save Preferences in the Preferences Center on a visit that does not show a consent banner.
  6. Return to the Network tab and confirm that a new events.push request appears with status 201.