Know when a Privacy Consent change reaches visitors and what happens to their answers
TermsFeed Privacy Consent changes through settings you save in the TermsFeed app and through script updates TermsFeed ships, and neither needs a deployment on your side. A saved setting reaches every visitor within about 1 hour. Adding, deleting, or changing a vendor asks earlier visitors again, and other settings leave stored answers as they are. Page code written for v1 keeps working across script updates.
When a settings change reaches visitors
A change you save in the TermsFeed app reaches a visitor with no cached copy on the next page load. A visitor who loaded the settings in the last hour gets it within 1 hour.
Vendors, vendor tags, colors, the consent banner type, policy links, domains, and the default language all travel in the settings. Your own markup reaches visitors only when you deploy your site, including a replaceable tag, a <div> for an HTML vendor tag, and an element that opens the Privacy Preferences Center. Work through each cache between a save and a visitor with Changes Not Showing Live.
What a settings change does to stored consent
Adding or deleting a vendor, or editing a value visitors receive, asks every visitor whose answer is older than the change. The consent banner shows again on visits under the opt-in model, and visits under the opt-out model show none. The choices a visitor saved stay in effect until the next answer, and the consent banner opens with them.
| Change | Effect on a visitor who answered earlier |
|---|---|
| Add a vendor | Asked again. Under the opt-in model, the new vendor stays off until the visitor answers, unless it sits in the Essential vendor category. Under the opt-out model, it follows the saved state of its vendor category. |
| Edit a vendor name, Privacy Policy link, vendor category, purposes, vendor tags, "Has replaceable tags?", or "This vendor processes sensitive data" | Asked again |
| Save a vendor with no value changed | Not asked again |
| Delete a vendor | Asked again. The deleted vendor runs nothing once the new settings arrive. |
| Deactivate a vendor | Not asked again. The vendor runs nothing while it is inactive. |
| Activate a vendor | The stored answer keeps its value for the vendor. A visitor whose answer does not list the vendor keeps it off, and a visitor who accepted its vendor category is asked again. |
| Apply "Update available" on a template vendor | Not asked again |
| Change colors, the consent banner type, policy links, the default language, the floating buttons, or the consent logic | Not asked again |
A stored answer expires on its own, whatever you change. Check its lifetime in Consent Expiry. Plan a deliberate new question with Force Re-Consent, and plan a vendor added after launch with Vendors Added After Launch.
What the v1 promise means for your page code
The v1 in window.termsfeed_privacy_consent.v1 promises that page code written for it keeps working. It covers the method names, their arguments, what they return, v1.visitor, and the arguments each callback receives. The first update that breaks such code adds v2 beside v1, and v1 keeps its behavior.
Call v1.callbacks(), v1.openPrivacyPreferences(), and v1.visitor in your page code, and leave those calls in place after you paste them. Copy each form from the JavaScript API Reference.
The v1 in the script address is a separate number. The /pc/v1/ paths change only when websites must paste a new snippet, and a script update alone never asks for that. The promise does not cover the markup of the consent banner, so check your selectors against DOM and CSS Selectors.
The Privacy Consent script reports its version in the consent log
Only the consent log tells you which update of the script runs on your page. The script does not print a version in the Console. The "Plugin" column of the consent log and the plugin_version column of its CSV export show the version of the code that recorded each event, such as 1.92. The v1 in the page API and in the script address does not name an update.
TermsFeed updates the files behind the same address, and a browser keeps its copy of them for up to 1 hour. During that hour, a browser with an earlier copy sometimes fails to show the consent banner or the Privacy Preferences Center. Reload with "Disable cache" ticked in the Network tab to get the new copy. Read why the address stays the same in SDK Load Sequence.
What to re-check as the script updates
Script updates reach your page without notice, so a check on a fixed schedule finds a problem before a visitor reports it. Run these checks in a private window with Chrome DevTools open, and in a new private window for each answer, closing every other private window first.
- Your CSS. Open a page with the consent banner and the Privacy Preferences Center, and confirm that every rule still matches a selector in DOM and CSS Selectors.
- Console codes. Open the Console tab, and look up every
[ee]or[ww]line in the Console Error Reference. - Callbacks. Click I Agree, then I Decline in a new private window, and confirm that your callbacks receive the arguments in the JavaScript API Reference.
- Replaceable tags. Open a page with an embed, and confirm that the embed placeholder appears and the embed loads after consent.
- Content Security Policy. Filter the Network tab for
termsfeedtag, and confirm that no request shows(blocked:csp).
Scripts marked type="text/plain" never run in Privacy Consent
Privacy Consent does not look for page scripts marked type="text/plain", and such a script never runs. Code that needs consent goes into a vendor tag or a termsfeed-privacy-consent-tag-script element, which tie it to a vendor the visitor sees. Move any such script with How Blocking Works.
Keep your own change log for the consent banner
Write down each material change to your consent banner on the day you make it, because Privacy Consent does not record a version or a reason. A regulator who asks why consent given in March covers a vendor you added in June expects your reasons. Keep these facts for each change in a dated list.
- Date. Write the day you made the change.
- Change. Name what changed, such as the vendor you added or the vendor tag you edited.
- New question. Record whether visitors were asked again.
- Updated pages. List the pages you updated to match, such as your Cookies Policy and your Privacy Policy.
Keep this list next to your consent log exports. Find what else to keep for an audit in Proof of Consent.
How to confirm that a settings change reached your page
Read the settings your browser receives after a save. Open your site in a private window with Chrome DevTools open, select the Network tab, and tick Disable cache.
Filter for settings.json and reload the page, and 2 requests appear. Open the second and find the value you changed in its response, such as the name of a new vendor in the vendors list.