Stape
Search
Try for free

[Stape Webinar] Server-side tracking done right with Stape: top features overview

Updated
Dec 19, 2024
Published
Nov 28, 2024

Learn best practices on how Stape can boost your server-side tracking setup!

Webinar agenda

00:00 - Intro

03:25 - GEO headers power-up

08:04 - sGTM Preview header config power-up

10:30 - Custom Loader power-up

16:02 - Cookie Keeper power-up

24:12 - Stape Store

32:51 - Logs

39:26 - Monitoring

42:06 - Stape Analytics

44:52 - Q&A session

By the end of this webinar, you will learn how to:

  • boost data quality
  • reduce data loss by bypassing ad blockers and ITP restrictions
  • gain richer and more accurate data
  • achieve more accurate conversion attribution
  • debug and monitor your server-side setup effectively
  • measure the impact of server-side tracking
  • and much more!

For Whom:

  • Those just starting or considering their journey with Stape and looking to set up server-side tracking the right way.
  • Experienced Stape users who want to unlock the platform's full potential and advanced features.

Speaker:

Common questions and answers

1. We use Google and Facebook tracking with Stape in the EU along with Cookiebot, but our reporting rates are 20% for Google and 80% for Facebook. Is that normal? Will the new tracking features improve this?

There’s no set average, but you should be tracking 90% or more of users who accept cookie consent — ideally close to 100%. Your current rates suggest there might be an issue with the implementation. Check that your consent setup is correctly configured and that consent signals are being captured at the right time. The significant difference between Google and Meta tracking likely points to a consent implementation issue.

Yes, absolutely. You must respect your users’ privacy choices at all times, whether you’re using a standard or custom loader, and regardless of whether the tracking is client-side or server-side.

3. Does an ad blocker affect the client ID values in GA4, causing some values to show as "not set"?

Most likely not. Ad blockers typically block specific network calls with known patterns, but they generally don’t manipulate client ID values. If you’re seeing "not set," it’s likely due to other issues. We’ve written an article about the most common causes of "not set" traffic sources in GA4.

4. How can I pass fbclid through Stape Store?

You can retrieve the fbclid value from the cookie and write it using the Stape Store Writer Tag. You can read more about our solution here.

However, you’ll need an identifier to associate the correct fbclid value with the right user, such as an email or user ID.

If you’re considering using Stape User ID for this purpose:

- It depends on when you plan to fetch data from the store.

- If you save the data on a website but need to retrieve it via a webhook, Stape User ID will not work in this scenario.

5. Are there any advantages to using Stape's Global CDN if my DNS is already using a CDN?

Ideally, using your own CDN or a same-origin setup is the best approach, as this allows you to proxy all traffic and match your website’s network address. This setup helps bypass Safari’s ITP cookie restrictions effectively.

Stape's CDN, however, offers the benefit of loading the container from a location closer to your users, which is particularly advantageous if your audience is spread across the globe. This can also have a positive impact on page speed.

7. Should I use "JavaScript Managed" or "Server Managed" cookies in server GTM client for data tracking?

Best practice is to use Server Managed cookies. This is one of the key benefits of server-side tracking, as it helps protect cookies from ITP restrictions.

However, if you're tracking GA4 eCommerce SST and notice many "Unassigned" placeholders in GA4 after selecting Server Managed cookies, it likely indicates an issue with your tag setup. Here's a guide to potential causes and fixes.

Our WordPress plugin sets a master cookie, which is a more reliable approach for cookie restoration than the Stape User ID power-Up. There’s no need to use both—simply use the Cookie Keeper based on the master cookie for the best results.

We’ve recently published a plugin for Prestashop! While it’s not yet visible in the Stape admin, you can find it on the Prestashop marketplace. Here's a guide on how to install and use it.

Alternatively, for any other platform, you can generate the loader code in the Stape admin and manually paste it into the section of your website. No additional configurations are required beyond this.

10. How long do cookies last with the full Stape setup for Google and Facebook?

The cookie lifetime depends on the platform's recommendation. For example, Facebook's fbc (fbclid) cookie typically lasts 90 days.

However, with Stape’s setup, you can extend cookie lifetimes up to the maximum possible duration of 400 days, depending on your configuration.

11. If I use a custom pixel in Shopify to enable the dataLayer, will the GTM code with a custom loader work in the sandbox environment?

Yes, the custom loader works in the sandbox environment, and you can verify this in your browser's network tab. However, Cookie Keeper will not work due to Shopify's restrictions.

12. Can we calculate and report dynamic margins based on item cost and sale pricing?

Yes, absolutely! We even have a detailed guide on how to set it up

While there’s no one-click solution or power-Up for this, it is possible. You can use a variable to read data from Google Sheets and a tag to write that data to the Stape Store. Both tools are available in the sGTM template gallery.

14. Is it possible to use the BigQuery API to export all GA4 request data? Can it handle high-traffic volumes effectively?

Yes, you can report to BigQuery directly from your sGTM, sending all would-be GA4 data to BigQuery without relying on the GA4 export feature. This approach is highly scalable and can handle high-traffic volumes effectively.

15. Does storing request and response logs count as requests, thereby increasing the number of container requests?

No, enabling logging in the tag does not add to the number of requests.

Yes, the Cookie Keeper will work as long as you correctly configure the master cookie and generate a custom loader with the correct master cookie name. Proper setup is essential for it to function properly.

17. Are there any benefits to using Gateways over sGTM? If not, what do you lose by using Gateways instead of sGTM?

The main benefit of Gateways is the simplicity—they require little to no configuration or implementation.

With sGTM, you can achieve everything (and more) that Gateways offer, but it requires manual setup and explicit configurations. Gateways, on the other hand, automate much of the process, saving time and effort while providing a more user-friendly solution.

18. Could you do a quick recap of which power-ups do not increase costs and which ones generate more requests?

Power-ups like Custom Loader, Cookie Keeper, Stape Store, and File Proxy generate additional requests.

19. I copied the new Custom Loader script with the GA4 ad block bypass, but in the GTM browser debug, I no longer see the GA4 and GADS tags. Is this normal?

Yes, this is normal. The purpose of the bypass is to mask GA4 requests from external observers. If you’re receiving those events in your server container, everything is working as expected.

Based on your description, this likely stems from issues with consent implementation, particularly during first-touch interactions.

Ad platforms, like Google Ads or Facebook, attribute events using click_id cookies (e.g., gclid, fbclid) or user data, which remain tied to the user even if source/medium data is unavailable.

GA4, on the other hand, relies on UTMs or the referrer from the first touch of the session for channel attribution. If the first-touch data is not being captured correctly - possibly due to how consent is configured - GA4 won't be able to attribute that session accurately.

Our recommendation is to run a thorough debug session to replicate first-touch scenarios, including initial interactions with the consent banner. Ensure that first-touch data (UTMs, referrer) is captured and stored when the user accepts tracking. This should help identify and resolve the issue.

21. Does the GA4 ad-block bypass encode the payload? If so, do I need to handle decryption on the server?

Yes, the GA4 ad-block bypass encodes the payload. However, you don’t need to handle decryption yourself. Events will arrive at the server container in a readable format, ready for processing as usual.

22. What could cause high unassigned traffic with a server implementation?

We have an article that covers the most common causes and solutions in detail.

23. Can we use the User ID power-Up for user ID tracking in Google Analytics?

Yes, you can. However, keep in mind that the Stape User ID is persistent only as long as the user doesn’t switch devices, browsers, or networks.

These two serve different purposes and shouldn’t be directly compared. The Cookie Extender tag operates within the same cookie limitations as your other tags.

Cookie Keeper, on the other hand, is not a tag—it executes outside the container and is designed specifically to bypass Safari’s ITP restrictions. If your goal is to extend cookie lifetime on Safari, Cookie Keeper is the better option.

25. What is the most common webhook use case, and can it be used for tracking on platforms like Meta, which allow conversion attribution without client ID cookies?

Webhooks are most commonly used for scenarios where online tracking isn’t possible, such as offline conversions, subscription payments, or other server-side actions.

For platforms like Meta, webhooks can still play a role in tracking and attribution. Attribution works effectively when user data (e.g., email, phone number) is included in the payload of the webhook events, allowing platforms to match conversions to the correct users and campaigns.

26. Is it possible to use the Stape User ID power up to track users across different domains?

No, it is not possible. The Stape User ID power up is not consistent across different domains, as it is limited to first-party tracking.

27. I switched my GA to server-side and now see 10-15% of (not set) source/medium. My setup includes S2S with Payment Gateway webhooks to SGTM and Firestore for parameter enrichment. Debugging shows the implementation seems correct. Any suggestions?

We have an article that covers the most common issues related to (not set) source/medium in GA4. It includes potential causes and solutions to help you troubleshoot further.

No, you won’t be able to set a cookie in the sandbox (Shopify's customer events). For server-side tags to set cookies properly, the client-side GTM needs to run in the parent window, not in Shopify's sandbox.

Our advice is to use Stape's Shopify app, which embeds GTM in a way that creates a functional dataLayer and allows your cookies to be set as expected.

Yes, Cookie Keeper can be used with any ID, including logged-in User IDs, as long as the ID is exposed on the front end through a cookie, local storage, DOM element, or a JavaScript variable.

30. I have a client with multiple subdomains, each with their own GTM and GA4. Can I use a single sGTM container to route requests to the appropriate destinations?

Yes, absolutely! This is a common and effective approach for managing multiple subdomains.

These serve different purposes and shouldn’t be directly compared. The Cookie Extender operates within the same cookie limitations as other tags in your container.

On the other hand, the Cookie Keeper is not a tag—it works outside the container and is specifically designed to bypass Safari’s ITP restrictions. If your goal is to extend cookie lifetime on Safari, the Cookie Keeper is the better option.

32. I often use Stape User-ID as 'external_id' for platforms like Facebook Pixel and only send the actual user ID to GA4 after the user logs in. Is this approach fine?

Yes, this approach is fine. As mentioned in the webinar, you just need to understand the nature of the Stape User-ID and the conditions under which it may change. Once you’re aware of its limitations, you can adapt and use it according to your needs.

33. Is the Meta Conversions API Gateway needed when server-side tracking with GTM is already set up?

No, they are standalone products. Using both is redundant, as either solution can independently handle Meta’s server-side tracking requirements.

34. I’ve pasted the custom loader code into the header of the theme.liquid file instead of using the Stape app. Will it work the same way?

Yes, it will work the same way as long as the code you’ve pasted is correct and properly configured.

35. What if I’m using a custom pixel to enable the dataLayer? Will that work?

Yes, using custom pixels on Shopify is one of the primary ways to implement a proper dataLayer. In fact, our app relies on the same approach. However, the exact setup may depend on your specific context and requirements.

36. I’m using the Stape business plan for multiple clients and want one Stape container to handle multiple client domains. In server GTM, I’m differentiating domain tags based on the Host value, like host=sst.example.com. Will this work?

Yes, this will work. Mapping destinations by hostname is one of the most straightforward and effective approaches for handling multiple domains in a single container.

37. Is the only function of Stape's CDN feature to load GTM faster? And is the purpose of 'own CDN' to host it on the same IP?

Stape Global CDN allows the container to be downloaded from a location closer to the user's physical location, improving load times.

'Own CDN' is one method to ensure the server container and website share the same IP range, which can help bypass certain tracking restrictions, such as Safari's ITP.

Try Stape for all things server-sideright now!