Need Support?

Embedding Campaigns on Your Website as JS

Woobox provides a quick and easy method for embedding campaigns within an external website, which you’ll see under the Setup -> Embed section of your campaign’s dashboard (you can simply copy/paste the code given there into your website).

Additionally, for reference, we’ve explained the process here.

Using the block of HTML/JavaScript below, you can embed this campaign in any webpage, allowing users to interact with every aspect of the promotion from inside an element of your choosing.

Follow the instructions to embed this campaign on a webpage of your choosing:

Step 1) Insert the embed code for our JavaScript SDK in the HTML of your webpage, preferably after the opening <body> tag:

Step 2) Then place the embed element in the HTML of your webpage wherever you would like the campaign to appear:

<div class='woobox-offer' data-offer='123abc'></div>

NOTE: The data-offer attribute is the unique offer URL shard, the last piece of the promotion’s shareable URL.

PRO TIP:
To center the embedded promotion on your site add style=”margin:auto;” to the code in Step 2.

You’re all set! The embed element resizes automatically to fill the width of whatever its containing element is (up to a max width of 810px), and the height will scale dynamically to fit the content of the campaign.