🛍️
INSTALL GUIDE

Shopify

Add the Dupes tracker to your Shopify site. Replace dps_your_site_idand the domain with your own — find them on your site's Install page.

Steps

  1. 1Shopify admin → Online Store → Themes → ⋯ → Edit code.
  2. 2Open Layout → theme.liquid.
  3. 3Paste the snippet just before </head> and Save.
<script>window.dupes=window.dupes||function(){(window.dupes.q=window.dupes.q||[]).push(arguments)}</script>
<script
  src="https://usedupes.com/js/script.js"
  data-dupes-id="dps_your_site_id"
  data-dupes-domain="yourdomain.com"
  defer
></script>

💡 Tracks storefront pages. Checkout events depend on your Shopify plan.

Track a goal

Record conversions like submit_form anywhere on the page:

<!-- No code: fires when clicked, or activated by keyboard -->
<button data-dupes-goal="signup">Sign up</button>

<!-- Optional detail, as data-dupes-goal-<name> -->
<button data-dupes-goal="purchase" data-dupes-goal-plan="pro">Buy</button>

<!-- In code: fire from anywhere, e.g. once a payment succeeds -->
<script>
  window.dupes("purchase", { plan: "pro" });
</script>