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>2. Add it as Custom Code
- Open your site's dashboard in Wix and go to Settings.
- 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).
- Click + Add Custom Code.
- Paste the snippet into the code box and give it a name, such as "SpinLoop game".
- Under Add Code to Pages, choose All pages and Load code once.
- Under Place Code in, choose Body - end.
- 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
- Click Test install in the Install tab.
- Open your live site (not the Wix editor preview) in another tab.
- 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.