Music on one’s WordPress website is an excellent way to make the user experience even more palatable for visitors. Spotify is one of the most popular music streaming services worldwide. Therefore, it almost makes sense to embed a song, an entire playlist, an audio book or podcast into your own website with Spotify – especially since the embedding itself is super easy.
However, there is one not too small problem here: data protection.
What exactly is meant by this and how you can still embed Spotify content in your WordPress website in a privacy-compliant way, we will tell you in this article!
What is Spotify?
Spotify is probably the most popular music streaming service in the world. Spotify lets you enjoy your favourite music, podcasts and audiobooks legally at any time. You can listen to the content on Spotify both online and offline – as a download. You can create playlists and add and remove music at any time. With more than 40 million songs, almost every artist is represented on the platform.
Spotify works as a subscription model. There is also a free version. However, the listener has to put up with commercial interruptions.
Spotify and data protection
Contrary to what you might have assumed, the giant audio streaming service is not a service of a US company. This is practical in that you do not have to obtain consent for the transfer of data to the USA. Since the end of the data protection agreement between the USA and the EU (Privacy Shield), personal data can generally only be transferred, processed or stored (in the USA) with the opt-in consent of the person concerned.
However, the company in question in this case is located within the EU, in Sweden, and operates data centres for EU users to process data within the EU.
Integrate Spotify into a WordPress website
Before we show you how to make Spotify embedding on your WordPress website compliant with the GDPR, we will first look at how you can embed Spotify content in general.
- Open spotify.com
- Click on the song or podcast you want to embed in your website.
- Click on the three dots on the right.
- Click on Share > Embed track.
- Go back to your WordPress website. Open the page or post where you want to embed the content.
- Paste the code here (CTRL+V) and save your settings.
And the pretty Spotify player is already embedded on your website!
✅ Opt-in consent
Even if you don’t have consent to transfer data to the US – which from an EU perspective is considered an unsafe third country with a poor level of data protection – you still need consent to embed Spotify on your WordPress website.
When using Spotify, cookies are used to define the view window of the music player and to collect visited websites and detailed statistics about user behaviour. This data can be linked to the data of users registered on spotify.com or a natively installed Spotify application.
The cookies set are not considered essential as they are not required for the basic functionality of your website. After all, your website would be usable without stylish music. Therefore, you must obtain consent for the setting of these non-essential cookies.
Since it is not possible for everyone to understand and implement the correct opt-in consent in accordance with data protection regulations, it is advisable to use a consent management solution such as Real Cookie Banner.
We’ll now show you how exactly you can easily obtain opt-in consent using Real Cookie Banner in order to embed Spotify in your website in a GDPR-compliant manner!
- Open your WordPress backend.
- Go to Plugins > Add New in the menu on the left. Search for “Real Cookie Banner”.
- Install and activate the plugin.
- Click on Cookies in the menu on the left. You are now in the Real Cookie Banner Dashboard.
- Navigate to Services (Cookies) > Add Service in the menu on the left.
- Search for “Spotify” in the templates.
- Click on the template (in the PRO version). You will now automatically land in the service configuration. Here’s the best part: you don’t have to do a thing! Real Cookie Banner has already filled in all the Spotify information, so you don’t have to do any legal or technical research (yippee!). In the free version, you can simply enter them yourself.
- Scroll to the end of the template. Leave the check mark for Create Content Blocker for this service.
- Click on save. You will now be automatically redirected to the corresponding Content Blocker template.
- Again, everything has already been filled in. Scroll down and also click Save.
Now Spotify is only played after your visitor’s consent. GDPR made easy!