Skip to main content

Adding Disco to your Shopify store

How you add DiscoOffers depends on whether your store is on Shopify Checkout Extensibility. Most Shopify stores have been upgraded — but confirm which applies to you, because the steps differ.

  • On Checkout Extensibility? Install the Disco widget on your Order Status and Thank You pages — follow the Shopify Checkout Extensibility guide.
  • Not on Checkout Extensibility yet? Add the Disco Script to your post-purchase pages — follow the steps below.

Before you start: find your Publisher ID

In your Disco dashboard, go to Settings › Privacy › X-publisher and copy your Publisher ID. You'll paste it into the script below.

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.