1. Paste the player code
In the dashboard, open the video and go to Code. Paste it where the video should appear:
<div data-vslpro="v_YOURVIDEO" style="aspect-ratio:16/9"></div>
<script src="https://play.vslpro.app/p/v_YOURVIDEO.js" async></script>
The aspect-ratio reserves the video’s space before it loads, so the page doesn’t jump.
2. Turbo (optional)
In the page <head>, so the browser starts fetching the player and the cover before reading the rest:
<link rel="preconnect" href="https://play.vslpro.app">
<link rel="preload" href="https://play.vslpro.app/p/v_YOURVIDEO.js" as="script">
3. Iframe
For platforms that don’t accept scripts:
<iframe src="https://play.vslpro.app/embed/v_YOURVIDEO" style="width:100%;aspect-ratio:16/9;border:0"
allow="autoplay; fullscreen; encrypted-media" allowfullscreen></iframe>
In the iframe, the button below the video and the page block reveal don’t work, because they live outside the iframe.
4. Reveal the offer at the pitch
Add the vslpro-hidden class to the blocks that should only appear at the pitch:
<section class="vslpro-hidden">Your offer, prices and buy button</section>
In the dashboard, under Player, turn on Reveal the offer on the page and pick the second. Anyone who comes back to the page after reaching the pitch sees everything open.
5. Scoreboard: sales in the dashboard
- In the dashboard, open Scoreboard and copy the postback URL.
- Paste that URL in your platform’s webhook settings (Hotmart, Kiwify, Eduzz or another one) and check the approved purchase and refund events.
- Done. The checkout links on your page get the
sckparameter with the session of whoever clicked, and the platform sends that parameter back with the sale.
To tag a link that VSL PRO doesn’t recognize as a checkout, add data-vslpro-checkout:
<a href="https://mycheckout.com/product" data-vslpro-checkout>Buy now</a>
6. Pixel and events
With the Meta Pixel or GA4 on the page, the player sends VSLPlay, VSL25, VSL50, VSL75, VSLPitch and VSLEnd.
For developers, the player element fires events you can listen to:
document.querySelector('[data-vslpro]').addEventListener('vslpro:pitch', (e) => {
console.log('reached the pitch', e.detail.session);
});
window.addEventListener('vslpro:reveal', () => { /* the offer appeared */ });
Available events: vslpro:start, vslpro:pitch, vslpro:cta-shown, vslpro:cta, vslpro:end and, on the window, vslpro:reveal.