Get a blocked video, map, or widget to load after the visitor accepts

An embed that never loads almost always carries a replaceable tag that TermsFeed Privacy Consent does not match to a vendor. A replaceable tag is the custom element you write in place of an <iframe>, <img>, <script>, <style>, or <link>, so the real element waits for consent. The embed placeholder is the box Privacy Consent shows in place of an iframe or an image. It holds the heading "We need your consent to load vendor media content" and the consent buttons.

The Elements tab of Chrome DevTools tells the causes apart. Open the page in a new private window, so no stored answer changes the result. Right-click the empty area, choose Inspect, and read the elements right after your replaceable tag.

What follows the replaceable tag What it means Where to look
No new <div> Privacy Consent did not match the tag to a vendor with replaceable tags Causes 1, 2, and 3
A <div> that holds .termsfeed-pc1-ec-wrapper, and then an <iframe> or <img> with nothing in it after you accept The match worked, and the real element is missing an attribute Cause 4
A <div> that holds the placeholder with the heading "Unfortunately, this media content cannot be loaded because you rejected it." The saved answer declines this vendor, which is not a fault Close every private window and test again in a new one

Cause 1: "Has replaceable tags?" is off for the vendor

Privacy Consent converts replaceable tags only for a vendor with "Has replaceable tags?" turned on. With the switch off, no placeholder appears and accepting the vendor inserts nothing. The console prints nothing for this case, so the vendor form is the only place to find it.

Open the vendor from the Vendors page, select the "Replaceable tags" tab, and read the switch. Some consent banners show the switch locked with a note beside it, and those consent banners do not convert replaceable tags.

Turn the switch on and confirm the result on your page.

  1. Turn on "Has replaceable tags?" on the "Replaceable tags" tab.
  2. Click Save vendor.
  3. Reload your page in a new private window and confirm that the Elements tab shows the new <div> after the replaceable tag.

Saving this change asks every visitor with an earlier answer again on the next page load, wherever the consent banner shows. Time the save with Force Every Visitor to Consent Again.

Cause 2: The vendor ID does not match an active vendor

The data-termsfeed-pc1-vendor-id attribute must hold the ID of an active vendor on the consent banner that page loads. Privacy Consent ignores a tag whose ID does not match a vendor it received. An ID copied from another consent banner, a typing error, and an inactive vendor all leave the embed area empty, because inactive vendors never reach the browser.

The Vendors page shows both facts. Click the "Important tags" button on the vendor row and read the ID inside the markup it offers. Compare it with the attribute in the Elements tab, then check that the vendor sits in the "Active" group.

Correct the attribute from the app, then confirm the vendor status.

  1. Copy the replaceable tag from "Important tags", which already holds the right ID.
  2. Paste the ID into the attribute of every replaceable tag for that vendor.
  3. Open an inactive vendor with "Edit" and click Activate vendor.

Cause 3: The custom element name is wrong

Privacy Consent recognizes 5 custom element names and ignores every other name. A typing error or a closing tag that differs from the opening tag leaves the element untouched. A content editor that strips elements it does not know deletes the replaceable tag before the page reaches the browser.

Only the iframe and image forms show a placeholder, and each real element appears inside the new <div> once the vendor is allowed to run.

Custom element Becomes Shows a placeholder
termsfeed-privacy-consent-tag-iframe <iframe> Yes
termsfeed-privacy-consent-tag-img <img> Yes
termsfeed-privacy-consent-tag-script <script> No
termsfeed-privacy-consent-tag-style <style> No
termsfeed-privacy-consent-tag-link <link> No

The page source shows what reached the browser. Press Ctrl+U (Cmd+Option+U on a Mac) and search for <termsfeed-privacy-consent-tag, then compare each match with the table.

Rename both the opening and the closing tag to one of the 5 names, and paste the markup into an HTML block or custom HTML widget that keeps unknown elements. A correct replaceable tag for a YouTube video looks like this example, with your own vendor ID and video address.

<termsfeed-privacy-consent-tag-iframe
  data-termsfeed-pc1-vendor-id="termsfeed-1a2b3c4d-5e6f"
  src="https://www.youtube.com/embed/VIDEO_ID"
  width="560"
  height="315"
  title="Product demo video"
  allowfullscreen></termsfeed-privacy-consent-tag-iframe>

Cause 4: An attribute of the original element is missing

Privacy Consent copies every attribute of the replaceable tag onto the real element and adds none that you left out. A src renamed to data-src for another consent tool gives a blank frame. A missing allow or allowfullscreen stops features of the player, and a missing width and height gives a frame at the default browser size.

The real element shows what it received. Click Accept this vendor in the placeholder, select the new <iframe> in the Elements tab, and compare its attributes with the embed code the provider gives. Then open the Network tab and filter for the embed host, such as youtube, where a click with no new request points to a missing src.

Start again from the provider code, so every attribute survives.

  1. Copy the original embed code from the provider.
  2. Change only the element name in the opening and the closing tag.
  3. Add the data-termsfeed-pc1-vendor-id attribute, and leave every other attribute as the provider wrote it.

Why a replaceable tag added after page load never loads

Privacy Consent looks for replaceable tags once, when it starts, and does not watch the page for new ones. A replaceable tag that your code adds later does not get a placeholder and never loads, even after the visitor accepts. An embed in a section that a single-page app renders on a route change hits this limit until the next full page load. Plan for late embeds with Single-Page Applications.

Why the placeholder or the embed appears in the wrong place

Privacy Consent inserts the placeholder, and later the real element, into a new <div> right after your replaceable tag. The position of the replaceable tag decides where both appear, so keep it where the embed belongs and outside any element your CSS hides or moves.

A style rule that targets the embed as a direct child stops matching, because the real <iframe> sits inside the new <div>. Change .video-wrapper > iframe to .video-wrapper iframe. The placeholder takes its height from the element around it, because Privacy Consent does not copy width or height onto it. Reserve that space with Embed Placeholders.

The check takes 4 steps and about 2 minutes, from a location where the consent banner shows. On a visit with no consent banner, the embed loads at once with no placeholder, because vendors run until the visitor opts out.

  1. Open a new private window and Chrome DevTools, select the Network tab, and type the embed host into the filter box, such as youtube.
  2. Load the page. No request to the embed host appears, and the placeholder names the vendor.
  3. Click Accept this vendor. A request to the embed host appears, and the embed loads in place with no page reload.
  4. Reload the page. The embed loads at once, and no placeholder appears.

Accept this vendor counts as an answer for every vendor, so on a first answer the other non-essential vendors stay off and count as declined. Test the other answer by closing every private window and opening a new one. Click I Decline in the placeholder: its heading changes to the "you rejected it" text, and no request to the embed host appears. Set up the next embed with Replaceable Tags.