Youtube Integration
The YouTube integration in Consent Manager manages user consent for YouTube video embeds in your application, aligning with GDPR compliance.
| Title | YouTube |
| ID | youtube |
| Icon | |
| Brand color | #FF0000 |
| Contrast color | #fff |
| Description | Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. |
| Privacy policy | https://policies.google.com/privacy?hl=en-US |
| WrapperComponent | ⛔️ |
| Enabled by default | ⛔️ |
Managing Consent for YouTube
To control the loading of YouTube videos based on user consent, use the useDecision hook from Consent Manager Core or the PrivacyShield component.
Example: Conditional Loading of YouTube Videos
import React from 'react';
import { PrivacyShield } from '@consent-manager/core';
import YouTubeVideoComponent from './YouTubeVideoComponent';
function VideoWithConsent() {
return (
<PrivacyShield id="youtube">
<YouTubeVideoComponent />
</PrivacyShield>
);
}
export default VideoWithConsent;
Recommended external content
This feature contains content by YouTube
To view this third-party content, you first have to accept their specific terms and conditions.
This includes their cookie policies, which we have no control over.