Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

CKE-006 Published · Updated

Embed placeholder for cookie consent

Cookie consent for embedded outside services such as YouTube videos, maps and social posts: a placeholder covers the spot first, and the content loads only when clicked.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Embed placeholder for cookie consent

Embed placeholder for cookie consent UI design (desktop wireframe)

Wireframe (mobile) | Embed placeholder for cookie consent

Embed placeholder for cookie consent UI design (mobile wireframe)

What changes on mobile

  1. Video and map are stacked: Side by side, the text inside the placeholders would wrap, so they sit in one column.
  2. The placeholder height fits its content: At 16:9 the text and buttons would not fit, so the placeholder grows to fit them.

Before you choose this pattern | Embed placeholder for cookie consent

Good fit

  • The page embeds YouTube videos, maps or social posts
  • You want people to choose for each outside service, separately from site-wide consent
  • You want to send no data to outside services until the content is loaded

Poor fit

  • You do not embed any outside services (Cookie banner bar)
  • The video or map is the main point of the page, and a placeholder would defeat its purpose (leave loading to site-wide consent)

Why this wireframe works | Embed placeholder for cookie consent

Nothing is sent outside until it is clicked

Videos and maps do not load until the placeholder is clicked, so data from people who never watch is not sent to outside services.

It says where the content loads from, right there

Writing “This video loads from YouTube” on the placeholder means people know which service will receive their data just before they watch.

The key information gets through without loading

The map placeholder shows the address and nearest transit stop, and the video has a link to watch it on the external site. People who choose not to load still get what they need.

Common mistakes | Embed placeholder for cookie consent

The embed loads behind the placeholder anyway

If the placeholder only covers the embed visually while its code loads from the start, the data is sent anyway. Insert the embed code only when the placeholder is clicked.

The service is not named

“Show external content” alone does not say what will load. Name the service on the placeholder.

People have to click every time

For repeat visitors, clicking every time is a chore. Offer “Always allow” and save the choice.

Without loading the map, there is no way to tell where the place is

A blank map placeholder leaves people who need the address stuck. Keep the address and nearest transit stop as text.

Hiding the embed without stopping the transfer

Hiding an external video or map until consent does not help if it is loaded in the background. Check in the real network requests that no iframe, SDK, preconnect or external thumbnail loads before consent. Build the placeholder from images and text you host yourself.

FAQ | Embed placeholder for cookie consent

With site-wide cookie consent, is this placeholder still needed?

If site-wide consent also covers loading outside services, you can load embeds right away for people who accepted and show the placeholder only to those who rejected. Sites that show no consent screen can also use it to reduce the data sent to outside services.

Where can “Always allow” be undone?

Let people undo it in the same place as other settings, such as “Cookie settings” in the footer. Combined with the reopen cookie settings link, all changes happen in one place.

Do embedded outside services also require consent?

Whether you need consent, and how much you need to explain, depends on the cookies you use, the data sent to outside services, and the rules where your users are. Examples include GDPR and the ePrivacy Directive in the EU, US state laws such as CCPA/CPRA, and Japan’s rules on sending user data to third parties. This pattern is an example of how to build the screen; for legal decisions, check with a specialist as needed.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published