gtm_create_constant_variable
Create a constant variable in Google Tag Manager to reuse IDs like GA4 measurement or Ads conversion IDs across multiple tags, simplifying updates by editing one variable instead of every tag.
Instructions
Create a Constant variable (type 'c').
Worth doing for any id used in more than one tag -- a GA4 measurement id or an Ads conversion id. Changing it then means editing one variable rather than hunting every tag that hardcoded it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | Yes | ||
| confirm | No | ||
| account_id | No | ||
| container_id | No | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |