E-Commerce Platforms

Installing Scoby Analytics on Shopify

Like all Scoby integrations, this lightweight, client-side integration is carefully designed to prioritize visitor privacy. It fully complies with EU ePrivacy and GDPR regulations, while enabling you to exercise your legitimate interest in understanding how your website is being used.

Prerequisites

Before you start, make sure you have the following ready:

Installation Guide

  • In your Shopify Admin, click Settings at the bottom left.
Open the Shopify Settings from the bottom left corner
  • Select Customer events in the left-hand menu.

  • Click Add custom pixel.

Add a custom pixel under Customer events
  • Enter a name for your pixel, for example: Scoby Analytics.

  • Copy and paste the following code into the Code field.
    Replace <WORKSPACE_ID> with your actual Workspace ID from Step 1.

(function () {
  const workspaceId = "<WORKSPACE_ID>";

  window.scoby = window.scoby || function () {
    (window.scoby.q = window.scoby.q || []).push(arguments);
  };
  window.scoby('init', { autoLogging: false });

  analytics.subscribe('page_viewed', (event) => {
    const url = event.context.document.location.href;
    const referrer = event.context.document.referrer;
    window.scoby('logPageView', { url, referrer });
  });

  analytics.subscribe('checkout_completed', (event) => {
    const amount = event.data.checkout.totalPrice.amount;
    const currency = event.data.checkout.currencyCode;
    const goal = "Purchase";
    window.scoby('logConversion', { goal, amount, currency });
  });

  const script = document.createElement('script');
  script.src = `https://${workspaceId}.s3y.io`;
  document.head.append(script);
})();
Save and connect your new Scoby Analytics pixel
  • Click Save, then Connect to activate the pixel.

That’s it 🎉

Scoby Analytics will now start collecting anonymous visit and conversion data from your Shopify storefront. You can view your live statistics in the Scoby Analytics Dashboard shortly after installation.

Previous
Tilda

Please note:Scoby does not provide legal advice. The information provided in this documentation is for general informational purposes only and does not constitute legal consultation. You should always consult your legal counsel or Data Protection Officer (DPO) to assess how applicable laws and regulations apply to your specific situation. If your DPO or legal team has questions about Scoby Analytics, they can contact us. We’re happy to provide detailed technical explanations.