Stape Store reStore Variable for Google Tag Manager Server Container

The Stape Store reStore Variable for Google Tag Manager Server-Side allows you to look up, restore, and update user profiles in Stape Store using a set of identifiers (e.g., user_id, client_id, email).

The variable looks up a user profile using the provided identifiers, restores stored data, and updates the profile with any new information. This is useful for:

  • Cookieless and cross-domain tracking
  • Cross-device user stitching
  • Enriching event data with persistent user attributes

How to use

  1. Add the Stape Store reStore Variable to your server container from the GTM Template Gallery.
  2. Add the identifiers you want to use for lookup (e.g., user_id, email).
  3. Specify the data points to manage.
  4. (Optional) Enable Only restore data to prevent writing updates to Stape Store.
  5. (Optional) Specify a Stape Store Collection Name. Defaults to default.
  6. Use this variable in your sGTM tags, triggers and variables to access the restored data object.

Useful Resources

Open Source

The Stape Store reStore Variable for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.

GTM Gallery Status

:green_circle: Listed

stape-io/stape-store-restore-variable — updated: view commit

  • Removed all logging features and related BigQuery integration from the template
  • Deleted logs configuration UI groups and parameters for console and BigQuery logging
  • Removed all logging function definitions and related imports from the template
  • Eliminated log calls for StapeStoreReStore request and response events
  • Updated encodeUriComponent function to handle null and undefined values gracefully

GTM Gallery Status

:green_circle: Listed