GTM Template: Events-Only

GTM container JSON for cm_tracking event forwarding — use with manual script install (Option A).

GTM Events-Only Template

ClickMint CRO Platform — GTM Container Template Last updated: April 2026

Back to Approach 2: GTM Serverless


What this template includes

This is the recommended GTM template for ClickMint experiment tracking (Option A).

ComponentIncluded
GA4 Event tag (cm event tracking - serverless)
Custom Event trigger (cm tracking event)
8 Data Layer Variables (cm dl *)
ClickMint script tag❌ — install manually in <head>

The ClickMint experiment script is not included. You install it directly in your page <head> using Approach 1: Native Installation. This avoids the delay caused by GTM Custom HTML injection.


Configure before importing

Find and replace this placeholder in the JSON below:

PlaceholderReplace with
REPLACE_WITH_GA4_MEASUREMENT_IDYour GA4 Measurement ID (e.g. G-XXXXXXXXXX)

How to configure and import

  1. Copy the full JSON below
  2. Paste into a text editor
  3. Find and replace REPLACE_WITH_GA4_MEASUREMENT_ID with your GA4 Measurement ID
  4. Save the file as gtm-events-only.json
  5. In GTM, go to Admin → Import Container
  6. Upload the file, choose Merge, then Rename conflicting tags, triggers, and variables
  7. Confirm the import

Template JSON

{
  "exportFormatVersion": 2,
  "exportTime": "2026-03-10 00:00:00",
  "containerVersion": {
    "path": "accounts/0/containers/0/versions/0",
    "accountId": "0",
    "containerId": "0",
    "containerVersionId": "0",
    "fingerprint": "0",
    "container": {
      "path": "accounts/0/containers/0",
      "accountId": "0",
      "containerId": "0",
      "name": "ClickMint Serverless Tracking",
      "publicId": "GTM-0000000",
      "usageContext": ["WEB"]
    },
    "builtInVariable": [
      {
        "accountId": "0",
        "containerId": "0",
        "type": "PAGE_URL",
        "name": "Page URL"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "type": "PAGE_HOSTNAME",
        "name": "Page Hostname"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "type": "PAGE_PATH",
        "name": "Page Path"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "type": "REFERRER",
        "name": "Referrer"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "type": "EVENT",
        "name": "Event"
      }
    ],
    "variable": [
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl event type",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.event_type"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl experiment id",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.experiment_id"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl experiment mode",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.experiment_mode"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl experiment variant",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.experiment_variant"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl outcome id",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.outcome_id"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl outcome index",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.outcome_index"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl outcome type",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "eventModel.outcome_type"
          }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "0",
        "containerId": "0",
        "variableId": "0",
        "name": "cm dl up experiment id",
        "type": "v",
        "parameter": [
          {
            "type": "INTEGER",
            "key": "dataLayerVersion",
            "value": "2"
          },
          {
            "type": "BOOLEAN",
            "key": "setDefaultValue",
            "value": "false"
          },
          {
            "type": "TEMPLATE",
            "key": "name",
            "value": "user_properties.experiment_id"
          }
        ],
        "fingerprint": "0"
      }
    ],
    "trigger": [
      {
        "accountId": "0",
        "containerId": "0",
        "triggerId": "0",
        "name": "cm tracking event",
        "type": "CUSTOM_EVENT",
        "customEventFilter": [
          {
            "type": "EQUALS",
            "parameter": [
              {
                "type": "TEMPLATE",
                "key": "arg0",
                "value": "{{_event}}"
              },
              {
                "type": "TEMPLATE",
                "key": "arg1",
                "value": "cm_tracking"
              }
            ]
          }
        ],
        "fingerprint": "0"
      }
    ],
    "tag": [
      {
        "accountId": "0",
        "containerId": "0",
        "tagId": "0",
        "name": "cm event tracking - serverless",
        "type": "gaawe",
        "priority": {
          "type": "INTEGER",
          "value": "10"
        },
        "parameter": [
          {
            "type": "TEMPLATE",
            "key": "eventName",
            "value": "cm_tracking"
          },
          {
            "type": "TEMPLATE",
            "key": "measurementIdOverride",
            "value": "REPLACE_WITH_GA4_MEASUREMENT_ID"
          },
          {
            "type": "LIST",
            "key": "eventParameters",
            "list": [
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "event_type"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl event type}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "experiment_id"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl experiment id}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "experiment_mode"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl experiment mode}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "experiment_variant"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl experiment variant}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "outcome_id"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl outcome id}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "outcome_index"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl outcome index}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "outcome_type"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl outcome type}}"
                  }
                ]
              },
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "page_path"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{Page Path}}"
                  }
                ]
              }
            ]
          },
          {
            "type": "LIST",
            "key": "userProperties",
            "list": [
              {
                "type": "MAP",
                "map": [
                  {
                    "type": "TEMPLATE",
                    "key": "name",
                    "value": "experiment_id"
                  },
                  {
                    "type": "TEMPLATE",
                    "key": "value",
                    "value": "{{cm dl up experiment id}}"
                  }
                ]
              }
            ]
          }
        ],
        "firingTriggerId": ["0"],
        "tagFiringOption": "ONCE_PER_EVENT",
        "fingerprint": "0"
      }
    ]
  }
}

After importing

  1. Install the ClickMint experiment script in your page <head> — see Approach 1: Native Installation
  2. In GTM Preview, confirm cm event tracking - serverless fires on cm_tracking
  3. Confirm your existing Google Tag still fires normally
  4. Publish the GTM workspace

Back to Approach 2: GTM Serverless