Docs    YouTube

YouTube Feed GDPR Compliance

How the Feeds for YouTube plugin handles GDPR, what data is transferred and stored, and where to enable the GDPR setting.

Would you like to show your YouTube feed in a way that respects your visitors’ privacy under the GDPR?

In this guide, we’ll explain how the GDPR setting works and what changes in your feed before visitors give consent. We’ll also cover which consent plugins it works with.

Before you get started, make sure YouTube Feed is installed and activated on your site.

Note: For details on how our plugins transfer and store data, see our GDPR disclosure.

Choosing a GDPR Option

To get started, we’ll find the GDPR setting and choose how it treats your visitors.

From your WordPress admin sidebar, go to YouTube Feed » Settings. Then, click the Feeds tab.

The YouTube Feed Settings page with an arrow pointing to the Feeds tab

The GDPR setting on this tab has 3 options. The setting applies to all of your feeds.

Automatic is the default. You don’t need to change anything when you use a supported consent plugin. The setting detects that plugin on its own.

OptionWhat your visitors see
AutomaticIf a supported consent plugin is active, each visitor sees the limited version of the feed until they give consent. If none is active, every visitor sees the full feed, the same as with No.
YesEvery visitor sees the limited version of the feed. A visitor who accepts cookies in a consent plugin that the setting works with then sees the full feed.
NoEvery visitor sees the full feed, and the plugin loads videos directly from YouTube.

If you’re not sure which to pick, leave it on Automatic when you use one of the supported consent plugins. Yes fits if your consent plugin isn’t detected, or if you want every visitor to see the limited version. No fits only if you want every visitor to see the full feed with no change.

With Automatic and no consent plugin active, the text below the list says that no GDPR consent plugin was detected. It also shows a card that lets you install WPConsent, our consent plugin.

The GDPR setting on Automatic with the message that no GDPR consent plugin was detected

To change it, choose an option from the GDPR list. For example, choose Yes to show the limited version of the feed to every visitor.

The GDPR setting with Yes chosen and the Block CDN Images setting below it

When you choose Yes, the Block CDN Images setting also shows below the list. It’s off by default. The limited version of your feed still shows your video thumbnails before a visitor gives consent. Those images load from YouTube’s image servers. Turning this setting on blocks those images until a visitor gives consent. Each thumbnail shows a blank placeholder with a play icon instead.

A feed before consent with Block CDN Images on, showing blank placeholders with a play icon in place of the video thumbnails

Then, click Save Changes at the top right of the page.

The top right of the Settings page with an arrow pointing to the Save Changes button

Your GDPR setting is now saved. Next, let’s look at what changes in your feed before a visitor gives consent.

How Does the Limited Version of Your Feed Work?

Before a visitor gives consent, the limited version of the feed works like this:

  • The YouTube player isn’t loaded. No video plays on your page.
  • The feed shows thumbnail images instead of the actual videos. Each video keeps its title, channel name and date.
  • Clicking a video thumbnail opens the video on youtube.com in a new tab. If a feed uses the lightbox and Block CDN Images is off, the click opens the lightbox with a play button instead. Clicking that button opens the video on youtube.com in a new tab.
  • The comments that the paid version can show under a video don’t load.
  • In a Shorts feed that uses Swipe View, clicking a Short doesn’t open the swipe player. The Short opens on youtube.com in a new tab.

In a feed before consent, the thumbnails show with their titles, but no video player is loaded.

A YouTube feed before consent, showing video thumbnails with their titles, channel name and date

When the lightbox is on and Block CDN Images is off, clicking a thumbnail opens the lightbox. It shows the thumbnail with a play button instead of the video player.

The lightbox before consent, showing a video thumbnail with a play button instead of the video player

A Shorts feed that uses Swipe View looks the same before consent. The Shorts show as thumbnails. Clicking one opens it on youtube.com instead of in the swipe player.

A Shorts feed with Swipe View before consent, showing Short thumbnails with their titles

Once a visitor gives consent, they see the full feed, with the player and all features. To learn more about Shorts feeds, see our guide on creating a YouTube Shorts feed with Swipe View.

Next, let’s look at the consent plugins the GDPR setting detects.

When the GDPR setting is on Automatic, the plugin detects these consent plugins.

Consent pluginName shown in the GDPR setting
WPConsentWPConsent by the WPConsent team
Real Cookie BannerReal Cookie Banner by devowl.io
GDPR Cookie ComplianceGDPR Cookie Compliance by Moove Agency
Cookie Compliance for WordPressCookie Notice by dFactory
CookiebotCookiebot by Cybot A/S
ComplianzComplianz by Really Simple Plugins
Borlabs CookieBorlabs Cookie by Borlabs

When one of these plugins is active, its name shows with a green check below the GDPR list on the Feeds tab. This lets you confirm the setting detected it.

The GDPR setting on Automatic with an arrow pointing to the detected consent plugin, WPConsent by the WPConsent team

Each visitor then sees the limited version of the feed until they accept cookies in that plugin’s banner. After they accept, they see the full feed.

If you use a consent plugin that isn’t in the table, the next section shows what to do.

If the setting doesn’t detect your consent plugin on Automatic, every visitor sees the full feed.

To show the limited version of the feed to every visitor instead, set the GDPR setting to Yes. The setting can’t read consent from a plugin it doesn’t detect. Those visitors keep seeing the limited version even after they accept cookies.

Some consent plugins can run custom JavaScript after a visitor accepts cookies. For those, see our guide on adding support for the GDPR setting to other consent plugins. It has the code that shows the full feed once a visitor accepts. You can also see the full list of GDPR plugins our plugins work with.

That’s it! You now know how the GDPR setting works. You also know what changes in your feed before visitors give consent and which consent plugins it works with.

Next, see our guide on getting a YouTube API key.

Frequently Asked Questions

Below, we’ve answered some of the most common questions about the GDPR setting.

Can I use the GDPR setting in the free version?

Yes. The free version has the same GDPR setting on its Feeds tab. It has the same 3 options and the Block CDN Images setting.

Why isn’t my consent plugin detected on Automatic?

The setting detects the plugins in the table above. If it doesn’t detect yours, the text below the GDPR list says that no GDPR consent plugin was detected. For your options, see the Using Other Consent Plugins section above.

Does the GDPR setting apply to all of my feeds?

Yes. See the Choosing a GDPR Option section above.

support

Couldn’t find your answer in the docs?

Contact Support