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.

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:
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.
Used: User ID, Geo Headers, and User Agent Info.
Lesson learned: fixing underreporting isn't only about accurate numbers; it reveals hidden growth opportunities and protects your data from invalid traffic.
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:
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.
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.
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.

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:
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.
Comments