Plain website
Any page you control can host the script. The coupon is copied to the clipboard. A redeem URL can open your checkout.
- In the dashboard, set a discount and coupon for each tier you want to offer.
- If you have a checkout URL, set the redeem link to something like
https://example.com/buy?code={code}. FairPrice replaces{code}before opening it. - Paste the snippet on the product page, before
</body>.
<script src="https://YOUR_FAIRPRICE_HOST/embed.js" data-site="YOUR_PUBLIC_KEY" async></script>The bar is fixed to the top by default and adds padding so it does not cover your heading. Switch it to the bottom in the banner editor. Visitors can dismiss it for the session. An impression is counted once per IP per day, and a copy once per IP per hour.
To render the banner inside a box instead of over the page, set the data-inline attribute to the id of that element. The marketing demo uses the fixed bar on the sample product page.