YouTube, Vimeo and Google Maps on your site – how to manage consent for embedded content
An embedded video or map loads the provider's scripts and files as soon as the page opens. How to block them until consent, what to show instead and what to do with background videos in sliders.

Latest posts
- Google merged the Google tag with Tag Manager – what it changes for cookie consent
- Advertising on Google or measuring traffic? Check whether you need a cookie banner
- How should a proper cookie banner work?
- How to prepare your website for consetgo – pre-installation checklist
- Cookies in an online shop – a practical checklist
An embedded YouTube or Vimeo video or a Google map is not just a picture on the page. When the frame loads, the browser connects to the provider's servers and sends them the visitor's IP address, and the provider can store cookies and data in the browser. That is why such content requires consent, just like analytics or ads (Article 5(3) of the ePrivacy Directive, implemented in national laws). But you do not have to remove it – it is enough for it to load only after consent.
Which category they belong to
| Content | Category in consetgo | Why |
|---|---|---|
| YouTube (including youtube-nocookie.com) | marketing, can be changed to functional | the player connects to Google; advertising-related cookies |
| Vimeo | marketing, can be changed to functional | the player connects to Vimeo servers and stores data |
| Google Maps | functional | the map connects to Google and passes on the IP address |
If the videos are content of the site (tutorials, product presentations), assigning them to functional makes sense: a visitor who wants to watch a video does not have to consent to marketing. In both cases the video waits for consent.
How blocking with a placeholder works
consetgo processes the page on the server before it reaches the browser. Every YouTube, Vimeo or Google Maps frame without consent is replaced by a placeholder: a rectangle in place of the video with the text “Content blocked”, the provider's name, the category and an “Allow and show” button.
- Clicking the button means consent to that content's category – the video or map loads immediately.
- The placeholder takes up the frame's space (width and height from the code), so the page layout does not shift.
- Lazy-loaded frames (address in
data-srcinstead ofsrc, common in themes and speed-optimisation plugins) are blocked too. - You set the placeholder colours in the Banner appearance tab; since version 1.3.34 they are not changed by the visitor's dark system theme.
The module also blocks youtube-nocookie.com. The “privacy-enhanced mode” limits cookies until the video is played, but the player still connects to Google, so we do not treat it as an exemption from consent.
Background videos in sliders and sections
Page builders (e.g. Elementor, SP Page Builder) can set a YouTube video as a slider background. Then there is no frame on the page that could be replaced with a placeholder – the player is built by the YouTube script, and that script waits for consent. Before consent the background is empty.
Solutions:
- An MP4 video on your own server instead of a YouTube link – it works immediately, without consent, because it does not connect to an external service. The best solution for decorative videos.
- A slide background image – without consent the image is shown, after consent the video plays.
After a consent change consetgo reloads the page, so after consent the background video starts immediately, without a manual refresh.
Alternatives that do not require consent
- A map as an image with an “Open in Google Maps” link – an image on your server does not connect to Google.
- A video on your own server (MP4 in a
<video>tag) – especially short videos and animations. - A thumbnail with a button – your own image with a link to the video on YouTube; the video opens on the provider's site.
Checklist
- In a private window, before the decision: placeholders are visible in place of videos and maps, and the developer tools show no requests to youtube.com, ytimg.com, vimeo.com and maps.googleapis.com.
- The “Allow and show” button loads the video or map.
- Background videos in sliders have a background image or an MP4 file instead of YouTube.
- Placeholders are readable on light and dark pages and do not overflow the screen on phones.
- YouTube, Vimeo and Google Maps are described in the cookie policy table.
You can see what the placeholder looks like in the demo. We describe a full site test in the article How to check whether a site sets cookies before consent, and assigning categories in the article on cookie categories for services.
Questions and answers
Does youtube-nocookie.com remove the need for consent?
You should not rely on it. The “privacy-enhanced mode” limits cookies until the video is played, but the player still connects to Google servers and stores data in the browser. consetgo blocks it just like the regular player.
Does a Google map with the company address require consent?
Yes. An embedded map connects to Google servers and passes the visitor's IP address to them. It is a convenience, not a condition for the site to work, so it belongs to functional. Instead, you can use a static image of the map with a link to Google Maps – then no consent is needed.
What does a visitor who refused see?
In place of the video or map, a “Content blocked” frame with the provider's name and an “Allow and show” button. Clicking it means consent to that content's category and loads it immediately.