-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcontainer-web.json
1348 lines (1348 loc) · 68.8 KB
/
container-web.json
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
{
"exportFormatVersion": 1.3,
"exportTime": "2016-06-27 18:54:13",
"containerVersion": {
"accountId": "241005738",
"containerId": "2142636",
"containerVersionId": "0",
"deleted": false,
"container": {
"accountId": "241005738",
"containerId": "2142636",
"name": "example.com",
"publicId": "GTM-W6PDPW",
"timeZoneCountryId": "US",
"timeZoneId": "America/Los_Angeles",
"notes": "",
"usageContext": [
"WEB"
],
"fingerprint": "1466500269667",
"enabledBuiltInVariable": [
"CLICK_ELEMENT",
"CLICK_TEXT",
"FORM_TARGET",
"PAGE_HOSTNAME",
"ENVIRONMENT_NAME",
"FORM_ID",
"HISTORY_SOURCE",
"CLICK_CLASSES",
"FORM_CLASSES",
"FORM_URL",
"HTML_ID",
"CONTAINER_VERSION",
"NEW_HISTORY_FRAGMENT",
"ERROR_URL",
"DEBUG_MODE",
"CONTAINER_ID",
"PAGE_URL",
"REFERRER",
"CLICK_TARGET",
"CLICK_ID",
"CLICK_URL",
"OLD_HISTORY_FRAGMENT",
"ERROR_MESSAGE",
"ERROR_LINE",
"PAGE_PATH",
"EVENT",
"FORM_TEXT",
"FORM_ELEMENT",
"RANDOM_NUMBER"
]
},
"tag": [
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "1",
"name": "AB Test",
"type": "html",
"liveOnly": false,
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "// Variables\nvar testID = '001',\n testDays = 8,\n randomNumber = {{Random Number}},\n testVariant = readCookie(testID),\n previewUrl = true,\n variants = {\n 1: {\n execute: function() {\n //\n }\n },\n 2: {\n execute: function() {\n //\n }\n }\n };\n\n// Helpers\nfunction setCookie(testID, variantID, testDays) {\n var date = new Date();\n date.setTime(date.getTime() + (testDays * 86400000));\n var expires = '; expires=' + date.toGMTString();\n document.cookie = 'tnw-' + testID + '=' + variantID + expires + '; path=/';\n}\n\nfunction readCookie(testID) {\n var nameEQ = 'tnw-' + testID + '=',\n ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) == ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n}\n\nfunction checkCookie(name) {\n ca = document.cookie.split(';')\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(name) > -1) return true;\n }\n return false;\n}\n\nfunction sendDimension(variant) {\n if (checkCookie('_ga')) ga(\"set\",'dimensionXX','tnw-' + testID + '-' + variant);\n}\n\nfunction getParameterByName(name) {\n name = name.replace(/[\\[]/, \"\\\\\\[\").replace(/[\\]]/, \"\\\\\\]\");\n var regexS = \"[\\\\?&]\" + name + \"=([^&#]*)\";\n var regex = new RegExp(regexS);\n var results = regex.exec(window.location.search);\n if(results == null) {\n return \"\";\n } else {\n return decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n }\n}\n\nfunction control(testVariant) {\n setCookie(testID, testVariant, testDays);\n sendDimension(testVariant);\n}\n\nfunction variant(variantID) {\n control(variantID);\n if (variantID > 0) variants[variantID].execute();\n}\n\n// Check variants v.s. cookies\nvar variantsRandom = Math.round(2147483647 / (Object.keys(variants).length + 1));\n\nif(previewUrl && getParameterByName('previewUrl') != \"\") {\n variant(getParameterByName('previewUrl'));\n} else if (testVariant) {\n variant(testVariant);\n} else if (!checkCookie('tnw-')) {\n var chosen = 0;\n for (var j = 0; j <= 2147483647; j+= variantsRandom) {\n if (randomNumber <= variantsRandom) {\n variant(chosen);\n break;\n } else if (randomNumber >= j && randomNumber < (j + variantsRandom)) {\n variant(chosen);\n break;\n }\n chosen++;\n }\n}"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "0",
"parentFolderId": "14",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "2",
"name": "Google Analytics - Event - JavaScript Errors",
"type": "ua",
"liveOnly": false,
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventValue",
"value": "0"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "JavaScript Errors"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "{{Error Message}}"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{Error Line}}: {{Error URL}}"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics - Tracking ID}}"
}
],
"fingerprint": "0",
"firingTriggerId": [
"7"
],
"parentFolderId": "4",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "13",
"name": "Google Analytics - Event - Outbound Click",
"type": "ua",
"liveOnly": false,
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventValue",
"value": "0"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "Outbound Click"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "{{Page URL}}"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{Click Text}} / {{Click URL}}"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics - Tracking ID}}"
}
],
"fingerprint": "0",
"firingTriggerId": [
"20"
],
"parentFolderId": "4",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "6",
"name": "Google Analytics - Event - Riveted, ScrollDistance, ScrollTiming",
"type": "ua",
"liveOnly": false,
"parameter": [
{
"type": "TEMPLATE",
"key": "nonInteraction",
"value": "{{DLV - eventNonInteraction}}"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventValue",
"value": "{{DLV - eventValue}}"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "{{DLV - eventCategory}}"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "{{DLV - eventAction}}"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{DLV - eventLabel}}"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics - Tracking ID}}"
}
],
"fingerprint": "0",
"firingTriggerId": [
"8",
"9",
"10"
],
"parentFolderId": "4",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "12",
"name": "Google Analytics - Event - YouTube Tracking",
"type": "ua",
"liveOnly": false,
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "useDebugVersion",
"value": "{{Debug Mode}}"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "YouTube Videos"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "{{DLV - Video Action}}"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{DLV - Video URL}}"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "false"
},
{
"type": "LIST",
"key": "fieldsToSet",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "cookieDomain"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "auto"
}
]
}
]
},
{
"type": "TEMPLATE",
"key": "eventValue",
"value": "0"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics - Tracking ID}}"
}
],
"fingerprint": "0",
"firingTriggerId": [
"19"
],
"parentFolderId": "4",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "7",
"name": "Google Analytics - Event - visibilityChange",
"type": "ua",
"liveOnly": false,
"parameter": [
{
"type": "BOOLEAN",
"key": "nonInteraction",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventValue",
"value": "0"
},
{
"type": "TEMPLATE",
"key": "eventCategory",
"value": "User"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_EVENT"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "eventAction",
"value": "visibilityChange"
},
{
"type": "TEMPLATE",
"key": "eventLabel",
"value": "{{JS - Visibility Hidden}}"
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics - Tracking ID}}"
}
],
"fingerprint": "0",
"firingTriggerId": [
"15"
],
"parentFolderId": "4",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "3",
"name": "Google Analytics - Pageview",
"type": "ua",
"liveOnly": false,
"parameter": [
{
"type": "BOOLEAN",
"key": "useEcommerceDataLayer",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "LIST",
"key": "fieldsToSet",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "allowLinker"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "true"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "forceSSL"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "true"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "sampleRate"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "100"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "fieldName",
"value": "siteSpeedSampleRate"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "100"
}
]
}
]
},
{
"type": "BOOLEAN",
"key": "useHashAutoLink",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_PAGEVIEW"
},
{
"type": "BOOLEAN",
"key": "decorateFormsAutoLink",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "true"
},
{
"type": "LIST",
"key": "dimension",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "index",
"value": "1"
},
{
"type": "TEMPLATE",
"key": "dimension",
"value": "{{JS - Hour}}"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "index",
"value": "2"
},
{
"type": "TEMPLATE",
"key": "dimension",
"value": "{{Container ID}} - {{Container Version}}"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "index",
"value": "3"
},
{
"type": "TEMPLATE",
"key": "dimension",
"value": "{{JS - Hit Timestamp}}"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "index",
"value": "4"
},
{
"type": "TEMPLATE",
"key": "dimension",
"value": "{{JS - Client ID}}"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "index",
"value": "5"
},
{
"type": "TEMPLATE",
"key": "dimension",
"value": "{{JS - Session ID}}"
}
]
}
]
},
{
"type": "BOOLEAN",
"key": "enableEcommerce",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{Google Analytics - Tracking ID}}"
}
],
"fingerprint": "0",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "4",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "4",
"name": "JS - Riveted",
"type": "html",
"liveOnly": false,
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\nvar riveted=function(){function e(e){e=e||{},g=parseInt(e.reportInterval,10)||5,p=parseInt(e.idleTimeout,10)||30,k=e.gaGlobal||\"ga\",\"function\"==typeof window[k]&&(y=!0),\"undefined\"!=typeof _gaq&&\"function\"==typeof _gaq.push&&(w=!0),\"undefined\"!=typeof dataLayer&&\"function\"==typeof dataLayer.push&&(h=!0),I=\"gaTracker\"in e&&\"string\"==typeof e.gaTracker?e.gaTracker+\".send\":\"primary.send\",\"function\"==typeof e.eventHandler&&(s=e.eventHandler),\"function\"==typeof e.userTimingHandler&&(m=e.userTimingHandler),T=\"nonInteraction\"in e&&(e.nonInteraction===!1||\"false\"===e.nonInteraction)?!1:!0,t(document,\"keydown\",f),t(document,\"click\",f),t(window,\"mousemove\",n(f,500)),t(window,\"scroll\",n(f,500)),t(document,\"visibilitychange\",a),t(document,\"webkitvisibilitychange\",a)}function n(e,n){var t,i,a,o=null,r=0,u=function(){r=new Date,o=null,a=e.apply(t,i)};return function(){var c=new Date;r||(r=c);var d=n-(c-r);return t=this,i=arguments,0>=d?(clearTimeout(o),o=null,r=c,a=e.apply(t,i)):o||(o=setTimeout(u,d)),a}}function t(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent?e.attachEvent(\"on\"+n,t):e[\"on\"+n]=t}function i(){clearTimeout(H),r()}function a(){(document.hidden||document.webkitHidden)&&i()}function o(){_+=1,_>0&&_%g===0&&s(_)}function r(){L=!0,clearTimeout(E)}function u(){i(),b=!0}function c(){b=!1}function d(){L=!1,clearTimeout(E),E=setInterval(o,1e3)}function l(){var e=new Date,n=e-D;R=!0,m(n),E=setInterval(o,1e3)}function v(){D=new Date,_=0,R=!1,L=!1,clearTimeout(E),clearTimeout(H)}function f(){b||(R||l(),L&&d(),clearTimeout(H),H=setTimeout(i,1e3*p+100))}var s,m,g,p,T,y,w,I,h,k,R=!1,L=!1,b=!1,_=0,D=new Date,E=null,H=null;return m=function(e){h?dataLayer.push({event:\"RivetedTiming\",eventCategory:\"Riveted\",timingVar:\"First Interaction\",timingValue:e}):(y&&window[k](I,\"timing\",\"Riveted\",\"First Interaction\",e),w&&_gaq.push([\"_trackTiming\",\"Riveted\",\"First Interaction\",e,null,100]))},s=function(e){h?dataLayer.push({event:\"Riveted\",eventCategory:\"Riveted\",eventAction:\"Time Spent\",eventLabel:e,eventValue:g,eventNonInteraction:T}):(y&&window[k](I,\"event\",\"Riveted\",\"Time Spent\",e.toString(),g,{nonInteraction:T}),w&&_gaq.push([\"_trackEvent\",\"Riveted\",\"Time Spent\",e.toString(),g,T]))},{init:e,trigger:f,setIdle:i,on:c,off:u,reset:v}}();\nriveted.init();\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "0",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "11",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "5",
"name": "JS - ScrollDepth",
"type": "html",
"liveOnly": false,
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script>\n!function(e,n,t){\"use strict\";var r,o,i,l,a={minHeight:0,elements:[],percentage:!0,userTiming:!0,pixelDepth:!0,nonInteraction:!0,gaGlobal:!1,gtmOverride:!1},c=e(n),u=[],p=!1,s=0;e.scrollDepth=function(h){function g(e,t,a,c){l?(l({event:\"ScrollDistance\",eventCategory:\"Scroll Depth\",eventAction:e,eventLabel:t,eventValue:1,eventNonInteraction:h.nonInteraction}),h.pixelDepth&&arguments.length>2&&a>s&&(s=a,l({event:\"ScrollDistance\",eventCategory:\"Scroll Depth\",eventAction:\"Pixel Depth\",eventLabel:D(a),eventValue:1,eventNonInteraction:h.nonInteraction})),h.userTiming&&arguments.length>3&&l({event:\"ScrollTiming\",eventCategory:\"Scroll Depth\",eventAction:e,eventLabel:t,eventTiming:c})):(r&&(n[i](\"send\",\"event\",\"Scroll Depth\",e,t,1,{nonInteraction:h.nonInteraction}),h.pixelDepth&&arguments.length>2&&a>s&&(s=a,n[i](\"send\",\"event\",\"Scroll Depth\",\"Pixel Depth\",D(a),1,{nonInteraction:h.nonInteraction})),h.userTiming&&arguments.length>3&&n[i](\"send\",\"timing\",\"Scroll Depth\",e,c,t)),o&&(_gaq.push([\"_trackEvent\",\"Scroll Depth\",e,t,1,h.nonInteraction]),h.pixelDepth&&arguments.length>2&&a>s&&(s=a,_gaq.push([\"_trackEvent\",\"Scroll Depth\",\"Pixel Depth\",D(a),1,h.nonInteraction])),h.userTiming&&arguments.length>3&&_gaq.push([\"_trackTiming\",\"Scroll Depth\",e,c,t,100])))}function f(e){return{\"10%\":parseInt(.1*e,10),\"20%\":parseInt(.2*e,10),\"30%\":parseInt(.3*e,10),\"40%\":parseInt(.4*e,10),\"50%\":parseInt(.5*e,10),\"60%\":parseInt(.6*e,10),\"70%\":parseInt(.7*e,10),\"80%\":parseInt(.8*e,10),\"90%\":parseInt(.9*e,10),\"100%\":e-5}}function v(n,t,r){e.each(n,function(n,o){-1===e.inArray(n,u)&&t>=o&&(g(\"Percentage\",n,t,r),u.push(n))})}function m(n,t,r){e.each(n,function(n,o){-1===e.inArray(o,u)&&e(o).length&&t>=e(o).offset().top&&(g(\"Elements\",o,t,r),u.push(o))})}function D(e){return(250*Math.floor(e/250)).toString()}function d(){I()}function y(e,n){var t,r,o,i=null,l=0,a=function(){l=new Date,i=null,o=e.apply(t,r)};return function(){var c=new Date;l||(l=c);var u=n-(c-l);return t=this,r=arguments,0>=u?(clearTimeout(i),i=null,l=c,o=e.apply(t,r)):i||(i=setTimeout(a,u)),o}}function I(){p=!0,c.on(\"scroll.scrollDepth\",y(function(){var r=e(t).height(),o=n.innerHeight?n.innerHeight:c.height(),i=c.scrollTop()+o,l=f(r),a=+new Date-S;return u.length>=h.elements.length+(h.percentage?10:0)?(c.off(\"scroll.scrollDepth\"),void(p=!1)):(h.elements&&m(h.elements,i,a),void(h.percentage&&v(l,i,a)))},500))}var S=+new Date;h=e.extend({},a,h),e(t).height()<h.minHeight||(h.gaGlobal?(r=!0,i=h.gaGlobal):\"function\"==typeof ga?(r=!0,i=\"ga\"):\"function\"==typeof __gaTracker&&(r=!0,i=\"__gaTracker\"),\"undefined\"!=typeof _gaq&&\"function\"==typeof _gaq.push&&(o=!0),\"function\"==typeof h.eventHandler?l=h.eventHandler:\"undefined\"==typeof dataLayer||\"function\"!=typeof dataLayer.push||h.gtmOverride||(l=function(e){dataLayer.push(e)}),e.scrollDepth.reset=function(){u=[],s=0,c.off(\"scroll.scrollDepth\"),I()},e.scrollDepth.addElements=function(n){\"undefined\"!=typeof n&&e.isArray(n)&&(e.merge(h.elements,n),p||I())},e.scrollDepth.removeElements=function(n){\"undefined\"!=typeof n&&e.isArray(n)&&e.each(n,function(n,t){var r=e.inArray(t,h.elements),o=e.inArray(t,u);-1!=r&&h.elements.splice(r,1),-1!=o&&u.splice(o,1)})},d())}}(jQuery,window,document);jQuery(function(){jQuery.scrollDepth();});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "0",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "11",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "8",
"name": "JS - Visibility",
"type": "html",
"liveOnly": false,
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n if (typeof {{JS - Visibility Prefix}} !== 'undefined') {\n var visibilityEvent = {{JS - Visibility Prefix}} + 'visibilitychange',\n hiddenState = {{JS - Visibility Hidden}},\n visibilityChanged = function() {\n if (typeof hiddenState !== 'undefined') {\n dataLayer.push({\n 'event' : 'visibilityChange'\n });\n }\n };\n document.addEventListener(visibilityEvent, visibilityChanged, false);\n }\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "0",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "11",
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "241005738",
"containerId": "2142636",
"tagId": "11",
"name": "JS - YouTube Tracking",
"type": "html",
"liveOnly": false,
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\" id=\"gtm-youtube-tracking\">\n(function(document, window, config) {\n\n 'use strict';\n\n var _config = config || {};\n var forceSyntax = _config.forceSyntax || 0;\n var dataLayerName = _config.dataLayerName || 'dataLayer';\n // Default configuration for events\n var eventsFired = {\n 'Play': true,\n 'Pause': true,\n 'Watch to End': true\n };\n var key;\n\n // Fetches YouTube JS API\n var tag = document.createElement('script');\n tag.src = '//www.youtube.com/iframe_api';\n var firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\n for (key in _config.events) {\n\n if (_config.events.hasOwnProperty(key)) {\n\n eventsFired[key] = _config.events[key];\n\n }\n\n }\n\n window.onYouTubeIframeAPIReady = (function() {\n\n var cached = window.onYouTubeIframeAPIReady;\n\n return function() {\n\n if (cached) {\n\n cached.apply(this, arguments);\n\n }\n\n // This script won't work on IE 6 or 7, so we bail at this point if we detect that UA\n if (navigator.userAgent.match(/MSIE [67]\\./gi)) return;\n\n if (document.readyState !== 'loading') {\n\n init();\n\n } else {\n\n // On IE8 this fires on window.load, all other browsers will fire when DOM ready\n if (document.addEventListener) {\n\n addEvent(document, 'DOMContentLoaded', init);\n\n } else {\n\n addEvent(window, 'load', init);\n\n }\n\n }\n\n };\n\n })();\n\n // Invoked by the YouTube API when it's ready\n function init() {\n\n var potentialVideos = getTagsAsArr_('iframe').concat(getTagsAsArr_('embed'));\n digestPotentialVideos(potentialVideos);\n\n // Will bind to dynamically added videos. CAPTURE NOT SUPPORTED BY IE8\n if ('addEventListener' in document) { \n document.addEventListener('load', bindToNewVideos_, true);\n }\n\n\n }\n\n // Take our videos and turn them into trackable videos with events\n function digestPotentialVideos(potentialVideos) {\n\n var i;\n\n for (i = 0; i < potentialVideos.length; i++) {\n\n var isYouTubeVideo = checkIfYouTubeVideo(potentialVideos[i]);\n\n if (isYouTubeVideo) {\n\n var normalizedYouTubeIframe = normalizeYouTubeIframe(potentialVideos[i]);\n addYouTubeEvents(normalizedYouTubeIframe);\n\n }\n\n }\n\n }\n\n // Determine if the element is a YouTube video or not\n function checkIfYouTubeVideo(potentialYouTubeVideo) {\n\n var potentialYouTubeVideoSrc = potentialYouTubeVideo.src || '';\n\n if (potentialYouTubeVideoSrc.indexOf('youtube.com/embed/') > -1 ||\n potentialYouTubeVideoSrc.indexOf('youtube.com/v/') > -1) {\n\n return true;\n\n }\n\n return false;\n\n }\n\n function jsApiEnabled(url) {\n\n return url.indexOf('enablejsapi') > -1;\n\n }\n\n function originEnabled(url) {\n\n return url.indexOf('origin') > -1;\n\n }\n\n // Turn embed objects into iframe objects and ensure they have the right parameters\n function normalizeYouTubeIframe(youTubeVideo) {\n\n var loc = window.location;\n var a = document.createElement('a');\n a.href = youTubeVideo.src;\n a.hostname = 'www.youtube.com';\n a.protocol = loc.protocol;\n var tmpPathname = a.pathname.charAt(0) === '/' ? a.pathname : '/' + a.pathname; // IE10 shim\n\n // For security reasons, YouTube wants an origin parameter set that matches our hostname\n\n if (!jsApiEnabled(a.search)) {\n\n a.search = (a.search.length > 0 ? a.search + '&' : '') + 'enablejsapi=1';\n\n }\n\n if (!originEnabled(a.search) && loc.hostname.indexOf('localhost') === -1) {\n \n var port = loc.port ? ':' + loc.port : '';\n var origin = loc.protocol + '%2F%2F' + loc.hostname + port;\n\n a.search = a.search + '&origin=' + origin;\n\n }\n\n if (youTubeVideo.type === 'application/x-shockwave-flash') {\n\n var newIframe = document.createElement('iframe');\n newIframe.height = youTubeVideo.height;\n newIframe.width = youTubeVideo.width;\n tmpPathname = tmpPathname.replace('/v/', '/embed/');\n\n youTubeVideo.parentNode.parentNode.replaceChild(newIframe, youTubeVideo.parentNode);\n\n youTubeVideo = newIframe;\n\n }\n\n a.pathname = tmpPathname;\n\n if (youTubeVideo.src !== a.href + a.hash) {\n\n youTubeVideo.src = a.href + a.hash;\n\n }\n\n return youTubeVideo;\n\n }\n\n // Add event handlers for events emitted by the YouTube API\n function addYouTubeEvents(youTubeIframe) {\n\n var player = YT.get(youTubeIframe.id);\n\n if (!player) {\n\n player = new YT.Player(youTubeIframe, {}); \n\n }\n\n if (typeof youTubeIframe.pauseFlag === 'undefined') { \n\n youTubeIframe.pauseFlag = false;\n player.addEventListener('onStateChange', function(evt) {\n\n onStateChangeHandler(evt, youTubeIframe);\n\n });\n\n }\n\n }\n\n // Returns key/value pairs of percentages: number of seconds to achieve\n function getMarks(duration) {\n\n var marks = {};\n\n // For full support, we're handling Watch to End with percentage viewed\n if (_config.events['Watch to End']) {\n\n marks['Watch to End'] = Math.min(duration - 3, Math.floor(duration * 0.99));\n\n }\n\n if (_config.percentageTracking) {\n\n var points = [];\n var i;\n\n if (_config.percentageTracking.each) {\n\n points = points.concat(_config.percentageTracking.each);\n\n }\n\n if (_config.percentageTracking.every) {\n\n var every = parseInt(_config.percentageTracking.every, 10);\n var num = 100 / every;\n\n for (i = 1; i < num; i++) {\n\n points.push(i * every);\n\n }\n\n }\n\n for (i = 0; i < points.length; i++) {\n\n var _point = points[i];\n var _mark = _point + '%';\n var _time = duration * _point / 100;\n\n marks[_mark] = Math.floor(_time);\n\n }\n\n }\n\n return marks;\n\n }\n\n function checkCompletion(player, marks, videoId) {\n\n var currentTime = player.getCurrentTime();\n var key;\n\n player[videoId] = player[videoId] || {};\n\n for (key in marks) {\n\n if (marks[key] <= currentTime && !player[videoId][key]) {\n\n player[videoId][key] = true;\n fireAnalyticsEvent(videoId, key);\n\n }\n\n }\n\n }\n\n // Event handler for events emitted from the YouTube API\n function onStateChangeHandler(evt, youTubeIframe) {\n\n var stateIndex = evt.data;\n var player = evt.target;\n var targetVideoUrl = player.getVideoUrl();\n var targetVideoId = targetVideoUrl.match(/[?&]v=([^&#]*)/)[1]; // Extract the ID \n var playerState = player.getPlayerState();\n var duration = Math.floor(player.getDuration());\n var marks = getMarks(duration);\n var playerStatesIndex = {\n '1': 'Play',\n '2': 'Pause'\n };\n var state = playerStatesIndex[stateIndex];\n\n youTubeIframe.playTracker = youTubeIframe.playTracker || {};\n\n if (playerState === 1 && !youTubeIframe.timer) {\n\n clearInterval(youTubeIframe.timer);\n\n youTubeIframe.timer = setInterval(function() {\n\n // Check every second to see if we've hit any of our percentage viewed marks\n checkCompletion(player, marks, youTubeIframe.videoId);\n\n }, 1000);\n\n } else {\n\n clearInterval(youTubeIframe.timer);\n youTubeIframe.timer = false;\n\n }\n\n // Playlist edge-case handler\n if (stateIndex === 1) {\n\n youTubeIframe.playTracker[targetVideoId] = true;\n youTubeIframe.videoId = targetVideoId;\n youTubeIframe.pauseFlag = false;\n\n }\n\n if (!youTubeIframe.playTracker[youTubeIframe.videoId]) {\n\n // This video hasn't started yet, so this is spam\n return false;\n\n }\n\n if (stateIndex === 2) {\n\n if (!youTubeIframe.pauseFlag) {\n\n youTubeIframe.pauseFlag = true;\n\n } else {\n\n // We don't want to fire consecutive pause events\n return false;\n\n }\n\n }\n\n // If we're meant to track this event, fire it\n if (eventsFired[state]) {\n\n fireAnalyticsEvent(youTubeIframe.videoId, state);\n\n }\n\n }\n\n // Fire an event to Google Analytics or Google Tag Manager\n function fireAnalyticsEvent(videoId, state) {\n\n var videoUrl = 'https://www.youtube.com/watch?v=' + videoId;\n var _ga = window.GoogleAnalyticsObject;\n\n if (typeof window[dataLayerName] !== 'undefined' && !_config.forceSyntax) {\n\n window[dataLayerName].push({\n\n 'event': 'youTubeTrack',\n 'attributes': {\n\n 'videoUrl': videoUrl,\n 'videoAction': state\n\n }\n\n });\n\n } else if (typeof window[_ga] === 'function' &&\n typeof window[_ga].getAll === 'function' &&\n _config.forceSyntax !== 2) {\n\n window[_ga]('send', 'event', 'Videos', state, videoUrl);\n\n } else if (typeof window._gaq !== 'undefined' && forceSyntax !== 1) {\n\n window._gaq.push(['_trackEvent', 'Videos', state, videoUrl]);\n\n }\n\n }\n\n // Simple cross-browser event listener\n function addEvent(el, name, fn) {\n\n if (el.addEventListener) {\n\n el.addEventListener(name, fn);\n\n } else if (el.attachEvent) {\n\n el.attachEvent('on' + name, function(evt) {\n\n evt.target = evt.target || evt.srcElement;\n // Call the event to ensure uniform 'this' handling, pass it event\n fn.call(el, evt);\n\n });\n\n } else if (typeof el['on' + name] === 'undefined' || el['on' + name] === null) {\n\n\n el['on' + name] = function(evt) {\n\n evt.target = evt.target || evt.srcElement;\n // Call the event to ensure uniform 'this' handling, pass it event\n fn.call(el, evt);\n\n };\n\n }\n\n }\n\n // Returns array of elements with given tag name\n function getTagsAsArr_(tagName) {\n\n return [].slice.call(document.getElementsByTagName(tagName));\n\n }\n\n function bindToNewVideos_(evt) {\n\n var el = evt.target || evt.srcElement;\n var isYT = checkIfYouTubeVideo(el);\n\n // We only bind to iframes with a YouTube URL with the enablejsapi=1 and \n // origin=<<hostname>> parameters\n if (el.tagName === 'IFRAME' && isYT && jsApiEnabled(el.src) && originEnabled(el.src)) {\n\n addYouTubeEvents(el);\n\n }\n\n }\n\n})(document, window, {\n 'events': {\n 'Play': true,\n 'Pause': true,\n 'Watch to End': true\n },\n 'percentageTracking': {\n 'every': 25,\n 'each': [10, 90]\n }\n});\n/*\n * Configuration Details\n *\n * @property events object\n * Defines which events emitted by YouTube API\n * will be turned into Google Analytics or GTM events\n *\n * @property percentageTracking object\n * Object with configurations for percentage viewed events\n *\n * @property each array\n * Fires an event once each percentage ahs been reached\n *\n * @property every number\n * Fires an event for every n% viewed\n *\n * @property forceSyntax int 0, 1, or 2\n * Forces script to use Classic (2) or Universal(1)\n *\n * @property dataLayerName string\n * Tells script to use custom dataLayer name instead of default\n */\n/*\n * v8.1.0\n * Created by the Google Analytics consultants at http://www.lunametrics.com\n * Written by @SayfSharif and @notdanwilkerson\n * Documentation: https://github.com/lunametrics/youtube-google-analytics/\n * Licensed under the Creative Commons 4.0 Attribution Public License\n */\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "0",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "11",
"tagFiringOption": "ONCE_PER_EVENT"
}
],
"fingerprint": "0",
"trigger": [
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "5",
"name": "DOM Ready",
"type": "DOM_READY",
"fingerprint": "1460904693122"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "19",
"name": "Event - YouTube Tracking",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "youTubeTrack"
}
]
}
],
"fingerprint": "1466084605024"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "7",
"name": "JavaScript Errors",
"type": "JS_ERROR",
"fingerprint": "1460904973593"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "20",
"name": "Outbound Click",
"type": "LINK_CLICK",
"autoEventFilter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click URL}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "www.example.com"
},
{
"type": "BOOLEAN",
"key": "negate",
"value": "true"
}
]
}
],
"waitForTags": {
"type": "BOOLEAN",
"value": "true"
},
"checkValidation": {
"type": "BOOLEAN",
"value": "true"
},
"waitForTagsTimeout": {
"type": "TEMPLATE",
"value": "2000"
},
"uniqueTriggerId": {
"type": "TEMPLATE",
"value": ""
},
"fingerprint": "1466500190151"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "13",
"name": "Pageview - All Pages - 50 Percent",
"type": "PAGEVIEW",
"filter": [
{
"type": "MATCH_REGEX",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Random Number}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "1$|2$|3$|4$|5$"
}
]
}
],
"fingerprint": "1465586103683"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "8",
"name": "Riveted",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "Riveted"
}
]
}
],
"fingerprint": "1460905899858"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "9",
"name": "ScrollDistance",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "ScrollDistance"
}
]
}
],
"fingerprint": "1460905921196"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "10",
"name": "ScrollTiming",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "ScrollTiming"
}
]
}
],
"fingerprint": "1460905932265"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "6",
"name": "Window Loaded",
"type": "WINDOW_LOADED",
"fingerprint": "1460904706625"
},
{
"accountId": "241005738",
"containerId": "2142636",
"triggerId": "15",
"name": "visibilityChange",
"type": "CUSTOM_EVENT",