About Tracking

Ad Platform Tracking

Meta Pixel + CAPI TikTok CAPI LinkedIn CAPI Snapchat CAPI Pinterest CAPI Quora Pixel Bing + UET Tag

Google Ecosystem

Google Ads Tracking GA4 Setup & Audit Google Tag Manager

Advanced Solutions

Server-Side Tracking Looker Studio Offline Conversion
Case Studies Blog Free Checklist Book Free Audit →

Shopify stores have a specific challenge with server-side tracking: Shopify’s checkout is hosted on Shopify’s servers (checkout.shopify.com or your custom domain), which limits how much custom code you can run on checkout pages. This affects how you implement server-side tracking and which approach works best for your setup.

The Three Approaches to Shopify Server-Side Tracking

Approach 1: Meta CAPI via Shopify’s Customer Events (Simplest)

Shopify natively supports Meta Conversions API through the Customer Events pixel system. When you set up the Meta sales channel in Shopify and configure the Meta Pixel, Shopify handles the server-side CAPI event forwarding automatically.

What it does: Shopify sends purchase events to Meta CAPI server-side, including hashed customer email and phone. Deduplication is handled automatically.

Pros: No technical implementation required. Works out of the box through the Meta & Shopify integration. Covers the most important use case (Meta purchase events).

Cons: Only works for Meta. Does not cover TikTok, Pinterest, Snapchat, or Google server-side events. Limited control over what data is sent.

Best for: Shopify stores primarily advertising on Meta that want reliable CAPI without technical complexity.

Approach 2: Server-Side GTM with Shopify Webhook or Customer Events

More comprehensive server-side tracking can be implemented using server-side GTM, with Shopify’s Customer Events or Order Webhooks as the data source.

Using Customer Events: Shopify’s Customer Events (formerly Shopify Pixels) allow custom web pixel implementations. A custom pixel can send event data to your ssGTM server, which then forwards to all configured platforms (Meta CAPI, Google Measurement Protocol, TikTok Events API).

Using Shopify Webhooks: Shopify can send an HTTP POST to your server when an order is created (orders/create webhook). Your server receives the order data and sends server-side events to ad platforms. This approach is completely independent of the browser.

Best for: stores advertising on multiple platforms that need multi-platform server-side coverage.

Approach 3: Dedicated Shopify App or Third-Party Integration

Several Shopify apps handle multi-platform server-side tracking:

Pros: lower technical complexity than building your own ssGTM infrastructure. App handles Shopify-specific checkout challenges.

Cons: monthly app cost ($50–300/month). Less customisation than a bespoke ssGTM setup. Dependency on a third-party app.

Best for: stores that want managed multi-platform server-side tracking without the technical overhead of ssGTM.

The Shopify Checkout Limitation and How to Handle It

Shopify’s checkout pages (from cart through payment) use Shopify’s own infrastructure. Custom JavaScript is restricted. The Customer Events system (Shopify Pixels) is designed specifically for this: it provides a sandboxed environment where you can define web pixels that fire on checkout events, including on the thank-you page.

For most server-side implementations, the purchase event is the critical one to capture reliably. Customer Events or Order Webhooks both handle this:

Implementation Steps for Webhook-Based Server-Side Tracking

  1. Create a webhook endpoint on your server (or use a serverless function on AWS Lambda, Google Cloud Functions) that accepts Shopify’s order payload
  2. Set up the webhook in Shopify: Settings → Notifications → Webhooks → Add webhook → Event: Order creation, URL: your endpoint
  3. Process the webhook payload: extract order total, order ID, customer email, customer phone, line items
  4. Hash customer data: SHA256 hash the email and phone before sending to any ad platform
  5. Send events to ad platforms: HTTP POST to Meta CAPI, Google Measurement Protocol, TikTok Events API with the formatted event payload
  6. Set up deduplication: include the Shopify order ID as the event_id so platforms can deduplicate with browser-side events

Testing Your Server-Side Implementation

After implementation:

Get Expert Shopify Server-Side Tracking Setup

Server-side tracking for Shopify requires understanding both the Shopify platform constraints and the API requirements of each ad platform. The implementation details differ for each store’s tech stack and platform mix.

Book your free Shopify tracking audit here and we will design the right server-side tracking architecture for your specific Shopify store and advertising platforms.

Leave a Reply

Your email address will not be published. Required fields are marked *