Conversion events are actions people take on your website after seeing or hearing your ads on Spotify.
The base code includes the page view event by default. The base pixel code should be installed on a minimum of 3 pages of your website to send enough baseline data to effectively attribute the impact of your ads. To measure additional conversion events beyond page views, you can install the other conversion events on pages and features of your website where those events take place.
Details about each of the conversion events are below.
|
Event type |
Description |
Sample Pixel Code* |
|
Page View |
Measures the action of someone landing on a specific webpage. For example, viewing a website’s homepage or category level page. This event is included in the base pixel code and should be installed on any page where you want to measure website visitors or page views. Best practice tip: Make sure the base code is installed between the header tags on every page where you want to track page views. Best practice tip: To make sure your website is sending enough data, it’s best if this event is on 3 or more pages. |
<script>
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('view'); })(window, document); </script> |
|
View Product |
Measures the action of someone viewing a webpage dedicated to a specific product. Best practice tip: To get further insight on specific product names, it’s recommended to use the product_name parameter to pass the name of the page or product associated with the product view event. |
<script> (function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('product'); })(window, document); </script> |
|
Lead |
Measures when people submit information about themselves or their company to express interest in a product or service. For example, someone submitting an email address to sign up for a newsletter. Use a lead event if your primary key performance indicator is leads and place the leads conversion event on pages that confirm the collection of contact information. Lead events can be set to fire when the event is triggered, such as a form being submitted, or when a specific webpage is visited, such as “find my closest store”. Wherever the Lead event is placed, you want to ensure that it fires only on the desired outcome. |
<script>
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('lead'); })(window, document); </script> |
|
Sign Up |
Measures the action of signing up or registering for an event, product, service, etc. |
<script>
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('signup'); })(window, document); </script> |
|
Add to Cart |
Measures the action of adding an item to a virtual shopping cart or basket. For example, clicking an Add to Cart button on a website, but before actually completing the purchase transaction. |
<script>
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('addtocart'); })(window, document); </script> |
|
Start Checkout |
Measures when a user has initiated the online checkout process. |
<script> // Installation script generated by Ad Analytics
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('checkout'); })(window, document); </script> |
|
Purchase |
Measures the completion of an online purchase transaction, usually signified by receiving order or purchase confirmation, or a transaction receipt. For example, landing on a Thank You or Order Confirmation page. |
<script>
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('purchase'); })(window, document); </script> |
|
Custom Events |
Measures bespoke or custom event actions on a website that are not available as one of Spotify’s standard event types. These are events that you define yourself. While in beta, custom events cannot be renamed. They will appear in the reporting as Custom Event 1, Custom Event 2, etc., so it’s important to document which custom events map to specific actions on your website when conducting the initial setup. Note: Ads Manager currently supports up to 5 custom events. |
<script>
(function(w, d){ var id='spdt-capture', n='script'; if (!d.getElementById(id)) { w.spdt = w.spdt || function() { (w.spdt.q = w.spdt.q || []).push(arguments); }; var e = d.createElement(n); e.id = id; e.async=1; e.src = 'https://pixel.byspotify.com/ping.min.js';; var s = d.getElementsByTagName(n)[0]; s.parentNode.insertBefore(e, s); } w.spdt('conf', { key: 'pixel-key' }); w.spdt('custom_event_1'); })(window, document); </script> |
*The Spotify Pixel codes above are for example purposes only. Advertisers will need to generate their own unique pixels within their ad account in order to activate measurement for the brand’s website.
For more info on event and parameter installation requirements for our conversion metrics, review the Reporting Metrics Glossary.
