Keep third-party content from loading until the visitor consents

TermsFeed Privacy Consent holds third-party content in 2 ways: vendor tags, which hold code you move into a vendor, and replaceable tags, which hold page elements you rewrite. The browser requests that content only once the visitor accepts its vendor. Anything that uses neither method loads for every visitor, because Privacy Consent does not scan or rewrite your pages.

Compare the 2 blocking methods

Pick the method by where the content has to stay.

Method What you do Suits What visitors see before consent
Vendor tag Move the code snippet from your page into a vendor in the TermsFeed app Scripts, pixels, stylesheets, web fonts, chat and analytics snippets Nothing, except the embed placeholder in the <div> of a vendor with on-accept HTML
Replaceable tag Rename an element in your page to its vendor replaceable tag and add the vendor ID Iframes, images, and elements that must stay in your templates The embed placeholder for an iframe or an image, and nothing for the others

Run this on a visit where the consent banner asks first, such as one from the EU, with the settings saved in the TermsFeed app.

  1. Close every private window, open a new one, open Chrome DevTools, select the Network tab, and type the vendor host in the filter box, such as youtube or clarity.ms.
  2. Load your site. No request to the host appears while the consent banner waits for an answer.
  3. Click I Agree. The requests to the host appear with no page reload.
  4. Close every private window, open a new one with the same filter, load your site, and click I Decline. No request to the host appears.

The Google Analytics 4, Google Ads, and Google Tag Manager templates load the Google tag before an answer on purpose, in Advanced Consent Mode. Any other request before an answer comes from code outside your vendors, which you find with Fix Tracking Before Consent.

Pages in the blocking section

Read these in order the first time you block an embed.

Page What you do there
How TermsFeed Privacy Consent Blocks Third-Party Content Choose a method for a script, an iframe, an image, a stylesheet, or a link.
Replaceable Tags Swap an element for its replaceable tag, and check that it waits.
Style the TermsFeed Privacy Consent Embed Placeholder Fit the embed placeholder to your design, and reserve its space.
Blocking Limits Find what browser blocking leaves out, such as cookies your server sets.