Dynamic Measurement ID

Community variable by CardinalPath

What is Dynamic Measurement ID?

Simplifies the ability to dynamically populate a development and production Measurement ID without the use of nested tables. Compatible with both Google Analyitcs 4 & Universal Analtyics.

Dynamic Measurement ID variable is created by CardinalPath. Once you set up server side tagging with MetricsGate, you can use this variable with Google Tag Manager to enhance your data analytics.

This variable template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. 5.1 | remove log command
  2. 5 | removal of debug and environment fields
  3. 4 | Friendlier labels & code hints, changed field names to 'Measurement ID' instead of 'Product ID'.
  4. 3 | regex matching on domains and environments, removed mandatory fields for property id, compatible with GA4 properties
  5. 2 | Bug Fixes
  6. 1 | Initial release
  7. Draft.

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now