Give each viewer their own deadline
This article shows you how to give each viewer an honest deadline for your offer, for example 48 hours from their first visit, with a countdown and a page that changes when it ends.
Available on: Pro, Business and Agency plans.
How it works
Each viewer's offer ends a fixed time after their own first visit. It never restarts for them: coming back, reloading the page or opening it again later shows the same countdown, moving on.
- Viewers who came from your emails or entered their email in a form (recognised viewers) keep the same deadline on every device: their phone and their computer show the same time left. It starts at their first visit PlayerMagick knows of, never before you turned the deadline on and never before PlayerMagick first saw them. A viewer who only typed an email counts from that moment, so nobody can type someone else's email to end their offer early.
- Anonymous viewers keep their deadline in their browser. If they clear their browser data or use another browser, they start a new deadline. PlayerMagick never shows a timer that restarts on its own, but it cannot know an anonymous visitor who cleared their browser.
- When the deadline ends, parts of your page can hide and others show (for example "This offer has ended"), the video's button can change its text and link, and a funnel's offer can use another checkout link.
Set it up for a video
- Go to Videos and open your video.
- Click the Interactions tab.
- Under Personal deadline, turn on Give each viewer their own deadline.
- In Ends after, enter a number and choose Hours or Days (from 1 hour to 365 days). For example 48 hours.
- Choose the Countdown: Over the video, Under the video or None.
- Edit the Countdown text if you like.
{time}becomes the time left, like "1 day 03:12:09". - For each button of the video you can turn on After the deadline, change "…" and enter its Text after the deadline and Link after the deadline (for example your full-price checkout).
Changes are saved automatically.
Under the video uses a row under the player, like a button below the video. It needs the updated embed code: copy it again from the Publish tab. It cannot be used together with a Below video button; choose Over the video then.
Change parts of your page at the deadline
Add one of these attributes to an element of your page (the Interactions tab shows them with a copy button):
| Attribute | What it does |
|---|---|
data-pm-before-deadline | Shows until the viewer's deadline, then hides. For example your discount price. |
data-pm-after-deadline | Hidden until the viewer's deadline, then shows. For example "This offer has ended". |
data-pm-countdown | Shows the live countdown text, for example next to your buy button. |
After you turn the deadline on, the Publish tab's code gains one short line at the top that keeps the "after" parts hidden while your page loads. Copy the code again and replace it on your page. If your site sends strict security headers, see Fix a video on a site with strict security settings for the line's hash.
Use one deadline per page. If a page has two videos with different deadlines, the first one decides the page parts; each video still shows its own countdown and buttons.
The "before" parts and expired viewers
Your page decides what shows, and PlayerMagick learns the viewer's deadline a moment after your page appears. So for a viewer whose deadline already passed, the "before" parts (for example your discount price and its buy button) can show for a moment, usually well under a second, before they hide.
- To avoid that, turn on Hide before-deadline parts until the deadline is known under Personal deadline, then copy the embed code again from Publish. The "before" parts then wait, invisible, until PlayerMagick knows the deadline. If PlayerMagick cannot load (an ad blocker, a strict security setting), they show again after 3 seconds, so your offer never disappears for everyone.
- If something goes wrong (for example a browser extension blocks PlayerMagick), your page keeps showing the offer and keeps the "after" parts hidden.
- For an offer that must end, also end it at your checkout: an end date on the coupon or the discounted price, or a checkout link that only works for a limited time. A page can hide a price, but it cannot stop someone who saved the checkout link or blocks scripts.
In a funnel
- Open the funnel and click an empty spot of the graph to see Funnel settings.
- Turn on Give each viewer their own deadline, enter the hours, choose the countdown and its text.
- For each offer, you can enter the checkout link it uses after the deadline. Leave it empty to keep the same link.
- Click Save these settings.
- If your page uses
data-pm-after-deadline, copy the line shown there and paste it above the funnel's code on your page. A second, longer line also keeps thedata-pm-before-deadlineparts from showing for a moment to expired viewers (3 seconds at most).
Use it in automations
- The trigger Their deadline passed (under Offer deadline) runs an automation when a recognised viewer's deadline ends, checked every minute. For example: tag "missed-offer" in your email tool, or start a last-chance sequence before it ends by using a wait.
- For viewers who came from one of your email links, every action runs, Update a field and Remove tag included. For viewers who only typed their email into a form, only the actions that add run (Add tag, Subscribe, sequences, webhooks), as for every other trigger.
- It no longer runs once you turn the deadline off. If you lengthen the deadline after someone's passed, it runs again when their new deadline passes.
- In Update a field, choose Their deadline (date and time) to write it into your email tool, like "28 Oct 2026, 14:00 UTC", and use it in your emails. Their deadline (for automations) writes it as 2026-10-28T14:00:00Z.
Good to know
- Someone who is watching at the exact moment their deadline ends sees the countdown end and your page parts change at once; the video's button changes the next time they open the page.
- If you change Ends after, every viewer's deadline moves with it, counted from their same first visit.
- If you turn the deadline off and on again later, everyone starts a new deadline from their next visit. (Otherwise everyone who visited months ago would see an expired offer the moment you turn it back on.)
Troubleshooting
- The countdown starts again in a private window. That is a new anonymous visitor for PlayerMagick: private windows do not keep the browser's data.
- The "after" parts flash for a moment when the page loads. Copy the embed code again from Publish (it has the extra line at the top). On a site with strict security headers, the line also needs its hash (see Related articles).
- Expired viewers see the discount for a moment. Turn on Hide before-deadline parts until the deadline is known and copy the embed code again (see The "before" parts and expired viewers).
- The countdown under the video does not show. Copy the embed code again from Publish: it reserves the row.