Stape
Search
Contact salesTry for free

Beyond the basics: unexpected server-side tracking wins from real projects

Liudmyla Kharchenko

Liudmyla Kharchenko

Author
Published
Nov 21, 2025

Most server-side tracking setups follow a familiar pattern: data accuracy improves, cookies behave as expected, and the implementation quietly works in the background. But agencies know that not every project fits neatly into that pattern. There are always those cases that stand out, the ones that force you to think harder and design a solution that goes well beyond the standard approach.

At Stape, we see these challenges frequently. They push us to experiment with new methods, automate complex workflows, uncover hidden insights, and ultimately deliver measurable results for clients. These situations are often where the real potential of server-side tracking reveals itself.

In this article, we explore some of our favorite out-of-the-box server-side tracking cases and the lessons we learned from them. From tracking marathon runners to managing dynamic coupon flows to identifying bots with greater precision, these examples highlight what is possible when conventional setups are not enough.

Server-side tracking precision illustration
Server-side tracking precision illustration

Case 1: Cleaning up underreporting and bot traffic to make real growth visible

One eCommerce client approached us with a familiar challenge: their ad platforms were underreporting conversions due to browser restrictions, consent limitations, ad blockers, and, as we later discovered, a large chunk of bot traffic coming from a single country. On paper, their performance looked acceptable, but nearly 20% of real conversions were missing while invalid sessions polluted the attribution.

To fix both problems, we implemented a manual server-side CAPI setup using Stape and Google Tag Manager, with additional help from our own power-ups:

  • A server-side container on Stape for privacy-compliant data processing.
  • A Custom Loader delivering scripts via the client's domain to bypass blockers.
  • The Stape Conversion Tracking CRM apps to enrich the data layer and streamline deployment.
  • Our internal power-ups to automate validation, traffic scoring, and payload enhancement.

Once the foundation was in place, we focused on diagnosing the underreported traffic. With User ID, Geo Headers, and User Agent Info applied, we were able to evaluate every incoming server-side request. This allowed us to detect a clear pattern: a large volume of bot traffic originating from one specific country and using identical browser signatures.

We configured server-side variables to classify those requests and block them directly on the server before they could distort analytics, trigger unnecessary events, or consume budget. The result was a cleaner dataset and far more reliable attribution.

Outcome: higher signal quality, elimination of bot traffic, and the confidence to scale spend with verified, high-quality conversions.

Lesson learned: fixing underreporting isn't only about accurate numbers; it reveals hidden growth opportunities and protects your data from invalid traffic.

Case 2: Improving speed and tracking at the same time

A client came to us with a tracking challenge: while online leads from their website were tracked correctly, offline leads, such as those generated after phone calls or manual CRM updates, weren't showing up as conversions in marketing platforms. These leads reached the CRM with only contact details, missing all marketing attribution data.

To solve this, we implemented a custom workflow powered by the Stape Store:

  • When a user filled out a form on the website, we tracked it as a standard online lead and simultaneously stored the user's cookies, IP address, and User Agent in the Stape Store.
  • Once the lead entered the client's CRM, the client could requalify it: for example, marking it as a Qualified Lead or WON.
  • The CRM then sent a webhook containing the lead's email to Stape.
  • We used that email to look up the stored data in Stape Store, and when a match was found, we merged the previously saved marketing data with the webhook payload.
  • The combined dataset was then sent to the appropriate marketing or analytics platform, making sure the conversion was correctly attributed.

Outcome: this process allowed us to connect offline actions back to the user's original online session, giving the client a complete picture of their customer journey, from first interaction to final conversion.

Used: Stape Store.

Lesson learned: server-side tracking can help connect offline and online actions of users.

Case 3: Automating data quality checks

A client needed a way to accurately track and distinguish between coupons applied to an entire order and those applied to specific products. The goal was to send complete and structured coupon data to analytics platforms, both at the order and item level.

When a purchase occurred on the client's website, we used a Data Tag to send transaction details to the server. On the server, we applied our JSON Response tag combined with an HTTP Lookup Variable to make a request to the Shopify Admin API using the transaction ID. This allowed us to retrieve detailed information about all coupons used in the order,  including whether they were applied to specific products or to the entire purchase.

Once the API returned the data, it was passed back to the Data Tag in the web container, which then triggered a dataLayer push containing the coupon details. We used this push in a trigger group together with the standard purchase trigger, ensuring the purchase tag only fired once all coupon data was available. The combined data from the dataLayer was processed with JavaScript, enriching the "items" array with the corresponding coupon codes and defining the general "coupon" value for the order.

To extend this setup, we also used Stape Store and our Transaction Checker (a variable built on top of Stape Store). This component stores both the purchase ID and coupon ID, ensuring consistent data across systems. When a coupon is saved in Stape Store and later used in a purchase, the transaction data is automatically matched and sent with the correct coupon information.

Outcome: consistent data across systems.

Used: Stape Store, Transaction Checker, JSON Response tag and HTTP Lookup variable.

Lesson learned: automating coupon tracking at both the order and item level ensures more accurate attribution, cleaner reporting, and deeper insight into which discounts truly drive conversions.

Case 4: Tracking marathon participants and building custom analytics

A sports event client needed a comprehensive way to track marathon participants, including their performance, event locations, background in previous races, and results from new runs, and to visualize all this data in one place.

All participant information was already available in the dataLayer, including details such as t-shirt size, event location, race timing, and the finish time of each runner. Using the Data Tag, we collected all these parameters directly from the data layer and transferred them to BigQuery.

There, we created a custom data schema with all the fields the client needed, fully tailored to their event tracking requirements. The schema could be as detailed or as minimal as needed, depending on the reporting goals.

Once the data was structured in BigQuery, the client could easily generate custom reports and performance dashboards, analyzing results by location, category, or any participant attribute.

Outcome: using Stape products, we centralized all the clients' data in BigQuery, enabling them to independently create custom reports and build a performance dashboard in whatever format they needed.

Used: Stape Data Tag, BigQuery.

Lesson learned: with flexible server-side data collection and custom schemas, even complex offline events like marathons can have real-time, data-driven analytics at scale.

Stape out-of-the-box solutions illustration
Stape out-of-the-box solutions illustration

Ready to test these results with your clients?

For agencies, reliable tracking, even in the most unusual or complex cases, leads to stronger results and happier clients. This is exactly why Stape built tools tailored for teams managing multiple projects. Our goal is to give agencies everything they need in one place, including the flexibility required for non-standard or advanced setups.

With the Agency account, you can keep all client setups in one dashboard, manage access, and handle billing separately for each. The Partner Program lets you earn a lifetime commission from every hosted client, so the projects you build today keep bringing value in the future.

You'll also get practical tools to make every setup smoother:

  • Website Tracking Checker to review tracking setup quality and find missed events.
  • The Setup Assistant will generate ready-to-use GTM templates.
  • Power-ups like Cookie Keeper and Custom Loader for better tracking performance. Apart from these ones, Stape has a lot of awesome power-ups that can help you make your tracking better and easier.
  • Transparent pricing and simple onboarding so that you can focus on results, not logistics.

Want to see how it all works? Create your free Agency account and start testing advanced server-side setups with your next client.

And if you have handled your own unusual or out-of-the-box tracking cases, we would love to hear about them. Share your experience in the comments; it might inspire the next creative solution.

Want to start on the server side?Register now!

author

Liudmyla Kharchenko

Author

Liuda is a Content Manager at Stape, writing about server-side tracking and tech that simplifies work. She helps businesses improve data accuracy, find the right customers, and build connections.

Comments

Try Stape for all things server-side