{
    "exportFormatVersion": 2,
    "exportTime": "2024-12-17 10:17:55",
    "containerVersion": {
        "path": "accounts/6139899127/containers/199191718/versions/0",
        "accountId": "6139899127",
        "containerId": "199191718",
        "containerVersionId": "0",
        "container": {
            "path": "accounts/6139899127/containers/199191718",
            "accountId": "6139899127",
            "containerId": "199191718",
            "name": "Google Ads EC + EC4L Setup",
            "publicId": "GTM-P6RLV33J",
            "usageContext": [
                "WEB"
            ],
            "fingerprint": "1730661726706",
            "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6139899127/containers/199191718/workspaces?apiLink=container",
            "features": {
                "supportUserPermissions": true,
                "supportEnvironments": true,
                "supportWorkspaces": true,
                "supportGtagConfigs": false,
                "supportBuiltInVariables": true,
                "supportClients": false,
                "supportFolders": true,
                "supportTags": true,
                "supportTemplates": true,
                "supportTriggers": true,
                "supportVariables": true,
                "supportVersions": true,
                "supportZones": true,
                "supportTransformations": false
            },
            "tagIds": [
                "GTM-P6RLV33J"
            ]
        },
        "tag": [
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "tagId": "9",
                "name": "cHTML – Set FPCs for Email & Phone",
                "type": "html",
                "notes": "We set first party cookies from the capture input field values to ensure that we still have the values available if the conversion does not happen on the exact same page the values were entered. Classic examples for this are multistep forms or conversions being triggered on thank you pages.\n\nWe use click triggers instead of form submit triggers to ensure we capture the data as soon as it's entered, even if the form submission fails or is abandoned.",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "html",
                        "value": "<script>\n(function() {\n  // Get the values from GTM variables\n  var emailValue = {{CJS Email Capture}};\n  var phoneValue = {{CJS Phone Capture}};\n  \n  // Configuration\n  var expirationTime = 93600 * 1000; // 26 hours in milliseconds\n  var date = new Date();\n  var dateTimeNow = date.getTime();\n  \n  // Set expiration\n  date.setTime(dateTimeNow + expirationTime);\n  var expires = date.toUTCString();\n  \n  // Get root domain (removes www if present)\n  var domain = '.' + location.hostname.replace(/^www\\./i, \"\");\n  \n  // Function to set cookies with enhanced security\n  function setCookie(name, value) {\n    if (value) {\n      document.cookie = name + '=' + encodeURIComponent(value) + \n                       '; SameSite=None' +  // Allows cross-site usage\n                       '; Secure' +         // Requires HTTPS\n                       '; expires=' + expires + \n                       '; path=/' + \n                       '; domain=' + domain;\n    }\n  }\n  \n  // Set cookies if values exist\n  setCookie('ec_email', emailValue);\n  setCookie('ec_phone', phoneValue);\n})();\n</script>"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "supportDocumentWrite",
                        "value": "false"
                    }
                ],
                "fingerprint": "1730661858807",
                "firingTriggerId": [
                    "7",
                    "8"
                ],
                "tagFiringOption": "ONCE_PER_EVENT",
                "monitoringMetadata": {
                    "type": "MAP"
                },
                "consentSettings": {
                    "consentStatus": "NOT_SET"
                }
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "tagId": "12",
                "name": "**EDIT** Google Ads – EC4L",
                "type": "awud",
                "notes": "The only thing you have to do here, is adding your Google Ads Conversion ID variable or the value of the Conversion ID.\n\nFor this tag, we use the email and phone capture click triggers, because the data for Enhanced Conversion for Leads can be sent anytime. It does not have to be at the same time you trigger a lead conversion. Because this data will anyway only be used if, at a later point, offline conversions are sent to the Google Ads account.",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "userDataVariable",
                        "value": "{{UPD Email & Phone}}"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableConversionLinker",
                        "value": "true"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "conversionCookiePrefix",
                        "value": "_gcl"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "conversionId",
                        "value": "00000000000"
                    }
                ],
                "fingerprint": "1730661305032",
                "firingTriggerId": [
                    "7",
                    "8"
                ],
                "tagFiringOption": "ONCE_PER_EVENT",
                "monitoringMetadata": {
                    "type": "MAP"
                },
                "consentSettings": {
                    "consentStatus": "NOT_SET"
                }
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "tagId": "13",
                "name": "**EXAMPLE** Google Ads – Conversion w/ user-provided data activated",
                "type": "awct",
                "notes": "This tag is an example of how your conversion tag has to be set up to send your first party data. The important part is activating \"Include user-provided data from your website\" and selecting the {{UPD Email & Phone}} variable.",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "enableNewCustomerReporting",
                        "value": "false"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableConversionLinker",
                        "value": "true"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableProductReporting",
                        "value": "false"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableEnhancedConversion",
                        "value": "true"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "cssProvidedEnhancedConversionValue",
                        "value": "{{UPD Email & Phone}}"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "conversionCookiePrefix",
                        "value": "_gcl"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableShippingData",
                        "value": "false"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "conversionId",
                        "value": "000000000"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "conversionLabel",
                        "value": "000000000"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "rdp",
                        "value": "false"
                    }
                ],
                "fingerprint": "1730661664125",
                "firingTriggerId": [
                    "2147479553"
                ],
                "tagFiringOption": "ONCE_PER_EVENT",
                "monitoringMetadata": {
                    "type": "MAP"
                },
                "consentSettings": {
                    "consentStatus": "NOT_SET"
                }
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "tagId": "14",
                "name": "**EDIT** Conversion Linker",
                "type": "gclidw",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "enableCrossDomain",
                        "value": "false"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableUrlPassthrough",
                        "value": "false"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "enableCookieOverrides",
                        "value": "false"
                    }
                ],
                "fingerprint": "1734430585838",
                "firingTriggerId": [
                    "2147479553"
                ],
                "tagFiringOption": "ONCE_PER_EVENT",
                "monitoringMetadata": {
                    "type": "MAP"
                },
                "consentSettings": {
                    "consentStatus": "NOT_SET"
                }
            }
        ],
        "trigger": [
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "triggerId": "7",
                "name": "All Clicks – CJS Email Capture",
                "type": "CLICK",
                "filter": [
                    {
                        "type": "EQUALS",
                        "parameter": [
                            {
                                "type": "TEMPLATE",
                                "key": "arg0",
                                "value": "{{CJS Email Capture}}"
                            },
                            {
                                "type": "TEMPLATE",
                                "key": "arg1",
                                "value": "undefined"
                            },
                            {
                                "type": "BOOLEAN",
                                "key": "negate",
                                "value": "true"
                            }
                        ]
                    }
                ],
                "fingerprint": "1730660647178"
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "triggerId": "8",
                "name": "All Clicks – CJS Phone Capture",
                "type": "CLICK",
                "filter": [
                    {
                        "type": "EQUALS",
                        "parameter": [
                            {
                                "type": "TEMPLATE",
                                "key": "arg0",
                                "value": "{{CJS Phone Capture}}"
                            },
                            {
                                "type": "TEMPLATE",
                                "key": "arg1",
                                "value": "undefined"
                            },
                            {
                                "type": "BOOLEAN",
                                "key": "negate",
                                "value": "true"
                            }
                        ]
                    }
                ],
                "fingerprint": "1730660663031"
            }
        ],
        "variable": [
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "variableId": "3",
                "name": "CJS Email Capture",
                "type": "jsm",
                "notes": "This variable captures the value of your email input field, no matter if it's a field with type=email, id including email or name including email.",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "javascript",
                        "value": "function() {\n  var emailField = document.querySelector('input[type=\"email\"], input[id*=\"email\"], input[name*=\"email\"]');\n  return emailField ? emailField.value : '';\n}"
                    }
                ],
                "fingerprint": "1730661392897",
                "formatValue": {}
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "variableId": "4",
                "name": "CJS Phone Capture",
                "type": "jsm",
                "notes": "This variable captures the value of your email input field, no matter if it's a field with type=tel, id including phone or name including phone.",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "javascript",
                        "value": "function() {\n  var phoneField = document.querySelector('input[type=\"tel\"], input[id*=\"phone\"], input[name*=\"phone\"]');\n  return phoneField ? phoneField.value : '';\n}"
                    }
                ],
                "fingerprint": "1730661410919",
                "formatValue": {}
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "variableId": "5",
                "name": "FPC ec_email",
                "type": "k",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "decodeCookie",
                        "value": "true"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "name",
                        "value": "ec_email"
                    }
                ],
                "fingerprint": "1730660366084",
                "formatValue": {}
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "variableId": "6",
                "name": "FPC ec_phone",
                "type": "k",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "decodeCookie",
                        "value": "true"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "name",
                        "value": "ec_phone"
                    }
                ],
                "fingerprint": "1730660376608",
                "formatValue": {}
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "variableId": "10",
                "name": "UPD Email & Phone",
                "type": "awec",
                "notes": "Add this variable to your Google Ads conversion and GA4 events tags, to use user-provided data for higher data accuracy",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "mode",
                        "value": "MANUAL"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "phone_number",
                        "value": "{{FPC ec_phone}}"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "email",
                        "value": "{{FPC ec_email}}"
                    }
                ],
                "fingerprint": "1730660905418",
                "formatValue": {}
            }
        ],
        "builtInVariable": [
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "type": "PAGE_URL",
                "name": "Page URL"
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "type": "PAGE_HOSTNAME",
                "name": "Page Hostname"
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "type": "PAGE_PATH",
                "name": "Page Path"
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "type": "REFERRER",
                "name": "Referrer"
            },
            {
                "accountId": "6139899127",
                "containerId": "199191718",
                "type": "EVENT",
                "name": "Event"
            }
        ],
        "fingerprint": "1734430675565",
        "tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6139899127/containers/199191718/versions/0?apiLink=version"
    }
}