Duplicate Transaction Checker Variable for Google Tag Manager Server…

The Duplicate Transaction Checker Variable is designed to detect and block transactions that have already been processed, preventing duplication in analytics platforms. Which can lead to inflated conversion metrics. It is particularly useful for platforms like Google Ads and Google Analytics. Here’s why:

  • Accurate metrics: it ensures that each transaction is only counted once, preventing inflated conversion metrics.
  • Improved attribution: it improves the accuracy of attribution models (which determine how credit for conversions is assigned across different channels and touchpoints), providing a clearer view of which channels and campaigns truly drive conversions.
  • Better budget allocation: accurate conversion data allows for better budget decisions. With clear insights into what’s working and what isn’t, you can allocate your advertising budget more effectively.

Useful Resources

Open Source

Initial development was done by Lars Friis.

The Duplicate Transaction Checker 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/duplicate-transaction-checker-variable — updated: view commit

  • Group Transaction ID, Stape usage, and Client Name prefix options into a new configGroup for cleaner configuration
  • Add option to prefix Transaction ID with Client Name to avoid duplicates across multiple clients
  • Update Transaction ID sanitization to allow different character sets depending on Stape.io usage
  • Enhance Firestore integration with better error handling and support for optional Google Cloud project ID
  • Improve Firebase Collection path help text and default value for clarity and accuracy

GTM Gallery Status

:green_circle: Listed

stape-io/duplicate-transaction-checker-variable — updated: view commit

  • Removed all logging functionality including console and BigQuery logs
  • Updated error event names to include “:stop_sign: [ERROR]” prefix
  • Removed DuplicateTransactionChecker request and response logging
  • Simplified log output to always console log raw data as JSON
  • Removed BigQuery configuration and related logging controls

GTM Gallery Status

:green_circle: Listed