-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tpl
583 lines (542 loc) · 29.1 KB
/
template.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
___TERMS_OF_SERVICE___
By creating or modifying this file you agree to Google Tag Manager's Community
Template Gallery Developer Terms of Service available at
https://developers.google.com/tag-manager/gallery-tos (or such other URL as
Google may provide), as modified from time to time.
___INFO___
{
"displayName": "Octanist - Offline Conversion Tracking",
"categories": ["LEAD_GENERATION", "SALES", "ADVERTISING", "ANALYTICS"],
"type": "TAG",
"id": "cvt_temp_public_id",
"version": 1,
"securityGroups": [],
"displayName": "Octanist - Offline Conversion Tracking",
"brand": {
"id": "brand_dummy",
"displayName": "",
"thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAEdAScDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECA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ZJbRIkUNsoVFToBXzB+1x8WR4q8SR6FYvmx0onzWByJJT/gMfrXfftH/tFw+ErCXRNHnWXUZFMcsiEEWynqMj+LGR+NfLzuXbczOzsTu3HOffNOrPTlRHC+R1PafXsT8hKKKKwP0BtuXMFFFFBIUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABSjr/jSUUAaHhvxRf+EdTjv9OmktLtWwWSThhjuO4r6L+FX7Yem61FDbeJVFjfcILpQTC31H8P4nHv2r5kpQobg4x71cZtPQ8rMsmw+Njaas+5+gOn6vDqdustrPFNbSDIkhYMsn5VK0SzIUkCSRP95ccH618E6B4u1TwhPv0u+u9Pk9bado93+9jr+NdxpH7WXjbTUVJdQt77Z93zrZB+ZRVJ/Emtfap7nxWI4LxNJ3w8rn1smgWcEu5LaEP2wvNWFgSEfcVT2xXylN+2V4ukTbs0kH1WFsj82xWFrv7TXjXXYnU61NaxsMFLaKNCfowXcPwan7WK2MYcI5jP+JLT1PrTxX470fwVZvNqt/bWqqM7HlAducfKvU14D8Yf2vLnXkl0/wAOK9paEFGupT+8cf7I7fma8SvdVuNWuDLczTTSnq0hyW+pqGs5VZM+kyvg7C4a1Wtqx0s7TuXkeSSRidxc53e+abRRWR9YlaPItgooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooopWHcKKKKoegUUUUibRe6CiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/2Q\u003d\u003d"
},
"description": "Octanist is a lead qualifying tool that helps you measure the true value of your leads and connects sales from those leads back to your advertising campaign. Visit octanist.com for more information.",
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "GROUP",
"name": "requirements",
"displayName": "Octanist Project ID",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "TEXT",
"name": "octanistID",
"displayName": "Octanist ID",
"simpleValueType": true,
"alwaysInSummary": true,
"clearOnCopy": true,
"notSetText": "Please enter a valid ID, which can be found in your Octanist account.",
"help": "Enter your unique Octanist ID, which you can find in your \u003ca href\u003d\"https://octanist.com/integrations/incoming/?utm_source\u003dgoogle\u0026utm_medium\u003dgtm\u0026utm_campaign\u003doctanist_gtm_template\u0026utm_id\u003doctanist_gtm_template_help_text\u0026utm_content\u003doctanist_id\"\u003eOctanist account\u003c/a\u003e."
}
]
},
{
"type": "GROUP",
"name": "octData",
"displayName": "Lead info",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "TEXT",
"name": "leadEmail",
"displayName": "Lead e-mail",
"simpleValueType": true,
"alwaysInSummary": true,
"clearOnCopy": true,
"notSetText": "Enter a valid email address.",
"enablingConditions": [],
"help": "Enter the email variable for the company associated with the submitted lead or transaction. This will be used to validate whether the person converted from a lead to a sale."
},
{
"type": "TEXT",
"name": "leadPhone",
"displayName": "Lead phone number",
"simpleValueType": true,
"alwaysInSummary": true,
"clearOnCopy": true,
"notSetText": "Enter a valid phone number.",
"enablingConditions": [],
"help": "Enter the phone number associated with the submitted lead or transaction. Leave empty if not available.\n\n\n To ensure the best match, make sure the phone number starts with a country code (e.g., +31 or +44). This will be used to validate whether the lead converted into a sale."
},
{
"type": "TEXT",
"name": "company",
"displayName": "Company name (optional)",
"simpleValueType": true,
"alwaysInSummary": true,
"clearOnCopy": true,
"notSetText": "Enter the company name, if available.",
"enablingConditions": [],
"help": "Enter the company associated with the submitted lead form, if available. Leave empty if not available."
}
]
},
{
"type": "GROUP",
"name": "optional",
"displayName": "Optional",
"groupStyle": "ZIPPY_CLOSED",
"subParams": [
{
"type": "TEXT",
"name": "ga4Id",
"displayName": "GA4 - Measurement ID",
"simpleValueType": true,
"help": "Enter a valid GA4 Measurement ID (G-XXXXXXXXXX). This value can be found in your GA4 Datastream. Only enter this value if you want to send events for \u003ca href\u003d\"https://support.google.com/analytics/answer/9267735?hl\u003den#:~:text\u003dwebsite%20or%20app-,For%20lead%20generation,-We%20recommend%20these\"\u003eLead Generation\u003c/a\u003e. \n\n\u003cbr\u003e\u003c/br\u003e\n\nRead more about this in the \u003ca href\u003d\"https://docs.octanist.com/outgoing-integrations/google-analytics?utm_source\u003dgoogle\u0026utm_medium\u003dgtm\u0026utm_campaign\u003doctanist_gtm_template\u0026utm_id\u003doctanist_gtm_template_help_text\u0026utm_content\u003dgoogle-analytics\"\u003eOctanist documentation\u003c/a\u003e.",
"alwaysInSummary": true,
"clearOnCopy": true,
"notSetText": "Enter a valid GA4 Measurement ID."
},
{
"type": "TEXT",
"name": "sf1",
"displayName": "Custom Field #1",
"simpleValueType": true,
"help": "Enter a custom value.",
"clearOnCopy": true,
"alwaysInSummary": true,
"notSetText": "Enter a custom value."
}
]
},
{
"type": "GROUP",
"name": "consent",
"displayName": "Consent",
"subParams": [
{
"type": "RADIO",
"name": "consentMethod",
"displayName": "Consent management",
"radioItems": [
{
"value": "gcm",
"displayValue": "Use Google Consent Mode (default)",
"help": "Use this option \u003ca href\u003d\"https://support.google.com/google-ads/answer/10000067?hl\u003den#:~:text\u003dConsent%20mode%20lets%20you%20communicate,behavior%20and%20respect%20users\u0027%20choices.\"\u003eGoogle Consent Mode\u003c/a\u003e implemented. This is required for sending data to ad platforms with the user consent."
},
{
"value": "manual",
"subParams": [
{
"type": "SELECT",
"name": "gcmAnalyticsStorage",
"displayName": "Analytics Storage (analytics_storage)",
"macrosInSelect": true,
"selectItems": [
{
"value": true,
"displayValue": "Granted"
},
{
"value": false,
"displayValue": "Denied"
}
],
"simpleValueType": true,
"help": "Enables storage (such as cookies) related to analytics e.g. visit duration. Required for sending data from octanist to Google Analytics 4.\n\u003cbr\u003e\u003c/br\u003e\n\u003cb\u003eIMPORTANT:\u003c/b\u003e Ensure the values are either \u003ccode\u003e\"GRANTED\"\u003c/code\u003e, \u003ccode\u003e\"DENIED\"\u003c/code\u003e, or \u003ccode\u003etrue\u003c/code\u003e/\u003ccode\u003efalse\u003c/code\u003e (boolean).\u003cbr\u003e"
},
{
"type": "SELECT",
"name": "gcmAdStorage",
"displayName": "Ad Storage (ad_storage)",
"macrosInSelect": true,
"selectItems": [
{
"value": true,
"displayValue": "Granted"
},
{
"value": false,
"displayValue": "Denied"
}
],
"simpleValueType": true,
"help": "Enables storage (such as cookies) related to advertising and is required for sending consented data to Google Ads, Meta, and other advertising platforms. If set to DENIED, Google Consent Mode will estimate (model) the data instead of directly collecting it.\u003cbr\u003e\u003c/br\u003e\n\u003cb\u003eIMPORTANT:\u003c/b\u003e Ensure the values are either \u003ccode\u003e\"GRANTED\"\u003c/code\u003e, \u003ccode\u003e\"DENIED\"\u003c/code\u003e, or \u003ccode\u003etrue\u003c/code\u003e/\u003ccode\u003efalse\u003c/code\u003e (boolean).\u003cbr\u003e"
},
{
"type": "SELECT",
"name": "gcmAdPersonalization",
"displayName": "Ad Personalization (ad_personalization)",
"macrosInSelect": true,
"selectItems": [
{
"value": true,
"displayValue": "Granted"
},
{
"value": false,
"displayValue": "Denied"
}
],
"simpleValueType": true,
"help": "Sets consent for personalized advertising. If set to DENIED, Google Consent Mode will estimate (model) the data instead of directly collecting it.\u003cbr\u003e\u003c/br\u003e\n\u003cb\u003eIMPORTANT:\u003c/b\u003e Ensure the values are either \u003ccode\u003e\"GRANTED\"\u003c/code\u003e, \u003ccode\u003e\"DENIED\"\u003c/code\u003e, or \u003ccode\u003etrue\u003c/code\u003e/\u003ccode\u003efalse\u003c/code\u003e (boolean).\u003cbr\u003e"
},
{
"type": "SELECT",
"name": "gcmAdUserData",
"displayName": "Ad User Data (ad_personalization)",
"macrosInSelect": true,
"selectItems": [
{
"value": true,
"displayValue": "Granted"
},
{
"value": false,
"displayValue": "Denied"
}
],
"simpleValueType": true,
"help": "Sets consent for sending user data related to advertising to Google (e.g. \u003ca href\u003d\"https://support.google.com/adspolicy/answer/6242605?hl\u003den#:~:text\u003dadvertising%20policy.-,First%2Dparty%20data%C2%A0,-First%2Dparty%20data\"\u003eFirst-Party Data\u003c/a\u003e collection). If set to DENIED, Google Consent Mode will estimate (model) the data instead of directly collecting it.\u003cbr\u003e\u003c/br\u003e\n\u003cb\u003eIMPORTANT:\u003c/b\u003e Ensure the values are either \u003ccode\u003e\"GRANTED\"\u003c/code\u003e, \u003ccode\u003e\"DENIED\"\u003c/code\u003e, or \u003ccode\u003etrue\u003c/code\u003e/\u003ccode\u003efalse\u003c/code\u003e (boolean).\u003cbr\u003e"
}
],
"displayValue": "Manual consent settings",
"help": "Use this option if you do \u003cb\u003enot\u003c/b\u003e have \u003ca href\u003d\"https://support.google.com/google-ads/answer/10000067?hl\u003den#:~:text\u003dConsent%20mode%20lets%20you%20communicate,behavior%20and%20respect%20users\u0027%20choices.\"\u003eGoogle Consent Mode\u003c/a\u003e. implemented or want to use your own variables and values to send data to Octanist. This is required for sending data to ad platforms with the user consent."
}
],
"simpleValueType": true,
"defaultValue": "gcm",
"valueValidators": []
}
],
"groupStyle": "ZIPPY_CLOSED"
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
/* octanist v1.1 - Visit https://octanist.com/ for more information
octanist was created by Ward Lavrijen, Jorg van de Ven & John van Beek.
*/
// Requirements and permissions
const log = require('logToConsole');
const getUrl = require('getUrl');
const queryPermission = require('queryPermission');
const sendPixel = require('sendPixel');
const getCookieValues = require('getCookieValues');
const isConsentGranted = require('isConsentGranted');
// Field Data - Entered by the user
const octId = data.octanistID;
const leadEmail = data.leadEmail;
const leadPhone = data.leadPhone;
const leadName = data.company;
// Optional Field Data
const ga4Id = data.ga4Id;
const sf1 = data.sf1;
// Get Google Ads Click Id Values
let gcl_awCookie = getCookieValues('_gcl_aw');
const gclid = (gcl_awCookie && gcl_awCookie[0]) ? gcl_awCookie[0].split(".")[2] : "";
// Get Meta Click Id Values
let fbcCookie = getCookieValues('_fbc');
let fbpCookie = getCookieValues('_fbp');
// Get Analytics Client & Session Id Values
let gaCidCookie = getCookieValues('_ga');
const gaClientId = (gaCidCookie && gaCidCookie[0]) ? gaCidCookie[0].slice(6) : "";
let gaSidCookie;
let gaSessionId;
if (ga4Id) {
gaSidCookie = getCookieValues("_ga_" + ga4Id.slice(2));
gaSessionId = gaSidCookie[0].split(".")[2];
}
// Get Page & Website data
const pathName = getUrl('path');
const hostName = getUrl('host');
// Google Consent Mode
const consentMethod = data.consentMethod || "gcm"; // Default to "gcm" if not specified
log("Selected consent method: " + consentMethod);
let gcm_ad_storage = consentMethod === "manual" ? data.gcmAdStorage : isConsentGranted('ad_storage');
let gcm_ad_user_data = consentMethod === "manual" ? data.gcmAdUserData : isConsentGranted('ad_user_data');
let gcm_ad_personalization = consentMethod === "manual" ? data.gcmAdPersonalization : isConsentGranted('ad_personalization');
let gcm_analytics_storage = consentMethod === "manual" ? data.gcmAnalyticsStorage : isConsentGranted('analytics_storage');
// Create Final URL
const url = "https://octanist.com/api/integrations/incoming/manual/" + octId + "/?";
const urlParams = [];
urlParams.push("gclid=" + (gclid || ""));
urlParams.push("ga4cid=" + (gaClientId || ""));
urlParams.push("ga4sid=" + (gaSessionId || ""));
urlParams.push("fbc=" + (fbcCookie || ""));
urlParams.push("fbp=" + (fbpCookie || ""));
urlParams.push("name=" + (leadName || ""));
urlParams.push("email=" + (leadEmail || ""));
urlParams.push("phone=" + (leadPhone || ""));
urlParams.push("website=" + (hostName || ""));
urlParams.push("path=" + (pathName || ""));
urlParams.push("custom=" + (sf1 || ""));
urlParams.push("ad_storage=" + (gcm_ad_storage));
urlParams.push("ad_user_data=" + (gcm_ad_user_data));
urlParams.push("ad_personalization=" + (gcm_ad_personalization));
urlParams.push("analytics_storage=" + (gcm_analytics_storage));
const finalUrl = url + urlParams.join("&");
// Send URL to octanist
if (queryPermission('send_pixel', finalUrl)) {
sendPixel(finalUrl);
}
log('url =', finalUrl);
log('data =', data);
data.gtmOnSuccess();
___WEB_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "logging",
"versionId": "1"
},
"param": [
{
"key": "environments",
"value": {
"type": 1,
"string": "debug"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "send_pixel",
"versionId": "1"
},
"param": [
{
"key": "allowedUrls",
"value": {
"type": 1,
"string": "specific"
}
},
{
"key": "urls",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "https://octanist.com/*"
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "get_url",
"versionId": "1"
},
"param": [
{
"key": "urlParts",
"value": {
"type": 1,
"string": "any"
}
},
{
"key": "queriesAllowed",
"value": {
"type": 1,
"string": "any"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "get_cookies",
"versionId": "1"
},
"param": [
{
"key": "cookieAccess",
"value": {
"type": 1,
"string": "any"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "access_consent",
"versionId": "1"
},
"param": [
{
"key": "consentTypes",
"value": {
"type": 2,
"listItem": [
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "consentType"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
}
],
"mapValue": [
{
"type": 1,
"string": "ad_storage"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "consentType"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
}
],
"mapValue": [
{
"type": 1,
"string": "analytics_storage"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "consentType"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
}
],
"mapValue": [
{
"type": 1,
"string": "ad_user_data"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "consentType"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
}
],
"mapValue": [
{
"type": 1,
"string": "ad_personalization"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios: []
___NOTES___
Created on 11/1/2024, 8:30:20 PM