Sweepr
← All guides

Embed on your website

Add the campaign widget to any page. · 2 min read

The script embed

This is the one to use. It auto-resizes to fit its content, so you don't have to guess a height.

<div data-sweepr="YOUR_CAMPAIGN_SLUG"></div>
<script src="https://giveawaycampaign.vercel.app/embed.js" async></script>

The iframe embed

If your CMS won't let you add a script tag, a plain iframe works — you just have to pick a height yourself.

<iframe src="https://giveawaycampaign.vercel.app/embed/YOUR_CAMPAIGN_SLUG"
        width="100%" height="900" frameborder="0"></iframe>

Notes

The embed renders the entry widget only — no site header, no footer, no navigation. It inherits your campaign's theme colours and custom CSS.

Entries made through an embed are identical to entries on the hosted page: same tickets, same draw, same referral links.

next

Connect email marketing

Push entrants to Mailchimp, Klaviyo and the rest.