Skip to content
SpinLoop

How to add a spin-to-win popup to Wix

Add the snippet in Settings, under Custom Code, at the end of the body.

Written by the SpinLoop team. Last reviewed .

Before you start

  • Wix only allows custom code on sites with a paid plan and a connected domain.
  • Your game is saved in SpinLoop. Nothing shows to visitors until it is live.

1. Copy your snippet

In SpinLoop, open your game and go to the Install tab. Copy the snippet. It looks like this, with your own game id:

<script src="https://app.getspinloop.com/embed.js" data-campaign="c_0123456789abcdef" async></script>
Example only. Copy your own snippet: the game id is different for every game.

2. Add it as Custom Code

  1. Open your site's dashboard in Wix and go to Settings.
  2. Find Custom Code (it is in the advanced or developer section; Wix moves it now and then, so search settings for "Custom Code" if you cannot see it).
  3. Click + Add Custom Code.
  4. Paste the snippet into the code box and give it a name, such as "SpinLoop game".
  5. Under Add Code to Pages, choose All pages and Load code once.
  6. Under Place Code in, choose Body - end.
  7. Click Apply.

3. Allow your site's address

In the Install tab, under Where it can run, add the domain your Wix site uses, for example:

https://yourshop.com

4. Check it works

  1. Click Test install in the Install tab.
  2. Open your live site (not the Wix editor preview) in another tab.
  3. The Install tab shows "Installed" once we see the snippet running.

If it does not show

  • Editor preview. Custom code only runs on the published site, not in the Wix editor.
  • Domain not listed. If your site opens on a different address than the one you listed, add that one too.
  • Seen it already? The frequency cap hides the game for a while after someone has seen it. Try a private window.

Questions

Why can't I find Custom Code?

Wix only offers Custom Code on sites with a paid plan and a connected domain. Wix also moves menus around now and then, so search the dashboard settings for 'Custom Code'.

Does it work with Wix Stores?

Yes. Choose 'All pages' when you add the code and the game can show on your store pages too.