Thanks for previewing Google's new tag platform documentation! This site is in public beta. (Feedback)

Google Tag Configuration

Stay organized with collections Save and categorize content based on your preferences.

For a list of methods for this resource, see the end of this page.

Resource representations

Represents a Google tag configuration.

{
  "path": string,
  "accountId": string,
  "containerId": string,
  "workspaceId": string,
  "gtagConfigId": string,
  "type": string,
  "parameter": [
    {
      "type": string,
      "key": string,
      "value": string,
      "list": [
        (Parameter)
      ],
      "map": [
        (Parameter)
      ]
    }
  ],
  "fingerprint": string,
  "tagManagerUrl": string
}
Property name Value Description Notes
accountId string Google tag account ID.
containerId string Google tag container ID.
fingerprint string The fingerprint of the Google tag config as computed at storage time. This value is recomputed whenever the config is modified.
gtagConfigId string The ID uniquely identifies the Google tag config.
parameter[] list The Google tag config's parameters. writable
parameter[].key string The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. writable
parameter[].list[] list This list parameter's parameters (keys will be ignored). writable
parameter[].map[] list This map parameter's parameters (must have keys; keys must be unique). writable
parameter[].type string The parameter type. Valid values are:
  • boolean: The value represents a boolean, represented as 'true' or 'false'
  • integer: The value represents a 64-bit signed integer value, in base 10
  • list: A list of parameters should be specified
  • map: A map of parameters should be specified
  • template: The value represents any text; this can include variable references (even variable references that might return non-string types)
  • trigger_reference: The value represents a trigger, represented as the trigger id
  • tag_reference: The value represents a tag, represented as the tag name


Acceptable values are:
  • "boolean"
  • "integer"
  • "list"
  • "map"
  • "tagReference"
  • "template"
  • "triggerReference"
  • "typeUnspecified"
writable
parameter[].value string A parameter's value (may contain variable references such as "{{myVariable}}") as appropriate to the specified type. writable
path string Google tag config's API relative path.
tagManagerUrl string Auto generated link to the tag manager UI
type string Google tag config type. writable
workspaceId string Google tag workspace ID. Only used by GTM containers. Set to 0 otherwise.

Methods

create
Creates a Google tag config.
delete
Deletes a Google tag config.
get
Gets a Google tag config.
list
Lists all Google tag configs in a Container.
update
Updates a Google tag config.