-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tpl
1153 lines (1091 loc) · 39.8 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
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
___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___
{
"type": "TAG",
"id": "cvt_temp_public_id",
"version": 1,
"securityGroups": [],
"displayName": "walkerOS",
"brand": {
"id": "brand_dummy",
"displayName": "elbwalker",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAADZCAYAAACtvpV2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAkGVYSWZNTQAqAAAACAAGAQYAAwAAAAEAAgAAARIAAwAAAAEAAQAAARoABQAAAAEAAABWARsABQAAAAEAAABeASgAAwAAAAEAAgAAh2kABAAAAAEAAABmAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA2aADAAQAAAABAAAA2QAAAADtdgG+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAC5GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8dGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPjI8L3RpZmY6UGhvdG9tZXRyaWNJbnRlcnByZXRhdGlvb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WtkfRKESfKbUW//uavaRZDOhqUbNkfT2Pgz8196XxykwaO40ZHL2P8lzRz5hqUb7yBpp0o2NQxKwFNuVVnZGMu/ryyimbrGFRo1xbiGVAYKrDuNpWofhny1V6khlQfiL88txTMCmNOKk3M+MZAqFpq+96uHt3sM3KTdzVbYK2093r7YV/K3c3b16feWqevo3uaXT+HzV/v5/tydeWxmntOm/dtquuDn39VVkbRK346VffGBd4+kJ29sTv3rkxcV0sk5vX+lIBZ3cHxmJrbztIPaZ5K4K0vU3q6xNOQ0ovaJPFCOrRrbxKoSKAIG4UTLyTNp4TlEgCfPPXIc+sWpsFBSJAH3UddNYtyPrXfX4kd7dumPj3JGMOIchnV5qxUSx8kjekJYRpNdI6WuJrh2L230UWmww9X5Gzj2S57EzOa4vd9Ff61ieh48uzcYhiZVqsdvlk+NV8wnR22cK/HI5tacaDVZpNTd3AtVfuvv8/MPxOm7g0pOu+aN/Ht0YubtNTrOum97kmjyGCBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACKhD4P/KgEPMhGhV/QAAAABJRU5ErkJggg\u003d\u003d"
},
"description": "Install and configure walker.js",
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "LABEL",
"name": "intro",
"displayName": "This is the \u003cb\u003ewalkerOS Tag template\u003c/b\u003e (v1.2) for installing and configuring walker.js on a website. Learn more in the \u003ca href\u003d\"https://www.elbwalker.com/docs/stacks/gtm/tag_template\"\u003edocumentation at elbwalker.com\u003c/a\u003e."
},
{
"type": "GROUP",
"name": "installationGroup",
"displayName": "Installation",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "CHECKBOX",
"name": "walkerjsLoad",
"checkboxText": "Load walker.js",
"simpleValueType": true,
"subParams": [
{
"type": "SELECT",
"name": "walkerjsLoadType",
"displayName": "From source",
"macrosInSelect": false,
"selectItems": [
{
"value": "cdn",
"displayValue": "CDN"
},
{
"value": "hosted",
"displayValue": "Self-hosted"
},
{
"value": "window",
"displayValue": "Window"
}
],
"simpleValueType": true,
"subParams": [
{
"type": "TEXT",
"name": "walkerjsLoadCDN",
"displayName": "With the version",
"simpleValueType": true,
"enablingConditions": [
{
"paramName": "walkerjsLoadType",
"paramValue": "cdn",
"type": "EQUALS"
}
],
"defaultValue": "latest",
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
},
{
"type": "TEXT",
"name": "walkerjsLoadURL",
"displayName": "Full URL",
"simpleValueType": true,
"enablingConditions": [
{
"paramName": "walkerjsLoadType",
"paramValue": "hosted",
"type": "EQUALS"
}
],
"defaultValue": "",
"help": "Make sure to add the URL to\u003cbr /\u003e\u003cb\u003ePermissions -\u003e Injects Scripts\u003c/b\u003e",
"valueHint": "https://",
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
},
{
"type": "TEXT",
"name": "walkerjsLoadWindow",
"displayName": "Name of the factory",
"simpleValueType": true,
"enablingConditions": [
{
"paramName": "walkerjsLoadType",
"paramValue": "window",
"type": "EQUALS"
}
],
"defaultValue": "Walkerjs",
"help": "Name of the function to create a walker.js instance. Make sure to have Permissions to read and execute.",
"valueHint": "Walkerjs",
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
}
],
"enablingConditions": [
{
"paramName": "walkerjsLoad",
"paramValue": true,
"type": "EQUALS"
}
]
}
],
"defaultValue": true,
"alwaysInSummary": false,
"help": "There are multiple ways to load walker.js\u003cbr /\u003e\u003col\u003e\u003cli\u003e\u003cb\u003eCDN\u003c/b\u003e: Load from an external source (for quick testing)\u003c/li\u003e\u003cli\u003e\u003cb\u003eSelf-hosted\u003c/b\u003e: Upload the walker.js to your own server for first-party context\u003c/li\u003e\u003cli\u003e\u003cb\u003eWindow\u003c/b\u003e: Use a previously integrated version, e.g. via NPM (recommended)\u003c/li\u003e\u003c/ol\u003e"
},
{
"type": "SELECT",
"name": "walkerjsMode",
"displayName": "Mode",
"macrosInSelect": false,
"selectItems": [
{
"value": "run",
"displayValue": "Auto run"
},
{
"value": "consent",
"displayValue": "Require consent"
},
{
"value": "manual",
"displayValue": "Manual"
}
],
"simpleValueType": true,
"help": "\u003col\u003e\u003cli\u003e\u003cb\u003eAuto run\u003c/b\u003e starts the walker immediately.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eRequire consent\u003c/b\u003e waits until the consent state is granted before calling \u0027walker run\u0027.\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eManual\u003c/b\u003e won\u0027t do anything - it\u0027s up to you.\u003c/li\u003e\u003c/ol\u003e",
"defaultValue": "run"
},
{
"type": "TEXT",
"name": "walkerjsModeConsent",
"displayName": "Required consent state",
"simpleValueType": true,
"enablingConditions": [
{
"paramName": "walkerjsMode",
"paramValue": "consent",
"type": "EQUALS"
}
],
"help": "Enter the name of the consent group that has to be set to true via \u003cb\u003ewalker consent\u003c/b\u003e command. Granting that consent state will call \u003cb\u003ewalker run\u003c/b\u003e.",
"valueHint": "functional",
"valueValidators": [
{
"type": "NON_EMPTY"
}
],
"defaultValue": "functional"
},
{
"type": "GROUP",
"name": "walkerjsNamesGroup",
"displayName": "Names",
"groupStyle": "ZIPPY_OPEN_ON_PARAM",
"subParams": [
{
"type": "LABEL",
"name": "introNames",
"displayName": "Change the default names if there might be a conflict with already existing variables."
},
{
"type": "TEXT",
"name": "walkerjsWindowInstance",
"displayName": "walkerjs instance",
"simpleValueType": true,
"defaultValue": "walkerjs",
"help": "This is the variable name that can be used to access the walker.js instance in the browser",
"valueHint": "walkerjs",
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
},
{
"type": "TEXT",
"name": "walkerjsWindowElb",
"displayName": "elb function",
"simpleValueType": true,
"defaultValue": "elb",
"help": "This is the variable name that can be used to access the elb function in the browser",
"valueHint": "elb",
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
},
{
"type": "TEXT",
"name": "walkerjsWindowElbLayer",
"displayName": "elbLayer",
"simpleValueType": true,
"defaultValue": "elbLayer",
"help": "This is the variable name for the elbLayer array.",
"valueHint": "elbLayer",
"valueValidators": []
}
]
}
]
},
{
"type": "GROUP",
"name": "optionsGroup",
"displayName": "Options",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "TEXT",
"name": "walkerjsOptionsTagging",
"displayName": "Tagging version",
"simpleValueType": true,
"defaultValue": 1,
"help": "Helps to debug the setup by knowing which tagging version was used during measurement.",
"valueValidators": [
{
"type": "POSITIVE_NUMBER"
}
]
},
{
"type": "TEXT",
"name": "walkerjsOptionsUserId",
"displayName": "Set a user id",
"simpleValueType": true,
"help": "This will set the id for the user. Both device and session ids will be set in the Session section or via a custom on event."
},
{
"type": "SIMPLE_TABLE",
"name": "walkerjsOptionsGlobals",
"displayName": "Globals",
"simpleTableColumns": [
{
"defaultValue": "",
"displayName": "Name",
"name": "key",
"type": "TEXT"
},
{
"defaultValue": "",
"displayName": "Value",
"name": "value",
"type": "TEXT"
}
],
"newRowButtonText": "Add global",
"help": "Add static globals that will be set to every single event."
},
{
"type": "CHECKBOX",
"name": "walkerjsOptionsLog",
"checkboxText": "Preview events in the console",
"simpleValueType": true,
"displayName": "Logging",
"help": "This adds a destination to the walker.js that logs all events to the console."
}
]
},
{
"type": "GROUP",
"name": "sessionGroup",
"displayName": "Session",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "LABEL",
"name": "sessionNote",
"displayName": "Session detection, user identification, and consent management are closely connected. Learn more about \u003ca href\u003d\"https://www.elbwalker.com/docs/utils/session\"\u003ehow to detect a session\u003c/a\u003e."
},
{
"type": "GROUP",
"name": "sessionConfigGroup",
"displayName": "",
"groupStyle": "NO_ZIPPY",
"subParams": [
{
"type": "CHECKBOX",
"name": "session",
"checkboxText": "Enable session detection",
"simpleValueType": true,
"help": "This uses the \u003cb\u003esessionWindow Util\u003c/b\u003e as a cookie-less version",
"alwaysInSummary": true,
"defaultValue": true
},
{
"type": "CHECKBOX",
"name": "sessionStorage",
"checkboxText": "Use Storage",
"simpleValueType": true,
"help": "This additionally uses the \u003cb\u003esessionStorage Util\u003c/b\u003e to persist data and enhance session information and user identification.",
"alwaysInSummary": true,
"enablingConditions": [
{
"paramName": "session",
"paramValue": true,
"type": "EQUALS"
}
]
},
{
"type": "LABEL",
"name": "infoSessionStorage",
"displayName": "This uses \u003cb\u003eelbDeviceId\u003c/b\u003e and \u003cb\u003eelbSessionId\u003c/b\u003e in the \u003cb\u003elocalStorage\u003c/b\u003e. There is a virtual rule to limit the age to 30 days for the device ID and 30 minutes for a session ID, which updates with each new run.",
"enablingConditions": [
{
"paramName": "sessionStorage",
"paramValue": true,
"type": "EQUALS"
}
]
},
{
"type": "TEXT",
"name": "sessionStorageConsent",
"displayName": "Required consent for storage access",
"simpleValueType": true,
"enablingConditions": [
{
"paramName": "sessionStorage",
"paramValue": true,
"type": "EQUALS"
}
],
"help": "Once the user\u0027s consent choice is available, the session detection starts",
"valueHint": "marketing",
"notSetText": "Make sure to have granted consent for storage access."
}
]
}
],
"enablingConditions": [
{
"paramName": "walkerjsLoad",
"paramValue": true,
"type": "EQUALS"
}
]
},
{
"type": "GROUP",
"name": "destinationsGroup",
"displayName": "Destinations",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "CHECKBOX",
"name": "destinationDataLayer",
"checkboxText": "Use dataLayer",
"simpleValueType": true,
"displayName": "Google Tag Manager",
"defaultValue": true,
"help": "Enabling this option will push every single event to the dataLayer automatically."
},
{
"type": "TEXT",
"name": "destinationDataLayerConfig",
"displayName": "dataLayer configuration",
"simpleValueType": true,
"help": "",
"enablingConditions": [
{
"paramName": "destinationDataLayer",
"paramValue": true,
"type": "EQUALS"
}
]
},
{
"type": "PARAM_TABLE",
"name": "destinations",
"displayName": "Additional destinations",
"paramTableColumns": [
{
"param": {
"type": "TEXT",
"name": "code",
"displayName": "Code*",
"simpleValueType": true,
"help": "(Required) The destinations function code",
"alwaysInSummary": false,
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
},
"isUnique": false
},
{
"param": {
"type": "TEXT",
"name": "config",
"displayName": "Config",
"simpleValueType": true,
"help": "Settings about mapping, required consent states and more."
},
"isUnique": false
}
],
"newRowButtonText": "Add destination",
"editRowTitle": "Edit destination"
}
]
},
{
"type": "GROUP",
"name": "onGroup",
"displayName": "On Events",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "SIMPLE_TABLE",
"name": "on",
"displayName": "Code that gets called on the selected trigger",
"simpleTableColumns": [
{
"defaultValue": "",
"displayName": "Trigger",
"name": "trigger",
"type": "SELECT",
"selectItems": [
{
"value": "consent",
"displayValue": "Consent"
},
{
"value": "ready",
"displayValue": "Ready"
},
{
"value": "run",
"displayValue": "Run"
},
{
"value": "session",
"displayValue": "Session"
}
]
},
{
"defaultValue": "",
"displayName": "Code",
"name": "code",
"type": "TEXT"
}
],
"newRowButtonText": "Add event"
}
]
},
{
"type": "GROUP",
"name": "hooksGroup",
"displayName": "Hooks",
"groupStyle": "ZIPPY_OPEN",
"subParams": [
{
"type": "SIMPLE_TABLE",
"name": "hooks",
"displayName": "Update default behavior with custom hooks",
"simpleTableColumns": [
{
"defaultValue": "",
"displayName": "Hook",
"name": "hookName",
"type": "SELECT",
"selectItems": [
{
"value": "prePush",
"displayValue": "prePush"
},
{
"value": "preDestinationInit",
"displayValue": "preDestinationInit"
},
{
"value": "postDestinationInit",
"displayValue": "postDestinationInit"
},
{
"value": "preDestinationPush",
"displayValue": "preDestinationPush"
},
{
"value": "preDestinationPushBatch",
"displayValue": "preDestinationPushBatch"
},
{
"value": "postDestinationPush",
"displayValue": "postDestinationPush"
},
{
"value": "postDestinationPushBatch",
"displayValue": "postDestinationPushBatch"
},
{
"value": "postPush",
"displayValue": "postPush"
},
{
"value": "preSessionStart",
"displayValue": "preSessionStart"
},
{
"value": "postSessionStart",
"displayValue": "postSessionStart"
}
],
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
},
{
"defaultValue": "",
"displayName": "Code",
"name": "hookCode",
"type": "TEXT",
"valueValidators": [
{
"type": "NON_EMPTY"
}
]
}
],
"newRowButtonText": "Add Hook",
"help": "Hooks can be used to customize the default behavior of the walker.js. Three hooks are available: Push, DestinationInit, and DestinationPush. Hooks allows for validation, manipulation, or even eventual cancellation of default behavior. \u003ca href\u003d\"https://www.elbwalker.com/docs/sources/walkerjs/commands#hooks\"\u003eRead more about hooks\u003c/a\u003e."
}
]
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
const log = require("logToConsole");
const callInWindow = require("callInWindow");
const copyFromWindow = require("copyFromWindow");
const createArgumentsQueue = require("createArgumentsQueue");
const injectScript = require("injectScript");
// log("data", data);
function isObject(o) {
return typeof o === "object" && o !== null;
}
// Names
const elbLayerName = data.walkerjsWindowElbLayer
? data.walkerjsWindowElbLayer
: "elbLayer"; // elbLayer name
const walkerjsName = data.walkerjsWindowInstance
? data.walkerjsWindowInstance
: "walkerjs"; // walkerjs instance name
const elbName = data.walkerjsWindowElb ? data.walkerjsWindowElb : "elb"; // elb function name
// elb
let elb = copyFromWindow(elbName); // Get existing elb function
if (!elb) elb = createArgumentsQueue(elbName, elbLayerName); // (Optional) create elb function
// Installation
function installation() {
// Options
const config = {};
// Window variables
config.instance = walkerjsName;
config.elb = elbName;
// Tagging version
if (data.walkerjsOptionsTagging) config.tagging = data.walkerjsOptionsTagging;
// User ID
if (data.walkerjsOptionsUserId)
config.user = { id: data.walkerjsOptionsUserId };
// Globals
if (data.walkerjsOptionsGlobals) {
const globals = data.walkerjsOptionsGlobals.reduce(function (acc, global) {
acc[global.key] = global.value;
return acc;
}, {});
config.globalsStatic = globals;
}
// DataLayer destination
if (data.destinationDataLayer) {
config.dataLayer = true;
config.dataLayerConfig = data.destinationDataLayerConfig || {};
}
// Session
if (data.session) {
config.session = {};
// Storage
if (data.sessionStorage) config.session.storage = true;
// Consent for storage access
if (data.sessionStorageConsent)
config.session.consent = data.sessionStorageConsent;
} else {
config.session = false;
}
// Init modes
function requireConsentMode(instance, consent) {
if (consent[data.walkerjsModeConsent]) elb("walker run");
}
if (data.walkerjsMode == "consent") {
// Require consent
var consent = {};
consent[[data.walkerjsModeConsent]] = requireConsentMode;
elb("walker on", "consent", consent);
} else if (data.walkerjsMode == "run") {
// Auto run
config.run = true;
}
var factory = data.walkerjsLoadWindow
? data.walkerjsLoadWindow
: "Walkerjs.default";
// Let's go
callInWindow(factory, config);
data.gtmOnSuccess();
}
// Destinations
if (data.destinations) {
data.destinations.forEach(function (destination) {
// Validation
if (!isObject(destination.code)) data.gtmOnFailure();
var config = isObject(destination.config) ? destination.config : {};
// Add the destination
elb("walker destination", destination.code, config);
});
}
// On Events
if (data.on) {
var onConsent = [];
var onReady = [];
var onRun = [];
var onSession = [];
data.on.forEach(function (on) {
if (on.trigger == "consent") onConsent.push(on.code);
if (on.trigger == "ready") onReady.push(on.code);
if (on.trigger == "run") onRun.push(on.code);
if (on.trigger == "session") onSession.push(on.code);
});
if (onConsent.length) elb("walker on", "consent", onConsent);
if (onReady.length) elb("walker on", "ready", onReady);
if (onRun.length) elb("walker on", "run", onRun);
if (onSession.length) elb("walker on", "session", onSession);
}
// Hooks
if (data.hooks) {
data.hooks.forEach(function (hook) {
elb("walker hook", hook.hookName, hook.hookCode);
});
}
// Debug mode preview destination
if (data.walkerjsOptionsLog) {
elb(
"walker destination",
{
push: function (e) {
log("preview", e);
},
},
{ type: "preview" }
);
}
// Load
if (data.walkerjsLoad) {
var url = data.walkerjsLoadURL; // Load self-hosted
// Load from CDN
if (data.walkerjsLoadCDN) {
url =
"https://cdn.jsdelivr.net/npm/@elbwalker/walker.js@" +
data.walkerjsLoadCDN +
"/dist/index.browser.js";
}
if (url) {
injectScript(url, installation, data.gtmOnFailure, "walkerjs");
} else {
installation();
}
} else {
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": "access_globals",
"versionId": "1"
},
"param": [
{
"key": "keys",
"value": {
"type": 2,
"listItem": [
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "key"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
},
{
"type": 1,
"string": "execute"
}
],
"mapValue": [
{
"type": 1,
"string": "elb"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "key"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
},
{
"type": 1,
"string": "execute"
}
],
"mapValue": [
{
"type": 1,
"string": "walkerjs"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "key"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
},
{
"type": 1,
"string": "execute"
}
],
"mapValue": [
{
"type": 1,
"string": "elbLayer"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "key"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
},
{
"type": 1,
"string": "execute"
}
],
"mapValue": [
{
"type": 1,
"string": "Walkerjs"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
}
]
},
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "key"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
},
{
"type": 1,
"string": "execute"
}
],
"mapValue": [
{
"type": 1,
"string": "Walkerjs.default"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
},
{
"type": 8,
"boolean": true
}
]
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "inject_script",
"versionId": "1"
},
"param": [
{
"key": "urls",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "https://cdn.jsdelivr.net/npm/@elbwalker/*"
},
{
"type": 1,