---
title: "YouTube consent handling | CookieBeam"
description: "How CookieBeam handles YouTube: it holds marketing and functional scripts until the visitor consents."
url: "https://cookiebeam.com/integrations/youtube"
lang: "en"
image: "https://cookiebeam.com/opengraph-image.png?v=20261016"
---

# YouTube

YouTube is a video hosting platform whose embedded player sets cookies on the viewer.

- Marketing
- Functional
- Blocks until consent

## Category and reason

The scanner classifies YouTube scripts and connections as marketing and functional, depending on which part of YouTube they belong to.

- Marketing covers tools that track visitors for advertising or across websites.
- Functional covers features the visitor uses on the page, like chat, video, maps or scheduling.

These are defaults. You can reassign the category of any script on your site.

## How CookieBeam handles it

- Blocks until consent

  Where visitors must opt in, CookieBeam holds these scripts off the page until the visitor accepts marketing and functional. Blocking must be switched on, and the script must appear in a scan or be added by you.

## Setup guides

- [YouTube, Vimeo and Wistia](https://cookiebeam.com/docs/integrations/video-embeds)

This page describes what CookieBeam does by default. Whether you need consent for YouTube depends on your site, how you use YouTube, and which laws apply. It is not legal advice.

## Add CookieBeam to your site

Create an account to set up your consent banner and see how CookieBeam handles the vendors on your pages.

[Sign up free](https://cookiebeam.com/sign-up)
