FreePower-ups

User ID

User ID power-up adds a stable hashed user identifier to requests processed by your sGTM container. This helps server-side tracking recognize returning visitors more consistently when cookies or cross-domain tracking are limited.

How to access User ID

User ID is available to all Stape users. You can find it in the Power-ups tab in your Stape account.

Open your Stape account → Choose your recent sGTM container → Click Power-ups → Find User ID and click Use.

User ID

How User ID works

User ID creates a hashed identifier from signals in the incoming request, such as user IP, user-agent string, hostname, and TLS settings. Stape adds this value to each request processed by your sGTM container as the X-Stape-User-Id request header.

After you create a Request Header variable in sGTM, your tags and variables can use this ID where your tracking setup needs a user identifier.

Benefits of User ID

  • Recognize returning visitors more consistently. User ID adds a hashed identifier to incoming requests, helping your tracking connect related events when browser cookies are limited.
  • Send more connected data to your tracking tools. Add the User ID to supported tags and variables, so analytics and ad platforms can work with the same visitor identifier across related events.
  • Keep Cookie Keeper working when other identifiers are unavailable. Configure Cookie Keeper based on Stape User ID and use it as the master cookie when you cannot set up a consistent master cookie.

Improve user matching with server-side tracking

Use User ID to add a hashed identifier to incoming sGTM requests and connect related visitor activity more consistently when cookies are limited.

Related to this solution

How to anonymize user data in Google Analytics 4
Sep 15, 2025

Blog

How to anonymize user data in Google Analytics 4

Anonymize GA4 data for GDPR compliance using Stape's Anonymizer or manual GTM redaction. Remove PII like IPs, client IDs, and referrers to protect user privacy.

How to easily add user agent and geo data to server Google Tag Manager
Jul 22, 2026

Blog

How to easily add user agent and geo data to server Google Tag Manager

Discover how Stape's User Agent Info and GEO Headers enhance server-side tracking by providing valuable device and geographic data for your sGTM container.

Breadcrumb tracking for cross-session and cross-device user identification | Leopose Digital
Apr 13, 2026

Blog

Breadcrumb tracking for cross-session and cross-device user identification | Leopose Digital

Find out Leonardo Pose’s Breadcrumb data tracking method, and what role Stape's power-ups play in shaping this methodology.

We have more than 200 000 happy clients

Try Stape for all things server-side