@walkeros/server-destination-mixpanel 3.3.0-next-1776098542393

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,1095 @@
1
+ {
2
+ "$meta": {
3
+ "package": "@walkeros/server-destination-mixpanel",
4
+ "version": "3.2.0",
5
+ "type": "destination",
6
+ "platform": [
7
+ "server"
8
+ ],
9
+ "docs": "https://www.walkeros.io/docs/destinations/server/mixpanel",
10
+ "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/server/destinations/mixpanel/src"
11
+ },
12
+ "schemas": {
13
+ "mapping": {
14
+ "$schema": "http://json-schema.org/draft-07/schema#",
15
+ "type": "object",
16
+ "properties": {
17
+ "identify": {
18
+ "description": "Per-event identity mapping. Resolves to { distinctId, alias? }. distinctId is passed as distinct_id to all SDK calls."
19
+ },
20
+ "people": {
21
+ "description": "Per-event people operations. Resolves to an object with any of: set, set_once, increment, append, union, remove, unset, delete_user. Each key fires a separate mp.people.* call with distinct_id as first arg."
22
+ },
23
+ "group": {
24
+ "description": "Per-event group association. Resolves to { key, id }. The group key/id is added as a track() property."
25
+ },
26
+ "groupProfile": {
27
+ "description": "Per-event group profile operations. Resolves to { key, id, set?, set_once?, union?, remove?, unset?, delete? }. Fires mp.groups.* calls."
28
+ },
29
+ "useImport": {
30
+ "description": "Per-event import flag. When truthy, uses mp.import() instead of mp.track() for this rule."
31
+ }
32
+ },
33
+ "additionalProperties": false
34
+ },
35
+ "settings": {
36
+ "$schema": "http://json-schema.org/draft-07/schema#",
37
+ "type": "object",
38
+ "properties": {
39
+ "apiKey": {
40
+ "type": "string",
41
+ "minLength": 1,
42
+ "description": "Your Mixpanel project token. Find it in Project Settings > Access Keys. Passed as the first argument to Mixpanel.init()."
43
+ },
44
+ "secret": {
45
+ "type": "string",
46
+ "description": "API secret for the /import endpoint (historical data). Required when useImport is true."
47
+ },
48
+ "host": {
49
+ "type": "string",
50
+ "description": "Mixpanel API host. Default: 'api.mixpanel.com' (US). Use 'api-eu.mixpanel.com' (EU) or 'api-in.mixpanel.com' (India)."
51
+ },
52
+ "protocol": {
53
+ "type": "string",
54
+ "description": "Protocol for API requests. Default: 'https'."
55
+ },
56
+ "keepAlive": {
57
+ "type": "boolean",
58
+ "description": "Reuse HTTP connections. Default: true."
59
+ },
60
+ "geolocate": {
61
+ "type": "boolean",
62
+ "description": "Parse IP for geolocation. Default: false. Server IP caveat: all users map to server location unless $ip is overridden."
63
+ },
64
+ "debug": {
65
+ "type": "boolean",
66
+ "description": "Enable SDK debug logging. Default: false."
67
+ },
68
+ "verbose": {
69
+ "type": "boolean",
70
+ "description": "Enable verbose request logging. Default: false."
71
+ },
72
+ "test": {
73
+ "type": "boolean",
74
+ "description": "Enable dry-run mode. Default: false."
75
+ },
76
+ "useImport": {
77
+ "type": "boolean",
78
+ "description": "Use /import endpoint instead of /track. Accepts events of any age (no 5-day limit). Requires secret for authentication."
79
+ },
80
+ "identify": {
81
+ "description": "walkerOS mapping value resolving to { distinctId, alias? }. distinctId is passed as distinct_id on every SDK call."
82
+ },
83
+ "include": {
84
+ "description": "Event data sections to flatten into track() properties. Example: ['data', 'globals']. Sections are prefixed (data_, globals_, etc.)."
85
+ }
86
+ },
87
+ "required": [
88
+ "apiKey"
89
+ ],
90
+ "additionalProperties": false
91
+ }
92
+ },
93
+ "examples": {
94
+ "env": {
95
+ "push": {
96
+ "Mixpanel": {
97
+ "init": {
98
+ "$code": "function(){return{track:c,import:c,alias:c,people:{...u},groups:{...g}}}"
99
+ }
100
+ }
101
+ },
102
+ "simulation": [
103
+ "call:Mixpanel.init",
104
+ "call:mp.track",
105
+ "call:mp.import",
106
+ "call:mp.alias",
107
+ "call:mp.people.set",
108
+ "call:mp.people.set_once",
109
+ "call:mp.people.increment",
110
+ "call:mp.people.append",
111
+ "call:mp.people.union",
112
+ "call:mp.people.remove",
113
+ "call:mp.people.unset",
114
+ "call:mp.people.delete_user",
115
+ "call:mp.groups.set",
116
+ "call:mp.groups.set_once",
117
+ "call:mp.groups.union",
118
+ "call:mp.groups.remove",
119
+ "call:mp.groups.unset",
120
+ "call:mp.groups.delete_group"
121
+ ]
122
+ },
123
+ "step": {
124
+ "aliasBeforeTrack": {
125
+ "in": {
126
+ "name": "user login",
127
+ "data": {
128
+ "user_id": "new-user-456",
129
+ "anon_id": "anon-789"
130
+ },
131
+ "context": {
132
+ "dev": [
133
+ "test",
134
+ 1
135
+ ]
136
+ },
137
+ "globals": {
138
+ "lang": "elb"
139
+ },
140
+ "custom": {
141
+ "completely": "random"
142
+ },
143
+ "user": {
144
+ "id": "us3r",
145
+ "device": "c00k13",
146
+ "session": "s3ss10n"
147
+ },
148
+ "nested": [
149
+ {
150
+ "entity": "child",
151
+ "data": {
152
+ "is": "subordinated"
153
+ },
154
+ "nested": [],
155
+ "context": {
156
+ "element": [
157
+ "child",
158
+ 0
159
+ ]
160
+ }
161
+ }
162
+ ],
163
+ "consent": {
164
+ "functional": true
165
+ },
166
+ "id": "1700000108-gr0up-1",
167
+ "trigger": "test",
168
+ "entity": "user",
169
+ "action": "login",
170
+ "timestamp": 1700000108,
171
+ "timing": 3.14,
172
+ "group": "gr0up",
173
+ "count": 1,
174
+ "version": {
175
+ "source": "3.2.0",
176
+ "tagging": 1
177
+ },
178
+ "source": {
179
+ "type": "web",
180
+ "id": "https://localhost:80",
181
+ "previous_id": "http://remotehost:9001"
182
+ }
183
+ },
184
+ "mapping": {
185
+ "settings": {
186
+ "identify": {
187
+ "map": {
188
+ "distinctId": "data.user_id",
189
+ "alias": "data.anon_id"
190
+ }
191
+ }
192
+ }
193
+ },
194
+ "out": [
195
+ [
196
+ "mp.alias",
197
+ "new-user-456",
198
+ "anon-789"
199
+ ],
200
+ [
201
+ "mp.track",
202
+ "user login",
203
+ {
204
+ "distinct_id": "new-user-456"
205
+ }
206
+ ]
207
+ ]
208
+ },
209
+ "allPeopleOperations": {
210
+ "in": {
211
+ "name": "profile update",
212
+ "data": {
213
+ "name": "Jane Doe",
214
+ "email": "jane@acme.com",
215
+ "page": "/docs/getting-started",
216
+ "removed_tag": "trial",
217
+ "source": "referral"
218
+ },
219
+ "context": {
220
+ "dev": [
221
+ "test",
222
+ 1
223
+ ]
224
+ },
225
+ "globals": {
226
+ "lang": "elb"
227
+ },
228
+ "custom": {
229
+ "completely": "random"
230
+ },
231
+ "user": {
232
+ "id": "us3r",
233
+ "device": "c00k13",
234
+ "session": "s3ss10n"
235
+ },
236
+ "nested": [
237
+ {
238
+ "entity": "child",
239
+ "data": {
240
+ "is": "subordinated"
241
+ },
242
+ "nested": [],
243
+ "context": {
244
+ "element": [
245
+ "child",
246
+ 0
247
+ ]
248
+ }
249
+ }
250
+ ],
251
+ "consent": {
252
+ "functional": true
253
+ },
254
+ "id": "1700000105-gr0up-1",
255
+ "trigger": "test",
256
+ "entity": "profile",
257
+ "action": "update",
258
+ "timestamp": 1700000105,
259
+ "timing": 3.14,
260
+ "group": "gr0up",
261
+ "count": 1,
262
+ "version": {
263
+ "source": "3.2.0",
264
+ "tagging": 1
265
+ },
266
+ "source": {
267
+ "type": "web",
268
+ "id": "https://localhost:80",
269
+ "previous_id": "http://remotehost:9001"
270
+ }
271
+ },
272
+ "mapping": {
273
+ "skip": true,
274
+ "settings": {
275
+ "identify": {
276
+ "map": {
277
+ "distinctId": "user.id"
278
+ }
279
+ },
280
+ "people": {
281
+ "map": {
282
+ "set": {
283
+ "map": {
284
+ "name": "data.name",
285
+ "email": "data.email"
286
+ }
287
+ },
288
+ "set_once": {
289
+ "map": {
290
+ "signup_source": "data.source"
291
+ }
292
+ },
293
+ "increment": {
294
+ "map": {
295
+ "page_views": {
296
+ "value": 1
297
+ }
298
+ }
299
+ },
300
+ "append": {
301
+ "map": {
302
+ "visited_pages": "data.page"
303
+ }
304
+ },
305
+ "union": {
306
+ "map": {
307
+ "unique_tags": {
308
+ "value": [
309
+ "active"
310
+ ]
311
+ }
312
+ }
313
+ },
314
+ "remove": {
315
+ "map": {
316
+ "tags": "data.removed_tag"
317
+ }
318
+ },
319
+ "unset": {
320
+ "value": [
321
+ "old_plan"
322
+ ]
323
+ }
324
+ }
325
+ }
326
+ }
327
+ },
328
+ "out": [
329
+ [
330
+ "mp.people.set",
331
+ "us3r",
332
+ {
333
+ "name": "Jane Doe",
334
+ "email": "jane@acme.com"
335
+ }
336
+ ],
337
+ [
338
+ "mp.people.set_once",
339
+ "us3r",
340
+ {
341
+ "signup_source": "referral"
342
+ }
343
+ ],
344
+ [
345
+ "mp.people.increment",
346
+ "us3r",
347
+ {
348
+ "page_views": 1
349
+ }
350
+ ],
351
+ [
352
+ "mp.people.append",
353
+ "us3r",
354
+ {
355
+ "visited_pages": "/docs/getting-started"
356
+ }
357
+ ],
358
+ [
359
+ "mp.people.union",
360
+ "us3r",
361
+ {
362
+ "unique_tags": [
363
+ "active"
364
+ ]
365
+ }
366
+ ],
367
+ [
368
+ "mp.people.remove",
369
+ "us3r",
370
+ {
371
+ "tags": "trial"
372
+ }
373
+ ],
374
+ [
375
+ "mp.people.unset",
376
+ "us3r",
377
+ [
378
+ "old_plan"
379
+ ]
380
+ ]
381
+ ]
382
+ },
383
+ "companyGroupProfile": {
384
+ "in": {
385
+ "name": "company update",
386
+ "data": {
387
+ "company_id": "acme-inc",
388
+ "company_name": "Acme, Inc.",
389
+ "plan": "enterprise",
390
+ "employee_count": 250,
391
+ "founded_year": 2010
392
+ },
393
+ "context": {
394
+ "dev": [
395
+ "test",
396
+ 1
397
+ ]
398
+ },
399
+ "globals": {
400
+ "lang": "elb"
401
+ },
402
+ "custom": {
403
+ "completely": "random"
404
+ },
405
+ "user": {
406
+ "id": "us3r",
407
+ "device": "c00k13",
408
+ "session": "s3ss10n"
409
+ },
410
+ "nested": [
411
+ {
412
+ "entity": "child",
413
+ "data": {
414
+ "is": "subordinated"
415
+ },
416
+ "nested": [],
417
+ "context": {
418
+ "element": [
419
+ "child",
420
+ 0
421
+ ]
422
+ }
423
+ }
424
+ ],
425
+ "consent": {
426
+ "functional": true
427
+ },
428
+ "id": "1700000106-gr0up-1",
429
+ "trigger": "test",
430
+ "entity": "company",
431
+ "action": "update",
432
+ "timestamp": 1700000106,
433
+ "timing": 3.14,
434
+ "group": "gr0up",
435
+ "count": 1,
436
+ "version": {
437
+ "source": "3.2.0",
438
+ "tagging": 1
439
+ },
440
+ "source": {
441
+ "type": "web",
442
+ "id": "https://localhost:80",
443
+ "previous_id": "http://remotehost:9001"
444
+ }
445
+ },
446
+ "mapping": {
447
+ "skip": true,
448
+ "settings": {
449
+ "groupProfile": {
450
+ "map": {
451
+ "key": {
452
+ "value": "company_id"
453
+ },
454
+ "id": "data.company_id",
455
+ "set": {
456
+ "map": {
457
+ "name": "data.company_name",
458
+ "plan": "data.plan",
459
+ "employee_count": "data.employee_count"
460
+ }
461
+ },
462
+ "set_once": {
463
+ "map": {
464
+ "founded": "data.founded_year"
465
+ }
466
+ }
467
+ }
468
+ }
469
+ }
470
+ },
471
+ "out": [
472
+ [
473
+ "mp.groups.set",
474
+ "company_id",
475
+ "acme-inc",
476
+ {
477
+ "name": "Acme, Inc.",
478
+ "plan": "enterprise",
479
+ "employee_count": 250
480
+ }
481
+ ],
482
+ [
483
+ "mp.groups.set_once",
484
+ "company_id",
485
+ "acme-inc",
486
+ {
487
+ "founded": 2010
488
+ }
489
+ ]
490
+ ]
491
+ },
492
+ "defaultEventForwarding": {
493
+ "in": {
494
+ "name": "product view",
495
+ "data": {
496
+ "id": "ers",
497
+ "name": "Everyday Ruck Snack",
498
+ "color": "black",
499
+ "size": "l",
500
+ "price": 420
501
+ },
502
+ "context": {
503
+ "shopping": [
504
+ "detail",
505
+ 0
506
+ ]
507
+ },
508
+ "globals": {
509
+ "pagegroup": "shop"
510
+ },
511
+ "custom": {
512
+ "completely": "random"
513
+ },
514
+ "user": {
515
+ "id": "us3r",
516
+ "device": "c00k13",
517
+ "session": "s3ss10n"
518
+ },
519
+ "nested": [],
520
+ "consent": {
521
+ "functional": true
522
+ },
523
+ "id": "1700000100-gr0up-1",
524
+ "trigger": "load",
525
+ "entity": "product",
526
+ "action": "view",
527
+ "timestamp": 1700000100,
528
+ "timing": 3.14,
529
+ "group": "gr0up",
530
+ "count": 1,
531
+ "version": {
532
+ "source": "3.2.0",
533
+ "tagging": 1
534
+ },
535
+ "source": {
536
+ "type": "web",
537
+ "id": "https://localhost:80",
538
+ "previous_id": "http://remotehost:9001"
539
+ }
540
+ },
541
+ "settings": {
542
+ "identify": {
543
+ "map": {
544
+ "distinctId": "user.id"
545
+ }
546
+ }
547
+ },
548
+ "out": [
549
+ "mp.track",
550
+ "product view",
551
+ {
552
+ "distinct_id": "us3r"
553
+ }
554
+ ]
555
+ },
556
+ "historicalImport": {
557
+ "in": {
558
+ "name": "order complete",
559
+ "data": {
560
+ "total": 99.99
561
+ },
562
+ "context": {
563
+ "shopping": [
564
+ "complete",
565
+ 0
566
+ ]
567
+ },
568
+ "globals": {
569
+ "pagegroup": "shop"
570
+ },
571
+ "custom": {
572
+ "completely": "random"
573
+ },
574
+ "user": {
575
+ "id": "us3r",
576
+ "device": "c00k13",
577
+ "session": "s3ss10n"
578
+ },
579
+ "nested": [
580
+ {
581
+ "entity": "product",
582
+ "data": {
583
+ "id": "ers",
584
+ "name": "Everyday Ruck Snack",
585
+ "color": "black",
586
+ "size": "l",
587
+ "price": 420
588
+ },
589
+ "context": {
590
+ "shopping": [
591
+ "complete",
592
+ 0
593
+ ]
594
+ },
595
+ "nested": []
596
+ },
597
+ {
598
+ "entity": "product",
599
+ "data": {
600
+ "id": "cc",
601
+ "name": "Cool Cap",
602
+ "size": "one size",
603
+ "price": 42
604
+ },
605
+ "context": {
606
+ "shopping": [
607
+ "complete",
608
+ 0
609
+ ]
610
+ },
611
+ "nested": []
612
+ },
613
+ {
614
+ "entity": "gift",
615
+ "data": {
616
+ "name": "Surprise"
617
+ },
618
+ "context": {
619
+ "shopping": [
620
+ "complete",
621
+ 0
622
+ ]
623
+ },
624
+ "nested": []
625
+ }
626
+ ],
627
+ "consent": {
628
+ "functional": true
629
+ },
630
+ "id": "1700000107-gr0up-1",
631
+ "trigger": "load",
632
+ "entity": "order",
633
+ "action": "complete",
634
+ "timestamp": 1700000107,
635
+ "timing": 3.14,
636
+ "group": "gr0up",
637
+ "count": 1,
638
+ "version": {
639
+ "source": "3.2.0",
640
+ "tagging": 1
641
+ },
642
+ "source": {
643
+ "type": "web",
644
+ "id": "https://localhost:80",
645
+ "previous_id": "http://remotehost:9001"
646
+ }
647
+ },
648
+ "settings": {
649
+ "useImport": true,
650
+ "identify": {
651
+ "map": {
652
+ "distinctId": "user.id"
653
+ }
654
+ }
655
+ },
656
+ "out": [
657
+ "mp.import",
658
+ "order complete",
659
+ 1700000107,
660
+ {
661
+ "distinct_id": "us3r"
662
+ }
663
+ ]
664
+ },
665
+ "perEventIdentify": {
666
+ "in": {
667
+ "name": "user login",
668
+ "data": {
669
+ "user_id": "resolved-id",
670
+ "plan": "premium"
671
+ },
672
+ "context": {
673
+ "dev": [
674
+ "test",
675
+ 1
676
+ ]
677
+ },
678
+ "globals": {
679
+ "lang": "elb"
680
+ },
681
+ "custom": {
682
+ "completely": "random"
683
+ },
684
+ "user": {
685
+ "id": "us3r",
686
+ "device": "c00k13",
687
+ "session": "s3ss10n"
688
+ },
689
+ "nested": [
690
+ {
691
+ "entity": "child",
692
+ "data": {
693
+ "is": "subordinated"
694
+ },
695
+ "nested": [],
696
+ "context": {
697
+ "element": [
698
+ "child",
699
+ 0
700
+ ]
701
+ }
702
+ }
703
+ ],
704
+ "consent": {
705
+ "functional": true
706
+ },
707
+ "id": "1700000102-gr0up-1",
708
+ "trigger": "test",
709
+ "entity": "user",
710
+ "action": "login",
711
+ "timestamp": 1700000102,
712
+ "timing": 3.14,
713
+ "group": "gr0up",
714
+ "count": 1,
715
+ "version": {
716
+ "source": "3.2.0",
717
+ "tagging": 1
718
+ },
719
+ "source": {
720
+ "type": "web",
721
+ "id": "https://localhost:80",
722
+ "previous_id": "http://remotehost:9001"
723
+ }
724
+ },
725
+ "mapping": {
726
+ "settings": {
727
+ "identify": {
728
+ "map": {
729
+ "distinctId": "data.user_id"
730
+ }
731
+ }
732
+ }
733
+ },
734
+ "out": [
735
+ "mp.track",
736
+ "user login",
737
+ {
738
+ "distinct_id": "resolved-id"
739
+ }
740
+ ]
741
+ },
742
+ "trackWithGroup": {
743
+ "in": {
744
+ "name": "page view",
745
+ "data": {
746
+ "company_id": "acme"
747
+ },
748
+ "context": {
749
+ "dev": [
750
+ "test",
751
+ 1
752
+ ]
753
+ },
754
+ "globals": {
755
+ "pagegroup": "docs"
756
+ },
757
+ "custom": {
758
+ "completely": "random"
759
+ },
760
+ "user": {
761
+ "id": "us3r",
762
+ "device": "c00k13",
763
+ "session": "s3ss10n"
764
+ },
765
+ "nested": [
766
+ {
767
+ "entity": "child",
768
+ "data": {
769
+ "is": "subordinated"
770
+ },
771
+ "nested": [],
772
+ "context": {
773
+ "element": [
774
+ "child",
775
+ 0
776
+ ]
777
+ }
778
+ }
779
+ ],
780
+ "consent": {
781
+ "functional": true
782
+ },
783
+ "id": "1700000103-gr0up-1",
784
+ "trigger": "load",
785
+ "entity": "page",
786
+ "action": "view",
787
+ "timestamp": 1700000103,
788
+ "timing": 3.14,
789
+ "group": "gr0up",
790
+ "count": 1,
791
+ "version": {
792
+ "source": "3.2.0",
793
+ "tagging": 1
794
+ },
795
+ "source": {
796
+ "type": "web",
797
+ "id": "https://localhost:80",
798
+ "previous_id": "http://remotehost:9001"
799
+ }
800
+ },
801
+ "settings": {
802
+ "identify": {
803
+ "map": {
804
+ "distinctId": "user.id"
805
+ }
806
+ }
807
+ },
808
+ "mapping": {
809
+ "settings": {
810
+ "group": {
811
+ "map": {
812
+ "key": {
813
+ "value": "company_id"
814
+ },
815
+ "id": "data.company_id"
816
+ }
817
+ }
818
+ }
819
+ },
820
+ "out": [
821
+ "mp.track",
822
+ "page view",
823
+ {
824
+ "distinct_id": "us3r",
825
+ "company_id": "acme"
826
+ }
827
+ ]
828
+ },
829
+ "trackWithInclude": {
830
+ "in": {
831
+ "name": "product view",
832
+ "data": {
833
+ "id": "ers",
834
+ "name": "Everyday Ruck Snack",
835
+ "color": "black",
836
+ "size": "l",
837
+ "price": 420
838
+ },
839
+ "context": {
840
+ "shopping": [
841
+ "detail",
842
+ 0
843
+ ]
844
+ },
845
+ "globals": {
846
+ "pagegroup": "shop"
847
+ },
848
+ "custom": {
849
+ "completely": "random"
850
+ },
851
+ "user": {
852
+ "id": "us3r",
853
+ "device": "c00k13",
854
+ "session": "s3ss10n"
855
+ },
856
+ "nested": [],
857
+ "consent": {
858
+ "functional": true
859
+ },
860
+ "id": "1700000101-gr0up-1",
861
+ "trigger": "load",
862
+ "entity": "product",
863
+ "action": "view",
864
+ "timestamp": 1700000101,
865
+ "timing": 3.14,
866
+ "group": "gr0up",
867
+ "count": 1,
868
+ "version": {
869
+ "source": "3.2.0",
870
+ "tagging": 1
871
+ },
872
+ "source": {
873
+ "type": "web",
874
+ "id": "https://localhost:80",
875
+ "previous_id": "http://remotehost:9001"
876
+ }
877
+ },
878
+ "settings": {
879
+ "identify": {
880
+ "map": {
881
+ "distinctId": "user.id"
882
+ }
883
+ }
884
+ },
885
+ "configInclude": [
886
+ "data"
887
+ ],
888
+ "out": [
889
+ "mp.track",
890
+ "product view",
891
+ {
892
+ "distinct_id": "us3r",
893
+ "data_id": "ers",
894
+ "data_name": "Everyday Ruck Snack",
895
+ "data_color": "black",
896
+ "data_size": "l",
897
+ "data_price": 420
898
+ }
899
+ ]
900
+ },
901
+ "userLoginPeopleSet": {
902
+ "in": {
903
+ "name": "user login",
904
+ "data": {
905
+ "user_id": "new-user-123",
906
+ "plan": "premium",
907
+ "company": "Acme",
908
+ "email": "user@acme.com"
909
+ },
910
+ "context": {
911
+ "dev": [
912
+ "test",
913
+ 1
914
+ ]
915
+ },
916
+ "globals": {
917
+ "lang": "elb"
918
+ },
919
+ "custom": {
920
+ "completely": "random"
921
+ },
922
+ "user": {
923
+ "id": "us3r",
924
+ "device": "c00k13",
925
+ "session": "s3ss10n"
926
+ },
927
+ "nested": [
928
+ {
929
+ "entity": "child",
930
+ "data": {
931
+ "is": "subordinated"
932
+ },
933
+ "nested": [],
934
+ "context": {
935
+ "element": [
936
+ "child",
937
+ 0
938
+ ]
939
+ }
940
+ }
941
+ ],
942
+ "consent": {
943
+ "functional": true
944
+ },
945
+ "id": "1700000104-gr0up-1",
946
+ "trigger": "test",
947
+ "entity": "user",
948
+ "action": "login",
949
+ "timestamp": 1700000104,
950
+ "timing": 3.14,
951
+ "group": "gr0up",
952
+ "count": 1,
953
+ "version": {
954
+ "source": "3.2.0",
955
+ "tagging": 1
956
+ },
957
+ "source": {
958
+ "type": "web",
959
+ "id": "https://localhost:80",
960
+ "previous_id": "http://remotehost:9001"
961
+ }
962
+ },
963
+ "mapping": {
964
+ "skip": true,
965
+ "settings": {
966
+ "identify": {
967
+ "map": {
968
+ "distinctId": "data.user_id"
969
+ }
970
+ },
971
+ "people": {
972
+ "map": {
973
+ "set": {
974
+ "map": {
975
+ "plan": "data.plan",
976
+ "company": "data.company",
977
+ "email": "data.email"
978
+ }
979
+ },
980
+ "set_once": {
981
+ "map": {
982
+ "first_login": "timestamp"
983
+ }
984
+ },
985
+ "increment": {
986
+ "map": {
987
+ "login_count": {
988
+ "value": 1
989
+ }
990
+ }
991
+ }
992
+ }
993
+ }
994
+ }
995
+ },
996
+ "out": [
997
+ [
998
+ "mp.people.set",
999
+ "new-user-123",
1000
+ {
1001
+ "plan": "premium",
1002
+ "company": "Acme",
1003
+ "email": "user@acme.com"
1004
+ }
1005
+ ],
1006
+ [
1007
+ "mp.people.set_once",
1008
+ "new-user-123",
1009
+ {
1010
+ "first_login": 1700000104
1011
+ }
1012
+ ],
1013
+ [
1014
+ "mp.people.increment",
1015
+ "new-user-123",
1016
+ {
1017
+ "login_count": 1
1018
+ }
1019
+ ]
1020
+ ]
1021
+ },
1022
+ "wildcardIgnored": {
1023
+ "in": {
1024
+ "name": "debug noise",
1025
+ "data": {
1026
+ "string": "foo",
1027
+ "number": 1,
1028
+ "boolean": true,
1029
+ "array": [
1030
+ 0,
1031
+ "text",
1032
+ false
1033
+ ]
1034
+ },
1035
+ "context": {
1036
+ "dev": [
1037
+ "test",
1038
+ 1
1039
+ ]
1040
+ },
1041
+ "globals": {
1042
+ "lang": "elb"
1043
+ },
1044
+ "custom": {
1045
+ "completely": "random"
1046
+ },
1047
+ "user": {
1048
+ "id": "us3r",
1049
+ "device": "c00k13",
1050
+ "session": "s3ss10n"
1051
+ },
1052
+ "nested": [
1053
+ {
1054
+ "entity": "child",
1055
+ "data": {
1056
+ "is": "subordinated"
1057
+ },
1058
+ "nested": [],
1059
+ "context": {
1060
+ "element": [
1061
+ "child",
1062
+ 0
1063
+ ]
1064
+ }
1065
+ }
1066
+ ],
1067
+ "consent": {
1068
+ "functional": true
1069
+ },
1070
+ "id": "1700000109-gr0up-1",
1071
+ "trigger": "test",
1072
+ "entity": "debug",
1073
+ "action": "noise",
1074
+ "timestamp": 1700000109,
1075
+ "timing": 3.14,
1076
+ "group": "gr0up",
1077
+ "count": 1,
1078
+ "version": {
1079
+ "source": "3.2.0",
1080
+ "tagging": 1
1081
+ },
1082
+ "source": {
1083
+ "type": "web",
1084
+ "id": "https://localhost:80",
1085
+ "previous_id": "http://remotehost:9001"
1086
+ }
1087
+ },
1088
+ "mapping": {
1089
+ "ignore": true
1090
+ },
1091
+ "out": []
1092
+ }
1093
+ }
1094
+ }
1095
+ }