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