Integrations

Put it on your site in minutes

One line of code works on every platform that lets you add a script. Choose your platform below, or jump to events, webhooks, and booth mode.

Installation guides

The code is the same everywhere. Replace DITTDOMENE and ID with the values you get in the dashboard.

Embed code
<script src="https://DITTDOMENE/embed.js" data-campaign="ID" async></script>

WordPress

You don't need to touch the theme code. Use a custom code plugin, such as WPCode, or add the code to the theme's footer.

  1. Install a plugin for adding code to the footer (for example WPCode) and open it.
  2. Create a new code snippet of type HTML and paste in the embed code.
  3. Choose the placement Footer (before </body>) and set the snippet to active.
  4. Reload the page and check that the button appears.
Embed code
<script src="https://DITTDOMENE/embed.js" data-campaign="ID" async></script>
Want to place the game in the middle of a page? Use a "Custom HTML" block in the block editor and paste the code with data-mode="inline".
Embed

Embed attributes

All options are optional, except data-campaign.

Embed attributes
AttributeValueDescriptionStandard
data-campaignRequiredCampaign ID from the dashboard.–
data-modepopup | inline | manualpopup: a floating button that opens the game in a pop-up. inline: the game appears directly on the page. manual: no button, you open it yourself.popup
data-targetCSS selectorThe element where the game is placed (only inline). Without a target, the game appears where the script is.–
data-positionleft | rightWhich side the floating button sits on.From the campaign, otherwise right
data-delaySecondsDelay before the button appears.From the campaign
data-exit-intenttrue | falseOpens the pop-up when visitors are about to leave the page (the mouse pointer leaves the browser window). Desktop only.From the campaign
data-heightPixelsHeight of the game in inline mode.680
data-textTextText on the floating button.From the campaign

Custom button

Add data-leadwin-open to any button or link, and the campaign opens in a pop-up.

HTML
<button data-leadwin-open>Spinn og vinn!</button>

JavaScript

Open and close from your own code in popup and manual mode.

JavaScript
Leadwin.open();
Leadwin.close();
Measurement

JavaScript events, dataLayer, and GA4

The embed script sends events on window and pushes them to dataLayer, so you can measure your campaign in GTM and GA4.

Events
Event (window)dataLayerWhen
leadwin:openleadwin_openPop-up opens
leadwin:closeleadwin_closePop-up closes
leadwin:playleadwin_playVisitors have played
leadwin:resultleadwin_resultThe result is shown (win or not)

The details are in event.detail. For result you get, among other things, win (true/false) and prize (the name of the prize).

Listen for events

JavaScript
window.addEventListener("leadwin:result", function (e) {
  console.log("Vant?", e.detail.win, "Premie:", e.detail.prize);
});

Send the result to GA4

GA4 with gtag.js
window.addEventListener("leadwin:result", function (e) {
  gtag("event", "leadwin_result", {
    win: e.detail.win,
    prize: e.detail.prize
  });
});
dataLayer (GTM)
// Skriptet gjør dette for deg:
dataLayer.push({
  event: "leadwin_result",
  campaign: "ID",
  detail: { win: true, prize: "10 % rabatt" }
});

// I GTM: lag en trigger av typen «Egendefinert hendelse»
// med hendelsesnavn leadwin_result, og koble den til
// en GA4-hendelse-tag.
Don't send personal data to analytics tools. Never send names, emails, or prize codes to GA4. Only use what you need to measure the campaign, and remember to get consent for analytics cookies.
Webhooks

Send leads on to Zapier, Make, and n8n

With webhooks (Pro and Business), we send a POST request with JSON every time someone plays. Paste the webhook URL into the campaign settings, and you won't need to export leads manually. The URL must be publicly accessible.

Zapier

Create a Zap with the trigger Webhooks by Zapier → Catch Hook, and copy the URL into the campaign.

Make

Add the Webhooks → Custom webhook module and copy the address it shows.

n8n

Use the Webhook node with the POST method, and copy the production URL.

JSON example

POST your-endpoint
{
  "event": "entry.created",
  "campaign": { "id": "AB12CD34", "name": "Sommerkampanje" },
  "entry": {
    "name": "Kari Nordmann",
    "email": "kari@eksempel.no",
    "phone": "",
    "company": "",
    "answers": {},
    "prize": "10 % rabatt",
    "win": true,
    "code": "VINN-7K2P",
    "marketingConsent": true,
    "createdAt": "2026-01-15T10:30:00.000Z"
  }
}
The example shows fictional data. marketingConsent tells you whether the person has said yes to marketing. Respect that in your follow-up.
Booth

Booth mode and QR code

Booth mode

Open the campaign with ?kiosk=1 on a tablet in full screen. The game resets between participants, ready for the next person.

Address
https://DITTDOMENE/p/ID?kiosk=1

QR code on mobile

Let visitors scan a QR code and play on their own phone. This takes pressure off the tablet when there's a line. You'll find the QR code in the dashboard, and under Print materials you can order a poster with a QR code.

Learn more about booths and trade shows →

Redeem a prize. When the winner shows the code, enter it under "Redeem prize" in the dashboard. Each code can only be used once.

Ready to add it?

Create a free account, copy the line of code, and paste it in.

Get started free No credit card · Free plan with 20 games per month · GDPR-friendly