Skill Tracer
Skills › Marketing Skills › conversion-tracking › detect-jotform.json

detect-jotform.json

103 lines · skills/conversion-tracking/assets/gtm-recipes/detect/detect-jotform.json at 88c79f6

1{
2 "exportFormatVersion": 2,
3 "exportTime": "2026-07-02 00:00:00",
4 "containerVersion": {
5 "path": "accounts/0/containers/0/versions/0",
6 "accountId": "0",
7 "containerId": "0",
8 "containerVersionId": "0",
9 "container": {
10 "path": "accounts/0/containers/0",
11 "accountId": "0",
12 "containerId": "0",
13 "name": "Conversion Detection - Jotform",
14 "publicId": "GTM-XXXXXXX",
15 "usageContext": [
16 "WEB"
17 ],
18 "fingerprint": "0",
19 "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
20 },
21 "tag": [
22 {
23 "accountId": "0",
24 "containerId": "0",
25 "tagId": "1",
26 "name": "Conversion Detection - Jotform Submission Listener",
27 "type": "html",
28 "parameter": [
29 {
30 "type": "TEMPLATE",
31 "key": "html",
32 "value": "<script>\n/* Jotform iframe completion listener. Reads no form answers.\n * Counts once per embedded frame on this page. */\n(function () {\n 'use strict';\n if (window.__ctDetectJotform || window.__ctJotformMethod2Installed) return;\n window.__ctDetectJotform = true;\n window.__ctJotformMethod2Installed = true;\n var completed = [];\n window.addEventListener('message', function (event) {\n if (!event.source || event.source === window) return;\n if (!/^https:\\/\\/(form|submit)\\.jotform\\.com$/.test(event.origin)) return;\n var data = event.data;\n if (!data || typeof data !== 'object' || Array.isArray(data) || data.action !== 'submission-completed') return;\n var frames = document.querySelectorAll('iframe');\n for (var i = 0; i < frames.length; i++) {\n var frame = frames[i];\n if (frame.contentWindow !== event.source) continue;\n var match = /^https:\\/\\/form\\.jotform\\.com\\/(\\d+)(?:[/?#]|$)/.exec(frame.getAttribute('src') || '');\n if (!match || (data.formID != null && String(data.formID) !== match[1])) return;\n if (completed.indexOf(frame) !== -1) return;\n completed.push(frame);\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({ event: 'jotform_form_submitted', form_id: match[1] });\n return;\n }\n });\n})();\n</script>"
33 },
34 {
35 "type": "BOOLEAN",
36 "key": "supportDocumentWrite",
37 "value": "false"
38 }
39 ],
40 "firingTriggerId": [
41 "2147479553"
42 ],
43 "tagFiringOption": "ONCE_PER_EVENT",
44 "monitoringMetadata": {
45 "type": "MAP"
46 },
47 "consentSettings": {
48 "consentStatus": "NOT_SET"
49 }
50 }
51 ],
52 "trigger": [
53 {
54 "accountId": "0",
55 "containerId": "0",
56 "triggerId": "2",
57 "name": "CE - Jotform Submitted",
58 "type": "CUSTOM_EVENT",
59 "customEventFilter": [
60 {
61 "type": "EQUALS",
62 "parameter": [
63 {
64 "type": "TEMPLATE",
65 "key": "arg0",
66 "value": "{{_event}}"
67 },
68 {
69 "type": "TEMPLATE",
70 "key": "arg1",
71 "value": "jotform_form_submitted"
72 }
73 ]
74 }
75 ],
76 "filter": []
77 }
78 ],
79 "variable": [
80 {
81 "accountId": "0",
82 "containerId": "0",
83 "variableId": "1",
84 "name": "DLV - Jotform Form ID",
85 "type": "v",
86 "parameter": [
87 {
88 "type": "TEMPLATE",
89 "key": "name",
90 "value": "form_id"
91 },
92 {
93 "type": "INTEGER",
94 "key": "dataLayerVersion",
95 "value": "2"
96 }
97 ]
98 }
99 ],
100 "fingerprint": "0",
101 "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
102 }