Shopify Server-Side Tracking Setup

    We set up Shopify server-side tracking with GA4, Google Tag Manager and the Meta Conversions API. It is built for brands selling in the EU whose numbers in Shopify, GA4 and the ad platforms do not match. You end up with tested events, consent passed to every tag, and documentation that explains each difference.
    White football with black lines lying on a white marking on dark asphaltFreshly roasted coffee beans being stirred in the cooling tray at the Blankroast roasteryWoman in profile with voluminous blonde curls, a hand spraying hair spray from above.Hand holding a vitamin D dropper bottle above a green quilted throw on a sofa.Glass ampoules moving through a filling line in Heel's productionWoman applying PHARMOS NATUR facial spray in warm sunlight.Hands inspecting a stone disc and lifting a block of wood from a stack in the Holzkern workshopWoman with red curls holding an olive leather shoulder bag towards the camera in front of a yellow wallTwo More Money More Love outfits in motion: pink check jacket and white jersey with the number 10Male torso in black boxer briefs with a gold CR7 waistband on a light sofaYoung man in a white Deputy T-shirt with mountain print in front of a wooden chaletModel turning in a dark green SMILODOX set of bra top and leggings against a white backgroundTable tennis bat with red rubber standing on a dark surface in a pool of lightLayered pumpkin latte topped with cream, cinnamon sticks and pumpkins

    Brands we work for

    MYCR7 logo
    CAT logo
    O'Neal logo
    FRITZ! logo
    Groundies logo
    Gusti Leder logo
    Smilodox logo
    Sirocco logo
    Olakala logo
    Deputy logo
    Bikemailorder logo
    Prepmymeal logo
    Freiluftkind logo
    Bloomingloft logo
    Heel logo

    What is Shopify server-side tracking?

    With server-side tracking, conversion data travels from a server to Meta, Google and other platforms and not from the buyer's browser. The events in the store remain the source. On Shopify they come from Customer Events, pass through a Google Tag Manager server container, and reach the platforms from there.

    A complete setup has five parts: the events in the store, a Tag Manager with a clean data layer, GA4 with ecommerce events from product view to purchase, the server-side handover to Meta and Google Ads, and consent logic that passes the consent status to every tag. We own all five and define before implementation which event carries which parameters.

    NICCOS has been a Shopify Plus Partner since April 2022 and holds 19 reviews with a 5.0 rating in the Shopify Partner Directory. The setup works on the smaller Shopify plans as well. The difference is in the checkout, which the page on Shopify checkout describes.

    What does selling in the EU mean for tracking and consent?

    In the EU, measurement starts with consent. A buyer in Germany has to agree before analytics and advertising tags may run, and a large share of the setup is making sure that a refusal is respected by every tag. Brands that bring a setup from another market often find that it fires before the banner has been answered.

    Server-side tracking does not change that duty. An event sent from a server needs the buyer's consent just as a browser pixel does. We pass the consent status from the consent management platform through Consent Mode v2 and Shopify's own privacy settings to each tag. Without consent, nothing is sent.

    Consent and tracking are planned together, because a measurement plan without consent logic falls apart in operation. The page on consent and privacy describes the consent side. We give no legal advice. The legal assessment stays with your data protection officer or counsel.

    What did server-side tracking change for Olakala?

    We have supported Olakala as a Shopify partner for several years. Its tracking had grown over time and was largely client-side. Browser restrictions, iOS updates and ad blockers caused data loss, and conversions reached Meta and Google with gaps. For important budget decisions the team could not fully trust the data.

    We rebuilt the setup in full. Google Tag Manager became the central place for tags, triggers and events. GA4 was configured with the relevant ecommerce events, Meta was connected server-side through the Conversions API, and server-side tracking was set up for Shopify Plus. According to the Olakala case study, tracked sessions were 30% higher than with the previous setup. The figure describes this one project, and we promise no value for yours.

    For MYCR7, tracking was part of building the store. The operator of the official CR7 online stores had no shop system of its own before. With mycr7.eu and mycr7.ch on Shopify Plus came a setup of Meta Pixel, GA4 and server-side tracking for two markets and two currencies. The MYCR7 case study has the details.

    Why do Meta and Google report fewer purchases than Shopify?

    Because the classic pixel runs in the buyer's browser and is blocked there in four places. The order happens and is in Shopify. It does not reach the ad platform.

    Apple's App Tracking Transparency restricts attribution in apps. Ad blockers stop the pixel from loading at all. Safari and Firefox shorten cookie lifetimes, so returning visitors are counted as new users. And a buyer who declines consent is rightly not measured.

    The effect is on your budget. Meta and Google steer campaigns by the purchases they see. If part of them is missing, they optimise towards a distorted picture, and reported ROAS sits below the real one. The more budget depends on those numbers, the more each mismeasurement costs.

    How does the Shopify checkout change tracking?

    In the Shopify checkout, tracking scripts do not run freely in the page code. Shopify executes them as Customer Events in a sandboxed environment. A tag that tries to read elements of the page does not work there. Events have to be built from the data Shopify provides at that point.

    That is why tracking often gets lost in a migration. In the old system it lived in plugins and templates and was never written down. Before the move we record which events reach GA4, Google Ads and Meta today and rebuild them in Shopify. Test orders run through every payment method before go-live. The page on Shopify migration describes the full course.

    What does server-side tracking not solve?

    It does not make GA4 and the Shopify admin match. GA4 measures less than the admin because buyers without consent are missing. GA4 is suited to trends and channel comparison. For accounting, Shopify counts. What matters is that you know the difference and can explain it.

    It does not fix a funnel problem either. If your measurement is sound and too few people still buy, the cause is in the offer or the page structure. Then we start with conversion optimisation.

    Where is data lost in the browser?

    Client-side tracking depends on the buyer's browser. In these four places the event no longer arrives.

    • App Tracking Transparency

      Since iOS 14 Apple has restricted attribution in apps. The order happens and does not fully reach the ad platform.

    • Ad blockers

      A blocked pixel does not load. No event is created in the browser for that session.

    • Short cookie lifetimes

      Safari and Firefox limit how long cookies live. Returning visitors are counted as new users.

    • Wrong ROAS

      Missing conversions lead to wrong budget decisions. The damage of each mismeasurement grows with the budget.

    What does server-side tracking achieve?

    With server-side tracking, conversion data goes from the server to Meta, Google and other platforms and not from the buyer's browser.

    • More purchases attributed

      The platform receives the event even when the pixel was blocked in the browser and can assign the purchase to the campaign.

    • Independent of the browser

      The event leaves the store through your server. Ad blockers and cookie lifetimes do not apply at that point.

    • Campaigns with fuller signals

      Meta and Google steer by the purchases they see. The fuller the signal, the closer the steering is to reality.

    Which tracking tools do we use?

    • Google Tag Manager

      Client-side and server-side containers as the central control.

    • GA4

      Event-based ecommerce tracking through to the purchase.

    • Meta Conversions API

      Server-side events for more reliable conversion signals.

    • Shopify Customer Events

      The source of events in the store and checkout, with consent passed through.

    How does a tracking project with us run?

    1. Take inventory

      We record which tags, pixels, apps and events are active in the store. In setups that have grown over time the list is longer than the team expects.

    2. Set the numbers side by side

      Orders in Shopify, events in GA4 and reported conversions in Meta and Google Ads are placed next to each other. The difference shows where signals are lost.

    3. Define events and parameters

      Before implementation we define what is measured along the funnel and which parameters each event carries.

    4. Implement with consent logic

      Tag Manager, GA4 and the server-side connections are built, and the consent status is passed to every tag.

    5. Test and document

      Every event is cross-checked and recorded. With this documentation, differences stay explainable later.

    • Table tennis bat with red rubber standing on a dark surface in a pool of lightFuturespin
    • Man in a white T-shirt and wide jeans sitting on a railing in the stadium standsOlakala
    • Two More Money More Love outfits in motion: pink check jacket and white jersey with the number 10More Money More Love
    more tracked sessions at Olakala with server-side tracking on Shopify Plus
    +30%
    Shopify Plus Partner since this date, as listed in the Shopify Partner Directory
    April 2022
    reviews with a 5.0 rating in the Shopify Partner Directory
    19

    Is a tracking setup your next step right now?

    Then you are starting in the right place

    • Platform and store disagree

      Meta and Google report far fewer conversions than were ordered in Shopify, and ROAS looks worse than it is.

    • You are launching in the EU

      Your existing setup was built for another market and has to respect consent before any tag fires.

    • The tracking has grown over time

      Tags, pixels and events were added over the years. Nobody on the team can still say what triggers which event.

    • Your setup is purely client-side

      Ad blockers, App Tracking Transparency and short cookie lifetimes hit exactly there.

    Then something else will help you more

    • Consent is unresolved

      Without consent management and Consent Mode v2 you build measurement on consent that does not hold. That comes before tracking.

      To consent & privacy
    • The numbers are right, revenue is not

      If your measurement is sound and too few people still buy, the problem is in the funnel.

      To CRO & conversion optimisation
    • Your setup is new and tested

      If the events are documented and you need support and small adjustments, you do not need a new setup.

      To support & maintenance

    How can we work together on tracking?

    You want to know first what your setup measures, need a complete rebuild, or want to measure server-side. That gives three shapes of collaboration.

    Results from client projects

    Every figure appears in the case study, where you can verify it.

    View all projects

    Brands we build for on Shopify.

    Groundies, MYCR7 and Gusti Leder are three of thirteen projects we have published with starting point, delivery and result.

    Frequently asked questions about Shopify server-side tracking

    Does server-side tracking bypass consent?

    No. An event sent from a server needs the buyer's consent as well. We pass the consent status to every tag, and nothing is sent without consent.

    Do we need Shopify Plus for server-side tracking?

    No. Server-side tracking works on every Shopify plan, and Shopify Customer Events are available on all plans too.

    Can we keep our existing GA4 property and Meta pixel?

    Usually yes. The property and the pixel stay, and the way events reach them changes. We check beforehand whether event names and parameters in the existing setup are consistent enough to keep the history comparable.

    Why do GA4 and the Shopify admin differ?

    A difference is normal. GA4 only measures buyers who have consented and whose browser allows tracking. Shopify counts every order. GA4 is suited to trends and channel comparison, and for accounting Shopify counts.

    Does server-side tracking replace Google Tag Manager?

    No. We use a client-side and a server-side container together. The data layer in the store remains the source, and the handover to the platforms runs through the server.

    What was the result of the Olakala project?

    After the server-side rebuild on Shopify Plus, tracked sessions at Olakala were 30% above the previous setup. The figure comes from the case study and applies to that project.

    How do you make sure the setup is correct?

    Every event is cross-checked and documented. We set orders in Shopify, events in GA4 and the conversions reported by the platforms side by side and explain each difference.

    Which purchases do Meta and Google not see?

    We set orders in Shopify, events in GA4 and reported conversions side by side and show you where signals are lost. The first assessment is free and gives you an initial evaluation, not a full audit or a worked-out concept.

    NICCOS

    The page could not be loaded.

    Please reload the page. If an update has just gone live, this will load the latest version.