Skip to main content

Publishing DiscoOffers with the Disco Script (no Checkout Extensibility)

If your Shopify store isn't on Checkout Extensibility yet, you add DiscoOffers with the Disco Script on your post-purchase pages — the steps below walk you through it.

On Checkout Extensibility? Most Shopify stores are — you want Publishing DiscoOffers on your Shopify store instead: the widget install, no code.

Before you start: find your Publisher ID​

In your Disco dashboard, go to Integrations and copy your Publisher ID. You'll paste it into the script below.

The Integrations page — your Publisher ID with a Copy button

Add the script​

  1. In your Shopify admin, go to Settings.
  2. Open the Checkout section.
  3. Scroll down to Additional Scripts.
  4. Paste the Disco script (below) into the Additional Scripts box. If you already have scripts there, add the Disco script at the very top of the existing code.
<!-- Disco Start -->
<script type="text/javascript" src="https://d1zcmvsklxjbur.cloudfront.net/static/disco.js?publisher_id=<<publisher id>>&environment=production"></script>
<!-- Disco End -->

Replace <<publisher id>> with your actual Publisher ID — the one you copied above.

If the Additional Scripts section is hidden​

Some Shopify stores have the Additional Scripts section hidden. If you don't see it:

  1. Right-click the area and choose Inspect to open your browser's Inspector.
  2. Remove the hidden attribute (or any CSS class hiding/disabling the section) so it's editable.
  3. Add the Disco script as above.

Confirm it's working​

After saving, run a test order and confirm offers render on your post-purchase pages. See Going live: review and activation.