Solutions
User Agent Info
Nov 13, 2026
Written by
Liudmyla Kharchenko
User IDs can be lost in sGTM events due to cookie blocking, cross-domain tracking issues, session expiry, misconfigurations, network errors, and privacy regulations.
In this article, we will review Stape's solution for this problem: User ID power-up.
By assigning a unique user ID to each visitor, you can accurately track and link user actions across sessions and, with the Cross-domain ID option, across multiple domains. This provides a more complete picture of user behavior and improves the precision of your marketing campaigns.
This can be done automatically with the help of the User ID power-up. The User ID power-up adds a Stape-generated user ID (X-Stape-User-Id) to the request header for every incoming request within the server Google Tag Manager.
User ID consists of a hash of:
If your users move between several domains, for example, from your main website to a checkout on a separate domain, you can also enable the Cross-domain ID option. It adds an additional user ID (X-Stape-Cross-Domain-Id) to the request header. This ID is generated from the same parameters as the standard User ID, but without the hostname.
Since then, the same user gets the same Cross-domain ID on every domain that sends requests to your server container. This lets you link user actions across multiple domains. The standard X-Stape-User-Id keeps working as before, so you can use both IDs at the same time.
With Stape's User ID power-up, you get:
1. Register or log in to your Stape account to set up and use the power-up. You can use the power-up for free regardless of your Stape plan.
2. Go to Stape admin → Power-ups → select User ID.


3. Turn on the toggle near User ID and click Save changes. The power-up will add a Stape-generated user ID (X-Stape-User-Id) to the Request Header for each Incoming Request inside the server Google Tag Manager.

4. (Optional) To identify users across multiple domains, turn on the Cross-domain ID toggle inside the User ID power-up and click Save changes. The power-up will additionally add X-Stape-Cross-Domain-Id to the Request Header for each incoming request.

As privacy regulations tighten and third-party cookies face more restrictions, keeping track of users can become a bit of a puzzle. Stape's User ID solution gives you a reliable, privacy-respecting way to maintain this connection, helping you keep your data useful and your marketing on point.
Improve sGTM event data with User IDs using Stape’s power-up. The only thing you need to do is activate the power-up in Stape’s admin.
If you face any problems with the power-up, feel free to contact our support.
Want to start on the server side?
Try for freeSolutions
Nov 13, 2026
Solutions
Stape power-up User ID adds a stable hashed user identifier to requests processed by your sGTM container.
Nov 9, 2026
Comments