← Back to all blogs← Previous article

The complete guide to Shopify pixel tracking in 2026

What Shopify DTC brands need in 2026. Client-side versus server-side, consent, EMQ, and the right setup per ad platform.

The state of Shopify tracking in 2026

Shopify tracking changed more in the last three years than in the previous decade. iOS 14, GDPR enforcement, cookie deprecation, and server-side APIs changed what works. This guide covers how to set tracking up correctly in 2026.

How Shopify tracking works

When a customer visits your store, tracking happens in two ways. Client-side tracking uses JavaScript pixels in the browser. Server-side tracking uses Shopify webhooks and API calls from your backend. In 2026 you need both. Client-side alone misses 30 to 40% of events. Server-side alone misses browser-specific signals. Dual-dispatch is the current best practice.

The three ways to install tracking on Shopify

ScriptTag API is legacy. It injects JavaScript into your theme, does not load on checkout unless you are on Shopify Plus, and hurts Lighthouse scores. App Embed Blocks are better and survive theme updates, but still miss checkout. Shopify Web Pixels API is the one to use. Introduced in 2022, Web Pixels run sandboxed on every page including checkout, on all Shopify plans. They use analytics.subscribe() for standard events. That is the method Layer Insights uses, and the one Shopify recommends for new apps.

Web Pixels run on checkout on every Shopify plan, not only Plus. ScriptTag does not.

Which events to track

For most Shopify DTC brands the events that matter are PageView, ViewContent, AddToCart, InitiateCheckout, and Purchase. Purchase trains the algorithm and calculates ROAS. Skipping upper-funnel events is a common mistake. Without ViewContent and AddToCart, Meta and TikTok cannot optimize for likely buyers, especially in learning or at low purchase volume.

5
Core events
6
Ad platforms from one install
8.0+
EMQ health line

How to verify your tracking is working

Each platform has a test events tool. Meta Events Manager shows test events in real time. Google Tag Assistant verifies Enhanced Conversions. TikTok has Pixel Helper. After server-side setup, send a test purchase and confirm it appears on all platforms within minutes. The most reliable ongoing check is EMQ. A stable score above 8.0 means tracking is healthy. A drop is an early warning, before ROAS moves.

Layer Insights app

See the same decision in your own commerce data

Open Layer Insights →
Read next

Server-side tracking explained: why client-side alone is no longer enough

Continue reading →