MD5 Hash Variable for Google Tag Manager Server Container

The MD5 Hash Variable for Google Tag Manager Server Container allows you to generate the MD5 hash of an input value. This is useful for applications that require hashed data, such as when storing sensitive data or working with encrypted data.

Getting Started

  1. Add the MD5 Hash Variable to your GTM Server container.
  2. Configure the Required Parameter:
    • Value to be Hashed: Enter the value that you want to hash using the MD5 algorithm.

:warning: Note: this variable only works for Stape-hosted GTM containers.

Parameters

  • Value to be Hashed: The string or value you want to convert to an MD5 hash.
  • Store hashed value in cache: Enabled by default. Hashed values are cached to avoid unwanted additional network requests.
    • Cache Expiration Time: How many hours a cached hashed value stays valid. Defaults to 24.

Example Input & Output

  • Input: test@example.com
  • Output: 55502f40dc8b7c769880b10874abc9d0 (MD5 hash of the input)

Useful links:

Open Source

The MD5 Hash Variable for GTM Server is developed and maintained by the Stape Team under the Apache 2.0 license.

GTM Gallery Status

:green_circle: Listed

GitHub

:green_circle: Repository

stape-io/md5-hash-variable — updated: view commit

  • Removed all logging functionality including console and BigQuery logs and related configuration options.

GTM Gallery Status

:green_circle: Listed

stape-io/md5-hash-variable — updated: view commit

  • Added configurable caching for hashed values with a 24-hour default expiration
  • Hashing now skips empty values and literal "undefined" or "null" strings
  • Network request errors no longer propagate as template failures
  • Added required template storage access for cached responses

GTM Gallery Status

:green_circle: Listed