Adding a Spotify Pre-save Button to Your Website
A Spotify Pre-save button allows fans to save tracks or albums before they’re released. On the artists side, it provides rich customer data and a huge boost in first week streaming activity. Keep reading to learn how to install this valuable little button on to your website! (Or learn about our other buttons: Follow Artist, Follow Playlist and Add Track.)
Set Up Spotify Pre-Save
Setting up a Pre-save button is very similar to a regular "Log in with Spotify" button.
1. To start, head over to your website.
Set up your AE JS on your website as usual then add the following code to your HTML:
<a href="#" data-ae-follow-link="spotify" data-ae-album-id="2jUjrmnCfEEwvC4H2twuTI">Spotify presave</a>
Assuming you've added the right album ID that's all you need to do to set up the pre-save on your site. Just follow on with step 2.
Developers Note: The HTML will also accept IDs in the Spotify URI format.
If the incorrect HTML tag is used, the ID type will take precedence.
For example, data-ae-album-id="spotify:track:4KXwFI9pgJLpUIAc9oSL8j" will be treated as a track follow.
2. The last step is to modify your Spotify app permissions.
- From the AE dashboard, click on AE Connect, found in the top right menu bar.
- Next, click on the Spotify icon. You need to have the Spotify Social App set up already.
- A box will pop up and you will see two tabs: "Basic Settings" and "Advanced Settings." Click on "Advanced Settings."
- In the box that says "Add Additional Permissions," type in: user-follow-modify
- Scroll down and click "Save Changes." Whewf, all done!
How this looks to your Spotify user
Your user will see a “Pre-save on Spotify” button on the site.
A click on the Pre-save button will trigger the Spotify registration process. This will act exactly like a regular Spotify Register, however the follow action will happen right after registration. The user will not have to take any extra steps and will be returned to the page as per usual, with an optional “You have now pre-saved X” message.
That's it! Enjoy watching the data roll in.
And if you run into any troubles, don't hesitate to get in touch using the blue bubble on our website!
With a custom Spotify Pre-save button, you get valuable data about your fans, allowing you to target and segment with precision. Learn how to use this data to create a killer campaign here!