Last active
March 4, 2026 16:22
-
-
Save bmodena/9e3ce7c4b748f6548626abfaca3da382 to your computer and use it in GitHub Desktop.
Fly Book e-commerce Google Tag Manager (GTM) Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "exportFormatVersion": 2, | |
| "exportTime": "2026-02-27 12:00:00", | |
| "containerVersion": { | |
| "path": "accounts/0/containers/0/versions/0", | |
| "accountId": "0", | |
| "containerId": "0", | |
| "containerVersionId": "0", | |
| "container": { | |
| "path": "accounts/0/containers/0", | |
| "accountId": "0", | |
| "containerId": "0", | |
| "name": "Flybook GA4 Ecommerce Tracking v2", | |
| "publicId": "GTM-XXXXXXX", | |
| "usageContext": [ | |
| "WEB" | |
| ] | |
| }, | |
| "tag": [ | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "tagId": "1", | |
| "name": "GA4 - Flybook Configuration / Pageview", | |
| "type": "googtag", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "tagId", | |
| "value": "{{Const - GA4 Measurement ID}}" | |
| }, | |
| { | |
| "type": "LIST", | |
| "key": "configSettingsTable", | |
| "list": [ | |
| { | |
| "type": "MAP", | |
| "map": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameter", | |
| "value": "send_page_view" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameterValue", | |
| "value": "true" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ], | |
| "firingTriggerId": [ | |
| "2", | |
| "3" | |
| ], | |
| "tagFiringOption": "ONCE_PER_EVENT", | |
| "monitoringMetadata": { | |
| "type": "MAP" | |
| }, | |
| "consentSettings": { | |
| "consentStatus": "NOT_SET" | |
| } | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "tagId": "2", | |
| "name": "GA4 - Event - Purchase (Flybook)", | |
| "type": "gaawe", | |
| "priority": { | |
| "type": "INTEGER", | |
| "value": "1" | |
| }, | |
| "parameter": [ | |
| { | |
| "type": "BOOLEAN", | |
| "key": "sendEcommerceData", | |
| "value": "false" | |
| }, | |
| { | |
| "type": "LIST", | |
| "key": "eventSettingsTable", | |
| "list": [ | |
| { | |
| "type": "MAP", | |
| "map": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameter", | |
| "value": "transaction_id" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameterValue", | |
| "value": "{{DLV - ecommerce.transaction_id}}" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "MAP", | |
| "map": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameter", | |
| "value": "value" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameterValue", | |
| "value": "{{DLV - ecommerce.value}}" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "MAP", | |
| "map": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameter", | |
| "value": "currency" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameterValue", | |
| "value": "USD" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "MAP", | |
| "map": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameter", | |
| "value": "affiliation" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameterValue", | |
| "value": "{{DLV - ecommerce.affiliation}}" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "MAP", | |
| "map": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameter", | |
| "value": "items" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "parameterValue", | |
| "value": "{{DLV - ecommerce.items}}" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "eventName", | |
| "value": "purchase" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "measurementIdOverride", | |
| "value": "{{Const - GA4 Measurement ID}}" | |
| } | |
| ], | |
| "firingTriggerId": [ | |
| "4" | |
| ], | |
| "tagFiringOption": "ONCE_PER_EVENT", | |
| "monitoringMetadata": { | |
| "type": "MAP" | |
| }, | |
| "consentSettings": { | |
| "consentStatus": "NOT_SET" | |
| } | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "tagId": "3", | |
| "name": "GA4 - Clear Ecommerce Object", | |
| "type": "html", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "html", | |
| "value": "<script>\n window.dataLayer = window.dataLayer || [];\n dataLayer.push({ ecommerce: null });\n</script>" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "supportDocumentWrite", | |
| "value": "false" | |
| } | |
| ], | |
| "firingTriggerId": [ | |
| "4" | |
| ], | |
| "tagFiringOption": "ONCE_PER_EVENT", | |
| "priority": { | |
| "type": "INTEGER", | |
| "value": "10" | |
| }, | |
| "monitoringMetadata": { | |
| "type": "MAP" | |
| }, | |
| "consentSettings": { | |
| "consentStatus": "NOT_SET" | |
| } | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "tagId": "4", | |
| "name": "Conversion Linker", | |
| "type": "gclidw", | |
| "parameter": [ | |
| { | |
| "type": "BOOLEAN", | |
| "key": "enableCrossDomainLinking", | |
| "value": "true" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "autoLinkDomains", | |
| "value": "yourdomain.com, go.theflybook.com" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "decorateFormsOption", | |
| "value": "true" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "acceptIncomingLinkerParameters", | |
| "value": "true" | |
| } | |
| ], | |
| "firingTriggerId": [ | |
| "2147479553" | |
| ], | |
| "tagFiringOption": "ONCE_PER_EVENT", | |
| "monitoringMetadata": { | |
| "type": "MAP" | |
| }, | |
| "consentSettings": { | |
| "consentStatus": "NOT_SET" | |
| } | |
| } | |
| ], | |
| "trigger": [ | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "triggerId": "2", | |
| "name": "Flybook Pageview", | |
| "type": "PAGEVIEW", | |
| "filter": [ | |
| { | |
| "type": "CONTAINS", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg0", | |
| "value": "{{Page Hostname}}" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg1", | |
| "value": "theflybook.com" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "triggerId": "3", | |
| "name": "Flybook History Change", | |
| "type": "HISTORY_CHANGE", | |
| "filter": [ | |
| { | |
| "type": "CONTAINS", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg0", | |
| "value": "{{Page Hostname}}" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg1", | |
| "value": "theflybook.com" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "triggerId": "4", | |
| "name": "CE - orderMadeGa4", | |
| "type": "CUSTOM_EVENT", | |
| "customEventFilter": [ | |
| { | |
| "type": "EQUALS", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg0", | |
| "value": "{{_event}}" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg1", | |
| "value": "orderMadeGa4" | |
| } | |
| ] | |
| } | |
| ], | |
| "filter": [ | |
| { | |
| "type": "CONTAINS", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg0", | |
| "value": "{{Event}}" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "arg1", | |
| "value": "orderMadeGa4" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ], | |
| "variable": [ | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "variableId": "1", | |
| "name": "Const - GA4 Measurement ID", | |
| "type": "c", | |
| "parameter": [ | |
| { | |
| "type": "TEMPLATE", | |
| "key": "value", | |
| "value": "G-XXXXXXXXXX" | |
| } | |
| ] | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "variableId": "2", | |
| "name": "DLV - ecommerce.transaction_id", | |
| "type": "v", | |
| "parameter": [ | |
| { | |
| "type": "INTEGER", | |
| "key": "dataLayerVersion", | |
| "value": "2" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "setDefaultValue", | |
| "value": "false" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "name", | |
| "value": "ecommerce.transaction_id" | |
| } | |
| ], | |
| "formatValue": {} | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "variableId": "3", | |
| "name": "DLV - ecommerce.value", | |
| "type": "v", | |
| "parameter": [ | |
| { | |
| "type": "INTEGER", | |
| "key": "dataLayerVersion", | |
| "value": "2" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "setDefaultValue", | |
| "value": "false" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "name", | |
| "value": "ecommerce.value" | |
| } | |
| ], | |
| "formatValue": {} | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "variableId": "4", | |
| "name": "DLV - ecommerce.affiliation", | |
| "type": "v", | |
| "parameter": [ | |
| { | |
| "type": "INTEGER", | |
| "key": "dataLayerVersion", | |
| "value": "2" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "setDefaultValue", | |
| "value": "false" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "name", | |
| "value": "ecommerce.affiliation" | |
| } | |
| ], | |
| "formatValue": {} | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "variableId": "5", | |
| "name": "DLV - ecommerce.items", | |
| "type": "v", | |
| "parameter": [ | |
| { | |
| "type": "INTEGER", | |
| "key": "dataLayerVersion", | |
| "value": "2" | |
| }, | |
| { | |
| "type": "BOOLEAN", | |
| "key": "setDefaultValue", | |
| "value": "false" | |
| }, | |
| { | |
| "type": "TEMPLATE", | |
| "key": "name", | |
| "value": "ecommerce.items" | |
| } | |
| ], | |
| "formatValue": {} | |
| } | |
| ], | |
| "builtInVariable": [ | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "type": "PAGE_HOSTNAME", | |
| "name": "Page Hostname" | |
| }, | |
| { | |
| "accountId": "0", | |
| "containerId": "0", | |
| "type": "EVENT", | |
| "name": "Event" | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment