Skip to main content

Youtube Integration

The YouTube integration in Consent Manager manages user consent for YouTube video embeds in your application, aligning with GDPR compliance.

TitleYouTube
IDyoutube
IconYouTube
Brand color#FF0000
Contrast color#fff
DescriptionEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
Privacy policyhttps://policies.google.com/privacy?hl=en-US
WrapperComponent⛔️
Enabled by default⛔️

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 YouTubeYouTube

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.