SetupInstall Tracking Code

Install Tracking Code

Step 3: Tracking Code Installation

✅ Automatic Installation

If you connected via Shopify or WooCommerce, the tracking code is already installed automatically. You can skip to Step 4!

Manual Installation (Custom Stores)

Add this code to your site's <head> section:

<script>
  (function(w,t){
    w.Harper=w.Harper||function(){
      (w.Harper.q=w.Harper.q||[]).push(arguments)
    };
    w.Harper.storeId='YOUR_STORE_ID';
    var s=document.createElement('script');
    s.src='https://cdn.harper.com/track.js';
    document.head.appendChild(s);
  })(window);
</script>

⚠️ Replace YOUR_STORE_ID with your actual Store ID from dashboard

Was this helpful?