Skip to main content
Your upsell and downsell pages stay yours, served from your own domain. The platform drives the funnel from inside them with one script tag and two attributes on your buttons. The whole integration is those two things. Everything else on this page is the detail that decides whether a click charges the card or throws the sale away.
Selling through a Shopify store? Your pages use an offer tag instead of button attributes. See Connect your store pages.

1. Add the script to your upsell and downsell pages

Paste this as the last element before the closing </body> tag, on every upsell and downsell page of the funnel:
Nothing works without it. The script charges the offer when the buyer accepts and moves the buyer to the next step.
Don’t add the script to the thank-you page. The buyer reaches the thank-you page at the end of the funnel, where there is nothing left to charge. With the script on it, the page shows a “You are not allowed to continue” notice to every buyer who finished the funnel. Keep the thank-you page free of the script.

2. Mark the buttons

The script does not care what your buttons look like. It only looks for these attributes: Write the attributes bare: data-pag-yes, not data-pag-yes="true". Each offer inside a step shows the snippet data-pag-yes data-pag-offer="CODE" with a Copy button next to it, with your offer code already filled in.
If you use <a>, leave it without href. What loses the sale is the href, not the tag. The script starts handling clicks only after the page has fully loaded: every image, font and video. On a heavy VSL that takes seconds, and a buyer who clicks an <a href> in that window leaves the page. With no href, the same click simply does nothing and the buyer clicks again.Any tag works, as long as it carries no href: <button>, <div>, or <a data-pag-yes data-pag-offer="CODE">. The href is ignored either way, because the platform decides where the buyer goes next.
The hand cursor is on you. A <button>, and an <a> without href, keep the arrow cursor and look unclickable. Add style="cursor: pointer" to the tag, or cursor: pointer in your CSS. That detail is exactly what tempts people into adding an href, which gets the hand cursor for free from the browser.

The pair, ready to copy

The same pair with anchors, for a page whose styling is built around links:
Swap YOUR_OFFER_CODE for the code shown on your step. To see what the buyer gets on each click, read What the buyer sees.

The domain has to match exactly

Each page must be served from the same domain you entered in the step’s Page URL. www.yourstore.com and yourstore.com are different domains here, and a page whose domain does not match cannot charge the buyer.

Test it end to end

Opening a funnel page directly in the browser shows a notice instead of your content, and that is expected: the page only runs when the buyer arrives from the checkout. To test for real, make a test purchase of the offer the funnel is attached to and follow the flow. A test purchase is a real purchase: it charges the card you use, so refund it from the order afterwards. Use a different email for each test purchase. The checkout accepts one purchase of the same product per email per day (UTC): a second one shows “Purchase already completed” and charges nothing, so it never reaches your funnel.

A test purchase that lands on the upsell page

Next step

How it works

What the buyer sees on each click, how funnel purchases are charged and how they reach the order.