@walkeros/web-destination-matomo 3.4.0-next-1776749829492

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,883 @@
1
+ {
2
+ "$meta": {
3
+ "package": "@walkeros/web-destination-matomo",
4
+ "version": "3.4.0-next-1776749829492",
5
+ "type": "destination",
6
+ "platform": [
7
+ "web"
8
+ ],
9
+ "docs": "https://www.walkeros.io/docs/destinations/web/matomo",
10
+ "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/matomo/src"
11
+ },
12
+ "schemas": {
13
+ "mapping": {
14
+ "$schema": "http://json-schema.org/draft-07/schema#",
15
+ "type": "object",
16
+ "properties": {
17
+ "goalId": {
18
+ "description": "Goal ID to track a conversion alongside this event (like 1)",
19
+ "type": "string"
20
+ },
21
+ "goalValue": {
22
+ "description": "Property path for goal revenue value (like data.revenue)",
23
+ "type": "string"
24
+ },
25
+ "siteSearch": {
26
+ "description": "Track as internal site search using trackSiteSearch",
27
+ "type": "boolean"
28
+ },
29
+ "contentImpression": {
30
+ "description": "Track as content impression using trackContentImpression",
31
+ "type": "boolean"
32
+ },
33
+ "contentInteraction": {
34
+ "description": "Track as content interaction using trackContentInteraction",
35
+ "type": "boolean"
36
+ },
37
+ "customDimensions": {
38
+ "description": "Per-event custom dimension ID to property path mapping (like { \"3\": \"data.category\" })",
39
+ "type": "object",
40
+ "propertyNames": {
41
+ "type": "string"
42
+ },
43
+ "additionalProperties": {
44
+ "type": "string"
45
+ }
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ },
50
+ "settings": {
51
+ "$schema": "http://json-schema.org/draft-07/schema#",
52
+ "type": "object",
53
+ "properties": {
54
+ "siteId": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "description": "Matomo Site ID (like 1, 2, etc.)"
58
+ },
59
+ "url": {
60
+ "type": "string",
61
+ "format": "uri",
62
+ "description": "Base URL of your Matomo instance (like https://analytics.example.com/ or https://yourname.matomo.cloud/)"
63
+ },
64
+ "disableCookies": {
65
+ "default": false,
66
+ "description": "Disable all tracking cookies for cookie-free analytics",
67
+ "type": "boolean"
68
+ },
69
+ "enableLinkTracking": {
70
+ "default": true,
71
+ "description": "Enable automatic outlink and download tracking",
72
+ "type": "boolean"
73
+ },
74
+ "enableHeartBeatTimer": {
75
+ "description": "Enable heart beat timer with interval in seconds for accurate time-on-page",
76
+ "type": "integer",
77
+ "exclusiveMinimum": 0,
78
+ "maximum": 9007199254740991
79
+ },
80
+ "customDimensions": {
81
+ "description": "Custom dimension ID to property path mapping applied to all events (like { \"1\": \"data.userType\" })",
82
+ "type": "object",
83
+ "propertyNames": {
84
+ "type": "string"
85
+ },
86
+ "additionalProperties": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ },
91
+ "required": [
92
+ "siteId",
93
+ "url",
94
+ "disableCookies",
95
+ "enableLinkTracking"
96
+ ],
97
+ "additionalProperties": false
98
+ }
99
+ },
100
+ "examples": {
101
+ "env": {
102
+ "init": {
103
+ "window": {
104
+ "location": {
105
+ "href": "https://www.example.com/page"
106
+ }
107
+ },
108
+ "document": {
109
+ "createElement": {
110
+ "$code": "()=>({type:\"\",src:\"\",async:!1,defer:!1})"
111
+ },
112
+ "head": {
113
+ "appendChild": {
114
+ "$code": "()=>{}"
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "push": {
120
+ "window": {
121
+ "_paq": [],
122
+ "location": {
123
+ "href": "https://www.example.com/page"
124
+ }
125
+ },
126
+ "document": {
127
+ "createElement": {
128
+ "$code": "()=>({type:\"\",src:\"\",async:!1,defer:!1})"
129
+ },
130
+ "head": {
131
+ "appendChild": {
132
+ "$code": "()=>{}"
133
+ }
134
+ }
135
+ }
136
+ },
137
+ "simulation": [
138
+ "call:window._paq.push"
139
+ ]
140
+ },
141
+ "step": {
142
+ "customEvent": {
143
+ "in": {
144
+ "name": "promotion visible",
145
+ "data": {
146
+ "name": "Setting up tracking easily",
147
+ "position": "hero"
148
+ },
149
+ "context": {
150
+ "ab_test": [
151
+ "engagement",
152
+ 0
153
+ ]
154
+ },
155
+ "globals": {
156
+ "pagegroup": "homepage"
157
+ },
158
+ "custom": {
159
+ "completely": "random"
160
+ },
161
+ "user": {
162
+ "id": "us3r",
163
+ "device": "c00k13",
164
+ "session": "s3ss10n"
165
+ },
166
+ "nested": [
167
+ {
168
+ "entity": "child",
169
+ "data": {
170
+ "is": "subordinated"
171
+ },
172
+ "nested": [],
173
+ "context": {
174
+ "element": [
175
+ "child",
176
+ 0
177
+ ]
178
+ }
179
+ }
180
+ ],
181
+ "consent": {
182
+ "functional": true
183
+ },
184
+ "id": "1700000401-gr0up-1",
185
+ "trigger": "visible",
186
+ "entity": "promotion",
187
+ "action": "visible",
188
+ "timestamp": 1700000401,
189
+ "timing": 3.14,
190
+ "group": "gr0up",
191
+ "count": 1,
192
+ "version": {
193
+ "source": "3.4.0-next-1776749829492",
194
+ "tagging": 1
195
+ },
196
+ "source": {
197
+ "type": "web",
198
+ "id": "https://localhost:80",
199
+ "previous_id": "http://remotehost:9001"
200
+ }
201
+ },
202
+ "mapping": {
203
+ "name": "trackEvent",
204
+ "settings": {
205
+ "goalId": "goal_1"
206
+ },
207
+ "data": {
208
+ "set": [
209
+ "data.name",
210
+ "data.position"
211
+ ]
212
+ }
213
+ },
214
+ "out": [
215
+ [
216
+ "_paq.push",
217
+ [
218
+ "trackEvent",
219
+ "Setting up tracking easily",
220
+ "hero"
221
+ ]
222
+ ],
223
+ [
224
+ "_paq.push",
225
+ [
226
+ "trackGoal",
227
+ "goal_1",
228
+ null
229
+ ]
230
+ ]
231
+ ]
232
+ },
233
+ "ecommerceCartUpdate": {
234
+ "in": {
235
+ "name": "cart view",
236
+ "data": {
237
+ "currency": "EUR",
238
+ "value": 840
239
+ },
240
+ "context": {
241
+ "shopping": [
242
+ "cart",
243
+ 0
244
+ ]
245
+ },
246
+ "globals": {
247
+ "pagegroup": "shop"
248
+ },
249
+ "custom": {
250
+ "completely": "random"
251
+ },
252
+ "user": {
253
+ "id": "us3r",
254
+ "device": "c00k13",
255
+ "session": "s3ss10n"
256
+ },
257
+ "nested": [
258
+ {
259
+ "entity": "product",
260
+ "data": {
261
+ "id": "ers",
262
+ "name": "Everyday Ruck Snack",
263
+ "color": "black",
264
+ "size": "l",
265
+ "price": 420,
266
+ "quantity": 2
267
+ },
268
+ "context": {
269
+ "shopping": [
270
+ "cart",
271
+ 0
272
+ ]
273
+ },
274
+ "nested": []
275
+ }
276
+ ],
277
+ "consent": {
278
+ "functional": true
279
+ },
280
+ "id": "1700000403-gr0up-1",
281
+ "trigger": "load",
282
+ "entity": "cart",
283
+ "action": "view",
284
+ "timestamp": 1700000403,
285
+ "timing": 3.14,
286
+ "group": "gr0up",
287
+ "count": 1,
288
+ "version": {
289
+ "source": "3.4.0-next-1776749829492",
290
+ "tagging": 1
291
+ },
292
+ "source": {
293
+ "type": "web",
294
+ "id": "https://localhost:80",
295
+ "previous_id": "http://remotehost:9001"
296
+ }
297
+ },
298
+ "mapping": {
299
+ "name": "trackEcommerceCartUpdate",
300
+ "data": {
301
+ "set": [
302
+ {
303
+ "loop": [
304
+ "nested",
305
+ {
306
+ "condition": {
307
+ "$code": "e=>v(e)&&\"product\"===e.entity"
308
+ },
309
+ "map": {
310
+ "sku": "data.id",
311
+ "name": "data.name",
312
+ "category": {
313
+ "value": ""
314
+ },
315
+ "price": "data.price",
316
+ "quantity": {
317
+ "value": 1
318
+ }
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ "data.value"
324
+ ]
325
+ }
326
+ },
327
+ "out": [
328
+ [
329
+ "_paq.push",
330
+ [
331
+ "trackEcommerceCartUpdate",
332
+ [
333
+ {
334
+ "sku": "ers",
335
+ "name": "Everyday Ruck Snack",
336
+ "category": "",
337
+ "price": 420,
338
+ "quantity": 1
339
+ }
340
+ ],
341
+ 840
342
+ ]
343
+ ]
344
+ ]
345
+ },
346
+ "ecommerceOrder": {
347
+ "in": {
348
+ "name": "order complete",
349
+ "data": {
350
+ "id": "0rd3r1d",
351
+ "currency": "EUR",
352
+ "shipping": 5.22,
353
+ "taxes": 73.76,
354
+ "total": 555
355
+ },
356
+ "context": {
357
+ "shopping": [
358
+ "complete",
359
+ 0
360
+ ]
361
+ },
362
+ "globals": {
363
+ "pagegroup": "shop"
364
+ },
365
+ "custom": {
366
+ "completely": "random"
367
+ },
368
+ "user": {
369
+ "id": "us3r",
370
+ "device": "c00k13",
371
+ "session": "s3ss10n"
372
+ },
373
+ "nested": [
374
+ {
375
+ "entity": "product",
376
+ "data": {
377
+ "id": "ers",
378
+ "name": "Everyday Ruck Snack",
379
+ "color": "black",
380
+ "size": "l",
381
+ "price": 420
382
+ },
383
+ "context": {
384
+ "shopping": [
385
+ "complete",
386
+ 0
387
+ ]
388
+ },
389
+ "nested": []
390
+ },
391
+ {
392
+ "entity": "product",
393
+ "data": {
394
+ "id": "cc",
395
+ "name": "Cool Cap",
396
+ "size": "one size",
397
+ "price": 42
398
+ },
399
+ "context": {
400
+ "shopping": [
401
+ "complete",
402
+ 0
403
+ ]
404
+ },
405
+ "nested": []
406
+ },
407
+ {
408
+ "entity": "gift",
409
+ "data": {
410
+ "name": "Surprise"
411
+ },
412
+ "context": {
413
+ "shopping": [
414
+ "complete",
415
+ 0
416
+ ]
417
+ },
418
+ "nested": []
419
+ }
420
+ ],
421
+ "consent": {
422
+ "functional": true
423
+ },
424
+ "id": "1700000402-gr0up-1",
425
+ "trigger": "load",
426
+ "entity": "order",
427
+ "action": "complete",
428
+ "timestamp": 1700000402,
429
+ "timing": 3.14,
430
+ "group": "gr0up",
431
+ "count": 1,
432
+ "version": {
433
+ "source": "3.4.0-next-1776749829492",
434
+ "tagging": 1
435
+ },
436
+ "source": {
437
+ "type": "web",
438
+ "id": "https://localhost:80",
439
+ "previous_id": "http://remotehost:9001"
440
+ }
441
+ },
442
+ "mapping": {
443
+ "name": "trackEcommerceOrder",
444
+ "data": {
445
+ "set": [
446
+ {
447
+ "loop": [
448
+ "nested",
449
+ {
450
+ "condition": {
451
+ "$code": "e=>v(e)&&\"product\"===e.entity"
452
+ },
453
+ "map": {
454
+ "sku": "data.id",
455
+ "name": "data.name",
456
+ "category": {
457
+ "value": ""
458
+ },
459
+ "price": "data.price",
460
+ "quantity": {
461
+ "value": 1
462
+ }
463
+ }
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "map": {
469
+ "orderId": "data.id",
470
+ "grandTotal": "data.total",
471
+ "tax": "data.taxes",
472
+ "shipping": "data.shipping"
473
+ }
474
+ }
475
+ ]
476
+ }
477
+ },
478
+ "out": [
479
+ [
480
+ "_paq.push",
481
+ [
482
+ "trackEcommerceOrder",
483
+ [
484
+ {
485
+ "sku": "ers",
486
+ "name": "Everyday Ruck Snack",
487
+ "category": "",
488
+ "price": 420,
489
+ "quantity": 1
490
+ },
491
+ {
492
+ "sku": "cc",
493
+ "name": "Cool Cap",
494
+ "category": "",
495
+ "price": 42,
496
+ "quantity": 1
497
+ }
498
+ ],
499
+ {
500
+ "orderId": "0rd3r1d",
501
+ "grandTotal": 555,
502
+ "tax": 73.76,
503
+ "shipping": 5.22
504
+ }
505
+ ]
506
+ ]
507
+ ]
508
+ },
509
+ "goalTracking": {
510
+ "in": {
511
+ "name": "promotion visible",
512
+ "data": {
513
+ "name": "Setting up tracking easily",
514
+ "position": "hero",
515
+ "value": 50
516
+ },
517
+ "context": {
518
+ "ab_test": [
519
+ "engagement",
520
+ 0
521
+ ]
522
+ },
523
+ "globals": {
524
+ "pagegroup": "homepage"
525
+ },
526
+ "custom": {
527
+ "completely": "random"
528
+ },
529
+ "user": {
530
+ "id": "us3r",
531
+ "device": "c00k13",
532
+ "session": "s3ss10n"
533
+ },
534
+ "nested": [
535
+ {
536
+ "entity": "child",
537
+ "data": {
538
+ "is": "subordinated"
539
+ },
540
+ "nested": [],
541
+ "context": {
542
+ "element": [
543
+ "child",
544
+ 0
545
+ ]
546
+ }
547
+ }
548
+ ],
549
+ "consent": {
550
+ "functional": true
551
+ },
552
+ "id": "1700000406-gr0up-1",
553
+ "trigger": "visible",
554
+ "entity": "promotion",
555
+ "action": "visible",
556
+ "timestamp": 1700000406,
557
+ "timing": 3.14,
558
+ "group": "gr0up",
559
+ "count": 1,
560
+ "version": {
561
+ "source": "3.4.0-next-1776749829492",
562
+ "tagging": 1
563
+ },
564
+ "source": {
565
+ "type": "web",
566
+ "id": "https://localhost:80",
567
+ "previous_id": "http://remotehost:9001"
568
+ }
569
+ },
570
+ "mapping": {
571
+ "name": "trackEvent",
572
+ "settings": {
573
+ "goalId": "1",
574
+ "goalValue": "data.value"
575
+ },
576
+ "data": {
577
+ "set": [
578
+ "data.name"
579
+ ]
580
+ }
581
+ },
582
+ "out": [
583
+ [
584
+ "_paq.push",
585
+ [
586
+ "trackEvent",
587
+ "Setting up tracking easily"
588
+ ]
589
+ ],
590
+ [
591
+ "_paq.push",
592
+ [
593
+ "trackGoal",
594
+ "1",
595
+ 50
596
+ ]
597
+ ]
598
+ ]
599
+ },
600
+ "init": {
601
+ "in": {
602
+ "loadScript": true,
603
+ "settings": {
604
+ "siteId": "1",
605
+ "url": "https://analytics.example.com/"
606
+ }
607
+ },
608
+ "out": [
609
+ [
610
+ "_paq.push",
611
+ [
612
+ "setTrackerUrl",
613
+ "https://analytics.example.com/matomo.php"
614
+ ]
615
+ ],
616
+ [
617
+ "_paq.push",
618
+ [
619
+ "setSiteId",
620
+ "1"
621
+ ]
622
+ ],
623
+ [
624
+ "_paq.push",
625
+ [
626
+ "enableLinkTracking"
627
+ ]
628
+ ]
629
+ ]
630
+ },
631
+ "pageView": {
632
+ "in": {
633
+ "name": "page view",
634
+ "data": {
635
+ "domain": "www.example.com",
636
+ "title": "walkerOS documentation",
637
+ "referrer": "https://www.walkeros.io/",
638
+ "search": "?foo=bar",
639
+ "hash": "#hash",
640
+ "id": "/docs/"
641
+ },
642
+ "context": {
643
+ "dev": [
644
+ "test",
645
+ 1
646
+ ]
647
+ },
648
+ "globals": {
649
+ "pagegroup": "docs"
650
+ },
651
+ "custom": {
652
+ "completely": "random"
653
+ },
654
+ "user": {
655
+ "id": "us3r",
656
+ "device": "c00k13",
657
+ "session": "s3ss10n"
658
+ },
659
+ "nested": [
660
+ {
661
+ "entity": "child",
662
+ "data": {
663
+ "is": "subordinated"
664
+ },
665
+ "nested": [],
666
+ "context": {
667
+ "element": [
668
+ "child",
669
+ 0
670
+ ]
671
+ }
672
+ }
673
+ ],
674
+ "consent": {
675
+ "functional": true
676
+ },
677
+ "id": "1700000400-gr0up-1",
678
+ "trigger": "load",
679
+ "entity": "page",
680
+ "action": "view",
681
+ "timestamp": 1700000400,
682
+ "timing": 3.14,
683
+ "group": "gr0up",
684
+ "count": 1,
685
+ "version": {
686
+ "source": "3.4.0-next-1776749829492",
687
+ "tagging": 1
688
+ },
689
+ "source": {
690
+ "type": "web",
691
+ "id": "https://localhost:80",
692
+ "previous_id": "http://remotehost:9001"
693
+ }
694
+ },
695
+ "mapping": {
696
+ "data": "data.title"
697
+ },
698
+ "out": [
699
+ [
700
+ "_paq.push",
701
+ [
702
+ "trackPageView",
703
+ "walkerOS documentation"
704
+ ]
705
+ ]
706
+ ]
707
+ },
708
+ "productDetailView": {
709
+ "in": {
710
+ "name": "product view",
711
+ "data": {
712
+ "id": "ers",
713
+ "name": "Everyday Ruck Snack",
714
+ "color": "black",
715
+ "size": "l",
716
+ "price": 420
717
+ },
718
+ "context": {
719
+ "shopping": [
720
+ "detail",
721
+ 0
722
+ ]
723
+ },
724
+ "globals": {
725
+ "pagegroup": "shop"
726
+ },
727
+ "custom": {
728
+ "completely": "random"
729
+ },
730
+ "user": {
731
+ "id": "us3r",
732
+ "device": "c00k13",
733
+ "session": "s3ss10n"
734
+ },
735
+ "nested": [],
736
+ "consent": {
737
+ "functional": true
738
+ },
739
+ "id": "1700000404-gr0up-1",
740
+ "trigger": "load",
741
+ "entity": "product",
742
+ "action": "view",
743
+ "timestamp": 1700000404,
744
+ "timing": 3.14,
745
+ "group": "gr0up",
746
+ "count": 1,
747
+ "version": {
748
+ "source": "3.4.0-next-1776749829492",
749
+ "tagging": 1
750
+ },
751
+ "source": {
752
+ "type": "web",
753
+ "id": "https://localhost:80",
754
+ "previous_id": "http://remotehost:9001"
755
+ }
756
+ },
757
+ "mapping": {
758
+ "name": "ecommerceProductDetailView",
759
+ "data": {
760
+ "set": [
761
+ {
762
+ "set": [
763
+ {
764
+ "map": {
765
+ "sku": "data.id",
766
+ "name": "data.name",
767
+ "price": "data.price",
768
+ "quantity": {
769
+ "value": 1
770
+ }
771
+ }
772
+ }
773
+ ]
774
+ }
775
+ ]
776
+ }
777
+ },
778
+ "out": [
779
+ [
780
+ "_paq.push",
781
+ [
782
+ "ecommerceProductDetailView",
783
+ [
784
+ {
785
+ "sku": "ers",
786
+ "name": "Everyday Ruck Snack",
787
+ "price": 420,
788
+ "quantity": 1
789
+ }
790
+ ]
791
+ ]
792
+ ]
793
+ ]
794
+ },
795
+ "siteSearch": {
796
+ "in": {
797
+ "name": "search submit",
798
+ "data": {
799
+ "query": "shoes",
800
+ "category": "products",
801
+ "resultsCount": 42
802
+ },
803
+ "context": {
804
+ "dev": [
805
+ "test",
806
+ 1
807
+ ]
808
+ },
809
+ "globals": {
810
+ "lang": "elb"
811
+ },
812
+ "custom": {
813
+ "completely": "random"
814
+ },
815
+ "user": {
816
+ "id": "us3r",
817
+ "device": "c00k13",
818
+ "session": "s3ss10n"
819
+ },
820
+ "nested": [
821
+ {
822
+ "entity": "child",
823
+ "data": {
824
+ "is": "subordinated"
825
+ },
826
+ "nested": [],
827
+ "context": {
828
+ "element": [
829
+ "child",
830
+ 0
831
+ ]
832
+ }
833
+ }
834
+ ],
835
+ "consent": {
836
+ "functional": true
837
+ },
838
+ "id": "1700000405-gr0up-1",
839
+ "trigger": "test",
840
+ "entity": "search",
841
+ "action": "submit",
842
+ "timestamp": 1700000405,
843
+ "timing": 3.14,
844
+ "group": "gr0up",
845
+ "count": 1,
846
+ "version": {
847
+ "source": "3.4.0-next-1776749829492",
848
+ "tagging": 1
849
+ },
850
+ "source": {
851
+ "type": "web",
852
+ "id": "https://localhost:80",
853
+ "previous_id": "http://remotehost:9001"
854
+ }
855
+ },
856
+ "mapping": {
857
+ "name": "trackSiteSearch",
858
+ "settings": {
859
+ "siteSearch": true
860
+ },
861
+ "data": {
862
+ "set": [
863
+ "data.query",
864
+ "data.category",
865
+ "data.resultsCount"
866
+ ]
867
+ }
868
+ },
869
+ "out": [
870
+ [
871
+ "_paq.push",
872
+ [
873
+ "trackSiteSearch",
874
+ "shoes",
875
+ "products",
876
+ 42
877
+ ]
878
+ ]
879
+ ]
880
+ }
881
+ }
882
+ }
883
+ }