@walkeros/web-destination-linkedin 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,796 @@
1
+ {
2
+ "$meta": {
3
+ "package": "@walkeros/web-destination-linkedin",
4
+ "version": "3.2.0",
5
+ "type": "destination",
6
+ "platform": [
7
+ "web"
8
+ ],
9
+ "docs": "https://www.walkeros.io/docs/destinations/web/linkedin",
10
+ "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/linkedin/src"
11
+ },
12
+ "schemas": {
13
+ "mapping": {
14
+ "$schema": "http://json-schema.org/draft-07/schema#",
15
+ "type": "object",
16
+ "properties": {
17
+ "conversion": {
18
+ "description": "Resolves to a LinkedIn conversion object with short keys: { id (required number — the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string for deduplication with a future server/Conversions API destination) }. Events without a resolved id are silently ignored."
19
+ }
20
+ },
21
+ "additionalProperties": false
22
+ },
23
+ "settings": {
24
+ "$schema": "http://json-schema.org/draft-07/schema#",
25
+ "type": "object",
26
+ "properties": {
27
+ "apiKey": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "pattern": "^\\d+$",
31
+ "description": "Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567)."
32
+ }
33
+ },
34
+ "required": [
35
+ "apiKey"
36
+ ],
37
+ "additionalProperties": false
38
+ }
39
+ },
40
+ "examples": {
41
+ "env": {
42
+ "init": {
43
+ "window": {},
44
+ "document": {
45
+ "createElement": {
46
+ "$code": "()=>({src:\"\",async:!1,dataset:{},setAttribute:()=>{},removeAttribute:()=>{}})"
47
+ },
48
+ "head": {
49
+ "appendChild": {
50
+ "$code": "()=>{}"
51
+ }
52
+ },
53
+ "querySelector": {
54
+ "$code": "()=>null"
55
+ }
56
+ }
57
+ },
58
+ "push": {
59
+ "window": {
60
+ "_linkedin_partner_id": "123456",
61
+ "_linkedin_data_partner_ids": [
62
+ "123456"
63
+ ],
64
+ "lintrk": {
65
+ "$code": "()=>{}"
66
+ }
67
+ },
68
+ "document": {
69
+ "createElement": {
70
+ "$code": "()=>({src:\"\",async:!1,dataset:{},setAttribute:()=>{},removeAttribute:()=>{}})"
71
+ },
72
+ "head": {
73
+ "appendChild": {
74
+ "$code": "()=>{}"
75
+ }
76
+ },
77
+ "querySelector": {
78
+ "$code": "()=>null"
79
+ }
80
+ }
81
+ },
82
+ "simulation": [
83
+ "call:window.lintrk"
84
+ ]
85
+ },
86
+ "step": {
87
+ "conversionSkipped": {
88
+ "in": {
89
+ "name": "form submit",
90
+ "data": {
91
+ "string": "foo",
92
+ "number": 1,
93
+ "boolean": true,
94
+ "array": [
95
+ 0,
96
+ "text",
97
+ false
98
+ ]
99
+ },
100
+ "context": {
101
+ "dev": [
102
+ "test",
103
+ 1
104
+ ]
105
+ },
106
+ "globals": {
107
+ "lang": "elb"
108
+ },
109
+ "custom": {
110
+ "completely": "random"
111
+ },
112
+ "user": {
113
+ "id": "us3r",
114
+ "device": "c00k13",
115
+ "session": "s3ss10n"
116
+ },
117
+ "nested": [
118
+ {
119
+ "entity": "child",
120
+ "data": {
121
+ "is": "subordinated"
122
+ },
123
+ "nested": [],
124
+ "context": {
125
+ "element": [
126
+ "child",
127
+ 0
128
+ ]
129
+ }
130
+ }
131
+ ],
132
+ "consent": {
133
+ "functional": true
134
+ },
135
+ "id": "1700000105-gr0up-1",
136
+ "trigger": "test",
137
+ "entity": "form",
138
+ "action": "submit",
139
+ "timestamp": 1700000105,
140
+ "timing": 3.14,
141
+ "group": "gr0up",
142
+ "count": 1,
143
+ "version": {
144
+ "source": "3.2.0",
145
+ "tagging": 1
146
+ },
147
+ "source": {
148
+ "type": "web",
149
+ "id": "https://localhost:80",
150
+ "previous_id": "http://remotehost:9001"
151
+ }
152
+ },
153
+ "mapping": {
154
+ "skip": true,
155
+ "settings": {
156
+ "conversion": {
157
+ "map": {
158
+ "id": {
159
+ "value": 12345
160
+ }
161
+ }
162
+ }
163
+ }
164
+ },
165
+ "out": []
166
+ },
167
+ "demoRequestLead": {
168
+ "in": {
169
+ "name": "demo request",
170
+ "data": {
171
+ "string": "foo",
172
+ "number": 1,
173
+ "boolean": true,
174
+ "array": [
175
+ 0,
176
+ "text",
177
+ false
178
+ ]
179
+ },
180
+ "context": {
181
+ "dev": [
182
+ "test",
183
+ 1
184
+ ]
185
+ },
186
+ "globals": {
187
+ "lang": "elb"
188
+ },
189
+ "custom": {
190
+ "completely": "random"
191
+ },
192
+ "user": {
193
+ "id": "us3r",
194
+ "device": "c00k13",
195
+ "session": "s3ss10n"
196
+ },
197
+ "nested": [
198
+ {
199
+ "entity": "child",
200
+ "data": {
201
+ "is": "subordinated"
202
+ },
203
+ "nested": [],
204
+ "context": {
205
+ "element": [
206
+ "child",
207
+ 0
208
+ ]
209
+ }
210
+ }
211
+ ],
212
+ "consent": {
213
+ "functional": true
214
+ },
215
+ "id": "1700000104-gr0up-1",
216
+ "trigger": "test",
217
+ "entity": "demo",
218
+ "action": "request",
219
+ "timestamp": 1700000104,
220
+ "timing": 3.14,
221
+ "group": "gr0up",
222
+ "count": 1,
223
+ "version": {
224
+ "source": "3.2.0",
225
+ "tagging": 1
226
+ },
227
+ "source": {
228
+ "type": "web",
229
+ "id": "https://localhost:80",
230
+ "previous_id": "http://remotehost:9001"
231
+ }
232
+ },
233
+ "mapping": {
234
+ "settings": {
235
+ "conversion": {
236
+ "map": {
237
+ "id": {
238
+ "value": 44444
239
+ },
240
+ "eventId": "id"
241
+ }
242
+ }
243
+ }
244
+ },
245
+ "out": [
246
+ "lintrk",
247
+ "track",
248
+ {
249
+ "conversion_id": 44444,
250
+ "event_id": "1700000104-gr0up-1"
251
+ }
252
+ ]
253
+ },
254
+ "missingConversionIdIgnored": {
255
+ "in": {
256
+ "name": "form submit",
257
+ "data": {
258
+ "string": "foo",
259
+ "number": 1,
260
+ "boolean": true,
261
+ "array": [
262
+ 0,
263
+ "text",
264
+ false
265
+ ]
266
+ },
267
+ "context": {
268
+ "dev": [
269
+ "test",
270
+ 1
271
+ ]
272
+ },
273
+ "globals": {
274
+ "lang": "elb"
275
+ },
276
+ "custom": {
277
+ "completely": "random"
278
+ },
279
+ "user": {
280
+ "id": "us3r",
281
+ "device": "c00k13",
282
+ "session": "s3ss10n"
283
+ },
284
+ "nested": [
285
+ {
286
+ "entity": "child",
287
+ "data": {
288
+ "is": "subordinated"
289
+ },
290
+ "nested": [],
291
+ "context": {
292
+ "element": [
293
+ "child",
294
+ 0
295
+ ]
296
+ }
297
+ }
298
+ ],
299
+ "consent": {
300
+ "functional": true
301
+ },
302
+ "id": "1700000106-gr0up-1",
303
+ "trigger": "test",
304
+ "entity": "form",
305
+ "action": "submit",
306
+ "timestamp": 1700000106,
307
+ "timing": 3.14,
308
+ "group": "gr0up",
309
+ "count": 1,
310
+ "version": {
311
+ "source": "3.2.0",
312
+ "tagging": 1
313
+ },
314
+ "source": {
315
+ "type": "web",
316
+ "id": "https://localhost:80",
317
+ "previous_id": "http://remotehost:9001"
318
+ }
319
+ },
320
+ "mapping": {
321
+ "settings": {
322
+ "conversion": {
323
+ "map": {
324
+ "id": "data.nonexistentField"
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "out": []
330
+ },
331
+ "orderCompleteFullConversion": {
332
+ "in": {
333
+ "name": "order complete",
334
+ "data": {
335
+ "id": "0rd3r1d",
336
+ "currency": "EUR",
337
+ "shipping": 5.22,
338
+ "taxes": 73.76,
339
+ "total": 555
340
+ },
341
+ "context": {
342
+ "shopping": [
343
+ "complete",
344
+ 0
345
+ ]
346
+ },
347
+ "globals": {
348
+ "pagegroup": "shop"
349
+ },
350
+ "custom": {
351
+ "completely": "random"
352
+ },
353
+ "user": {
354
+ "id": "us3r",
355
+ "device": "c00k13",
356
+ "session": "s3ss10n"
357
+ },
358
+ "nested": [
359
+ {
360
+ "entity": "product",
361
+ "data": {
362
+ "id": "ers",
363
+ "name": "Everyday Ruck Snack",
364
+ "color": "black",
365
+ "size": "l",
366
+ "price": 420
367
+ },
368
+ "context": {
369
+ "shopping": [
370
+ "complete",
371
+ 0
372
+ ]
373
+ },
374
+ "nested": []
375
+ },
376
+ {
377
+ "entity": "product",
378
+ "data": {
379
+ "id": "cc",
380
+ "name": "Cool Cap",
381
+ "size": "one size",
382
+ "price": 42
383
+ },
384
+ "context": {
385
+ "shopping": [
386
+ "complete",
387
+ 0
388
+ ]
389
+ },
390
+ "nested": []
391
+ },
392
+ {
393
+ "entity": "gift",
394
+ "data": {
395
+ "name": "Surprise"
396
+ },
397
+ "context": {
398
+ "shopping": [
399
+ "complete",
400
+ 0
401
+ ]
402
+ },
403
+ "nested": []
404
+ }
405
+ ],
406
+ "consent": {
407
+ "functional": true
408
+ },
409
+ "id": "1700000102-gr0up-1",
410
+ "trigger": "load",
411
+ "entity": "order",
412
+ "action": "complete",
413
+ "timestamp": 1700000102,
414
+ "timing": 3.14,
415
+ "group": "gr0up",
416
+ "count": 1,
417
+ "version": {
418
+ "source": "3.2.0",
419
+ "tagging": 1
420
+ },
421
+ "source": {
422
+ "type": "web",
423
+ "id": "https://localhost:80",
424
+ "previous_id": "http://remotehost:9001"
425
+ }
426
+ },
427
+ "mapping": {
428
+ "settings": {
429
+ "conversion": {
430
+ "map": {
431
+ "id": {
432
+ "value": 67890
433
+ },
434
+ "value": "data.total",
435
+ "currency": {
436
+ "key": "data.currency",
437
+ "value": "EUR"
438
+ },
439
+ "eventId": "id"
440
+ }
441
+ }
442
+ }
443
+ },
444
+ "out": [
445
+ "lintrk",
446
+ "track",
447
+ {
448
+ "conversion_id": 67890,
449
+ "conversion_value": 555,
450
+ "currency": "EUR",
451
+ "event_id": "1700000102-gr0up-1"
452
+ }
453
+ ]
454
+ },
455
+ "pageViewConversion": {
456
+ "in": {
457
+ "name": "page view",
458
+ "data": {
459
+ "domain": "www.example.com",
460
+ "title": "walkerOS documentation",
461
+ "referrer": "https://www.walkeros.io/",
462
+ "search": "?foo=bar",
463
+ "hash": "#hash",
464
+ "id": "/docs/"
465
+ },
466
+ "context": {
467
+ "dev": [
468
+ "test",
469
+ 1
470
+ ]
471
+ },
472
+ "globals": {
473
+ "pagegroup": "docs"
474
+ },
475
+ "custom": {
476
+ "completely": "random"
477
+ },
478
+ "user": {
479
+ "id": "us3r",
480
+ "device": "c00k13",
481
+ "session": "s3ss10n"
482
+ },
483
+ "nested": [
484
+ {
485
+ "entity": "child",
486
+ "data": {
487
+ "is": "subordinated"
488
+ },
489
+ "nested": [],
490
+ "context": {
491
+ "element": [
492
+ "child",
493
+ 0
494
+ ]
495
+ }
496
+ }
497
+ ],
498
+ "consent": {
499
+ "functional": true
500
+ },
501
+ "id": "1700000103-gr0up-1",
502
+ "trigger": "load",
503
+ "entity": "page",
504
+ "action": "view",
505
+ "timestamp": 1700000103,
506
+ "timing": 3.14,
507
+ "group": "gr0up",
508
+ "count": 1,
509
+ "version": {
510
+ "source": "3.2.0",
511
+ "tagging": 1
512
+ },
513
+ "source": {
514
+ "type": "web",
515
+ "id": "https://localhost:80",
516
+ "previous_id": "http://remotehost:9001"
517
+ }
518
+ },
519
+ "mapping": {
520
+ "settings": {
521
+ "conversion": {
522
+ "map": {
523
+ "id": {
524
+ "value": 11111
525
+ },
526
+ "eventId": "id"
527
+ }
528
+ }
529
+ }
530
+ },
531
+ "out": [
532
+ "lintrk",
533
+ "track",
534
+ {
535
+ "conversion_id": 11111,
536
+ "event_id": "1700000103-gr0up-1"
537
+ }
538
+ ]
539
+ },
540
+ "partialFieldsOmitted": {
541
+ "in": {
542
+ "name": "order complete",
543
+ "data": {
544
+ "id": "0rd3r1d",
545
+ "currency": "EUR",
546
+ "shipping": 5.22,
547
+ "taxes": 73.76,
548
+ "total": 555
549
+ },
550
+ "context": {
551
+ "shopping": [
552
+ "complete",
553
+ 0
554
+ ]
555
+ },
556
+ "globals": {
557
+ "pagegroup": "shop"
558
+ },
559
+ "custom": {
560
+ "completely": "random"
561
+ },
562
+ "user": {
563
+ "id": "us3r",
564
+ "device": "c00k13",
565
+ "session": "s3ss10n"
566
+ },
567
+ "nested": [
568
+ {
569
+ "entity": "product",
570
+ "data": {
571
+ "id": "ers",
572
+ "name": "Everyday Ruck Snack",
573
+ "color": "black",
574
+ "size": "l",
575
+ "price": 420
576
+ },
577
+ "context": {
578
+ "shopping": [
579
+ "complete",
580
+ 0
581
+ ]
582
+ },
583
+ "nested": []
584
+ },
585
+ {
586
+ "entity": "product",
587
+ "data": {
588
+ "id": "cc",
589
+ "name": "Cool Cap",
590
+ "size": "one size",
591
+ "price": 42
592
+ },
593
+ "context": {
594
+ "shopping": [
595
+ "complete",
596
+ 0
597
+ ]
598
+ },
599
+ "nested": []
600
+ },
601
+ {
602
+ "entity": "gift",
603
+ "data": {
604
+ "name": "Surprise"
605
+ },
606
+ "context": {
607
+ "shopping": [
608
+ "complete",
609
+ 0
610
+ ]
611
+ },
612
+ "nested": []
613
+ }
614
+ ],
615
+ "consent": {
616
+ "functional": true
617
+ },
618
+ "id": "1700000107-gr0up-1",
619
+ "trigger": "load",
620
+ "entity": "order",
621
+ "action": "complete",
622
+ "timestamp": 1700000107,
623
+ "timing": 3.14,
624
+ "group": "gr0up",
625
+ "count": 1,
626
+ "version": {
627
+ "source": "3.2.0",
628
+ "tagging": 1
629
+ },
630
+ "source": {
631
+ "type": "web",
632
+ "id": "https://localhost:80",
633
+ "previous_id": "http://remotehost:9001"
634
+ }
635
+ },
636
+ "mapping": {
637
+ "settings": {
638
+ "conversion": {
639
+ "map": {
640
+ "id": {
641
+ "value": 67890
642
+ },
643
+ "value": "data.missingTotal",
644
+ "eventId": "id"
645
+ }
646
+ }
647
+ }
648
+ },
649
+ "out": [
650
+ "lintrk",
651
+ "track",
652
+ {
653
+ "conversion_id": 67890,
654
+ "event_id": "1700000107-gr0up-1"
655
+ }
656
+ ]
657
+ },
658
+ "simpleConversionId": {
659
+ "in": {
660
+ "name": "form submit",
661
+ "data": {
662
+ "string": "foo",
663
+ "number": 1,
664
+ "boolean": true,
665
+ "array": [
666
+ 0,
667
+ "text",
668
+ false
669
+ ]
670
+ },
671
+ "context": {
672
+ "dev": [
673
+ "test",
674
+ 1
675
+ ]
676
+ },
677
+ "globals": {
678
+ "lang": "elb"
679
+ },
680
+ "custom": {
681
+ "completely": "random"
682
+ },
683
+ "user": {
684
+ "id": "us3r",
685
+ "device": "c00k13",
686
+ "session": "s3ss10n"
687
+ },
688
+ "nested": [
689
+ {
690
+ "entity": "child",
691
+ "data": {
692
+ "is": "subordinated"
693
+ },
694
+ "nested": [],
695
+ "context": {
696
+ "element": [
697
+ "child",
698
+ 0
699
+ ]
700
+ }
701
+ }
702
+ ],
703
+ "consent": {
704
+ "functional": true
705
+ },
706
+ "id": "1700000101-gr0up-1",
707
+ "trigger": "test",
708
+ "entity": "form",
709
+ "action": "submit",
710
+ "timestamp": 1700000101,
711
+ "timing": 3.14,
712
+ "group": "gr0up",
713
+ "count": 1,
714
+ "version": {
715
+ "source": "3.2.0",
716
+ "tagging": 1
717
+ },
718
+ "source": {
719
+ "type": "web",
720
+ "id": "https://localhost:80",
721
+ "previous_id": "http://remotehost:9001"
722
+ }
723
+ },
724
+ "mapping": {
725
+ "settings": {
726
+ "conversion": {
727
+ "map": {
728
+ "id": {
729
+ "value": 12345
730
+ }
731
+ }
732
+ }
733
+ }
734
+ },
735
+ "out": [
736
+ "lintrk",
737
+ "track",
738
+ {
739
+ "conversion_id": 12345
740
+ }
741
+ ]
742
+ },
743
+ "unmappedEventIgnored": {
744
+ "in": {
745
+ "name": "product view",
746
+ "data": {
747
+ "id": "ers",
748
+ "name": "Everyday Ruck Snack",
749
+ "color": "black",
750
+ "size": "l",
751
+ "price": 420
752
+ },
753
+ "context": {
754
+ "shopping": [
755
+ "detail",
756
+ 0
757
+ ]
758
+ },
759
+ "globals": {
760
+ "pagegroup": "shop"
761
+ },
762
+ "custom": {
763
+ "completely": "random"
764
+ },
765
+ "user": {
766
+ "id": "us3r",
767
+ "device": "c00k13",
768
+ "session": "s3ss10n"
769
+ },
770
+ "nested": [],
771
+ "consent": {
772
+ "functional": true
773
+ },
774
+ "id": "1700000100-gr0up-1",
775
+ "trigger": "load",
776
+ "entity": "product",
777
+ "action": "view",
778
+ "timestamp": 1700000100,
779
+ "timing": 3.14,
780
+ "group": "gr0up",
781
+ "count": 1,
782
+ "version": {
783
+ "source": "3.2.0",
784
+ "tagging": 1
785
+ },
786
+ "source": {
787
+ "type": "web",
788
+ "id": "https://localhost:80",
789
+ "previous_id": "http://remotehost:9001"
790
+ }
791
+ },
792
+ "out": []
793
+ }
794
+ }
795
+ }
796
+ }