@walkeros/web-destination-meta 2.0.0 → 2.1.0

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-meta",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "type": "destination",
6
6
  "platform": "web"
7
7
  },
@@ -95,274 +95,542 @@
95
95
  }
96
96
  }
97
97
  },
98
- "events": {
99
- "AddToCart": {
100
- "$code": "function Gg(){const e=Wg(\"product add\");return[\"track\",\"AddToCart\",{currency:\"EUR\",value:e.data.price,contents:[{id:e.data.id,quantity:1}],content_type:\"product\"},{eventID:e.id}]}"
101
- },
102
- "InitiateCheckout": {
103
- "$code": "function Bg(){const e=Wg(\"cart view\");return[\"track\",\"InitiateCheckout\",{currency:\"EUR\",value:e.data.value,contents:e.nested.filter(e=>\"product\"===e.entity).map(e=>({id:e.data.id,quantity:e.data.quantity})),num_items:e.nested.filter(e=>\"product\"===e.entity).length},{eventID:e.id}]}"
104
- },
105
- "Purchase": {
106
- "$code": "function qg(){const e=Wg(\"order complete\");return[\"track\",\"Purchase\",{value:e.data.total,currency:\"EUR\",contents:e.nested.filter(e=>\"product\"===e.entity).map(e=>({id:e.data.id,quantity:1})),content_type:\"product\",num_items:2},{eventID:e.id}]}"
107
- },
108
- "ViewContent": {
109
- "$code": "function Kg(){const e=Wg(\"product view\");return[\"track\",\"ViewContent\",{currency:\"EUR\",value:e.data.price,contents:[{id:e.data.id,quantity:1}],content_type:\"product\"},{eventID:e.id}]}"
110
- }
111
- },
112
- "mapping": {
113
- "AddToCart": {
114
- "name": "AddToCart",
115
- "data": {
116
- "map": {
117
- "value": "data.price",
118
- "currency": {
119
- "value": "EUR"
120
- },
121
- "contents": {
122
- "set": [
123
- {
124
- "map": {
125
- "id": "data.id",
126
- "quantity": {
127
- "key": "data.quantity",
128
- "value": 1
98
+ "step": {
99
+ "addToCart": {
100
+ "in": {
101
+ "name": "product add",
102
+ "data": {
103
+ "id": "ers",
104
+ "name": "Everyday Ruck Snack",
105
+ "color": "black",
106
+ "size": "l",
107
+ "price": 420
108
+ },
109
+ "context": {
110
+ "shopping": [
111
+ "intent",
112
+ 0
113
+ ]
114
+ },
115
+ "globals": {
116
+ "pagegroup": "shop"
117
+ },
118
+ "custom": {
119
+ "completely": "random"
120
+ },
121
+ "user": {
122
+ "id": "us3r",
123
+ "device": "c00k13",
124
+ "session": "s3ss10n"
125
+ },
126
+ "nested": [],
127
+ "consent": {
128
+ "functional": true
129
+ },
130
+ "id": "1700000001-gr0up-1",
131
+ "trigger": "click",
132
+ "entity": "product",
133
+ "action": "add",
134
+ "timestamp": 1700000001,
135
+ "timing": 3.14,
136
+ "group": "gr0up",
137
+ "count": 1,
138
+ "version": {
139
+ "source": "2.0.1",
140
+ "tagging": 1
141
+ },
142
+ "source": {
143
+ "type": "web",
144
+ "id": "https://localhost:80",
145
+ "previous_id": "http://remotehost:9001"
146
+ }
147
+ },
148
+ "mapping": {
149
+ "name": "AddToCart",
150
+ "data": {
151
+ "map": {
152
+ "value": "data.price",
153
+ "currency": {
154
+ "value": "EUR"
155
+ },
156
+ "contents": {
157
+ "set": [
158
+ {
159
+ "map": {
160
+ "id": "data.id",
161
+ "quantity": {
162
+ "key": "data.quantity",
163
+ "value": 1
164
+ }
129
165
  }
130
166
  }
131
- }
132
- ]
133
- },
134
- "content_type": {
135
- "value": "product"
167
+ ]
168
+ },
169
+ "content_type": {
170
+ "value": "product"
171
+ }
136
172
  }
137
173
  }
138
- }
174
+ },
175
+ "out": [
176
+ "track",
177
+ "AddToCart",
178
+ {
179
+ "currency": "EUR",
180
+ "value": 420,
181
+ "contents": [
182
+ {
183
+ "id": "ers",
184
+ "quantity": 1
185
+ }
186
+ ],
187
+ "content_type": "product"
188
+ },
189
+ {
190
+ "eventID": "1700000001-gr0up-1"
191
+ }
192
+ ]
139
193
  },
140
- "InitiateCheckout": {
141
- "name": "InitiateCheckout",
142
- "data": {
143
- "map": {
144
- "value": "data.value",
145
- "currency": {
146
- "value": "EUR"
147
- },
148
- "contents": {
149
- "loop": [
150
- "nested",
151
- {
152
- "condition": {
153
- "$code": "e=>Mg(e)&&\"product\"===e.entity"
154
- },
155
- "map": {
156
- "id": "data.id",
157
- "quantity": {
158
- "key": "data.quantity",
159
- "value": 1
194
+ "initiateCheckout": {
195
+ "in": {
196
+ "name": "cart view",
197
+ "data": {
198
+ "currency": "EUR",
199
+ "value": 840
200
+ },
201
+ "context": {
202
+ "shopping": [
203
+ "cart",
204
+ 0
205
+ ]
206
+ },
207
+ "globals": {
208
+ "pagegroup": "shop"
209
+ },
210
+ "custom": {
211
+ "completely": "random"
212
+ },
213
+ "user": {
214
+ "id": "us3r",
215
+ "device": "c00k13",
216
+ "session": "s3ss10n"
217
+ },
218
+ "nested": [
219
+ {
220
+ "entity": "product",
221
+ "data": {
222
+ "id": "ers",
223
+ "name": "Everyday Ruck Snack",
224
+ "color": "black",
225
+ "size": "l",
226
+ "price": 420,
227
+ "quantity": 2
228
+ },
229
+ "context": {
230
+ "shopping": [
231
+ "cart",
232
+ 0
233
+ ]
234
+ },
235
+ "nested": []
236
+ }
237
+ ],
238
+ "consent": {
239
+ "functional": true
240
+ },
241
+ "id": "1700000003-gr0up-1",
242
+ "trigger": "load",
243
+ "entity": "cart",
244
+ "action": "view",
245
+ "timestamp": 1700000003,
246
+ "timing": 3.14,
247
+ "group": "gr0up",
248
+ "count": 1,
249
+ "version": {
250
+ "source": "2.0.1",
251
+ "tagging": 1
252
+ },
253
+ "source": {
254
+ "type": "web",
255
+ "id": "https://localhost:80",
256
+ "previous_id": "http://remotehost:9001"
257
+ }
258
+ },
259
+ "mapping": {
260
+ "name": "InitiateCheckout",
261
+ "data": {
262
+ "map": {
263
+ "value": "data.value",
264
+ "currency": {
265
+ "value": "EUR"
266
+ },
267
+ "contents": {
268
+ "loop": [
269
+ "nested",
270
+ {
271
+ "condition": {
272
+ "$code": "e=>sh(e)&&\"product\"===e.entity"
273
+ },
274
+ "map": {
275
+ "id": "data.id",
276
+ "quantity": {
277
+ "key": "data.quantity",
278
+ "value": 1
279
+ }
160
280
  }
161
281
  }
282
+ ]
283
+ },
284
+ "num_items": {
285
+ "fn": {
286
+ "$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
162
287
  }
163
- ]
164
- },
165
- "num_items": {
166
- "fn": {
167
- "$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
168
288
  }
169
289
  }
170
290
  }
171
- }
291
+ },
292
+ "out": [
293
+ "track",
294
+ "InitiateCheckout",
295
+ {
296
+ "currency": "EUR",
297
+ "value": 840,
298
+ "contents": [
299
+ {
300
+ "id": "ers",
301
+ "quantity": 2
302
+ }
303
+ ],
304
+ "num_items": 1
305
+ },
306
+ {
307
+ "eventID": "1700000003-gr0up-1"
308
+ }
309
+ ]
172
310
  },
173
- "Purchase": {
174
- "name": "Purchase",
175
- "data": {
176
- "map": {
177
- "value": "data.total",
178
- "currency": {
179
- "value": "EUR"
180
- },
181
- "contents": {
182
- "loop": [
183
- "nested",
184
- {
185
- "condition": {
186
- "$code": "e=>Mg(e)&&\"product\"===e.entity"
187
- },
188
- "map": {
189
- "id": "data.id",
190
- "quantity": {
191
- "key": "data.quantity",
192
- "value": 1
193
- }
194
- }
195
- }
196
- ]
197
- },
198
- "content_type": {
199
- "value": "product"
200
- },
201
- "num_items": {
202
- "fn": {
203
- "$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
311
+ "pageView": {
312
+ "in": {
313
+ "name": "page view",
314
+ "data": {
315
+ "domain": "www.example.com",
316
+ "title": "walkerOS documentation",
317
+ "referrer": "https://www.walkeros.io/",
318
+ "search": "?foo=bar",
319
+ "hash": "#hash",
320
+ "id": "/docs/"
321
+ },
322
+ "context": {
323
+ "dev": [
324
+ "test",
325
+ 1
326
+ ]
327
+ },
328
+ "globals": {
329
+ "pagegroup": "docs"
330
+ },
331
+ "custom": {
332
+ "completely": "random"
333
+ },
334
+ "user": {
335
+ "id": "us3r",
336
+ "device": "c00k13",
337
+ "session": "s3ss10n"
338
+ },
339
+ "nested": [
340
+ {
341
+ "entity": "child",
342
+ "data": {
343
+ "is": "subordinated"
344
+ },
345
+ "nested": [],
346
+ "context": {
347
+ "element": [
348
+ "child",
349
+ 0
350
+ ]
204
351
  }
205
352
  }
353
+ ],
354
+ "consent": {
355
+ "functional": true
356
+ },
357
+ "id": "1700000004-gr0up-1",
358
+ "trigger": "load",
359
+ "entity": "page",
360
+ "action": "view",
361
+ "timestamp": 1700000004,
362
+ "timing": 3.14,
363
+ "group": "gr0up",
364
+ "count": 1,
365
+ "version": {
366
+ "source": "2.0.1",
367
+ "tagging": 1
368
+ },
369
+ "source": {
370
+ "type": "web",
371
+ "id": "https://localhost:80",
372
+ "previous_id": "http://remotehost:9001"
206
373
  }
207
- }
374
+ },
375
+ "out": [
376
+ "track",
377
+ "PageView",
378
+ {},
379
+ {
380
+ "eventID": "1700000004-gr0up-1"
381
+ }
382
+ ]
208
383
  },
209
- "ViewContent": {
210
- "name": "ViewContent",
211
- "data": {
212
- "map": {
213
- "value": "data.price",
214
- "currency": {
215
- "value": "EUR"
384
+ "purchase": {
385
+ "in": {
386
+ "name": "order complete",
387
+ "data": {
388
+ "id": "0rd3r1d",
389
+ "currency": "EUR",
390
+ "shipping": 5.22,
391
+ "taxes": 73.76,
392
+ "total": 555
393
+ },
394
+ "context": {
395
+ "shopping": [
396
+ "complete",
397
+ 0
398
+ ]
399
+ },
400
+ "globals": {
401
+ "pagegroup": "shop"
402
+ },
403
+ "custom": {
404
+ "completely": "random"
405
+ },
406
+ "user": {
407
+ "id": "us3r",
408
+ "device": "c00k13",
409
+ "session": "s3ss10n"
410
+ },
411
+ "nested": [
412
+ {
413
+ "entity": "product",
414
+ "data": {
415
+ "id": "ers",
416
+ "name": "Everyday Ruck Snack",
417
+ "color": "black",
418
+ "size": "l",
419
+ "price": 420
420
+ },
421
+ "context": {
422
+ "shopping": [
423
+ "complete",
424
+ 0
425
+ ]
426
+ },
427
+ "nested": []
216
428
  },
217
- "content_type": {
218
- "value": "product"
429
+ {
430
+ "entity": "product",
431
+ "data": {
432
+ "id": "cc",
433
+ "name": "Cool Cap",
434
+ "size": "one size",
435
+ "price": 42
436
+ },
437
+ "context": {
438
+ "shopping": [
439
+ "complete",
440
+ 0
441
+ ]
442
+ },
443
+ "nested": []
219
444
  },
220
- "contents": {
221
- "set": [
222
- {
223
- "map": {
224
- "id": "data.id",
225
- "quantity": {
226
- "key": "data.quantity",
227
- "value": 1
228
- }
229
- }
230
- }
231
- ]
445
+ {
446
+ "entity": "gift",
447
+ "data": {
448
+ "name": "Surprise"
449
+ },
450
+ "context": {
451
+ "shopping": [
452
+ "complete",
453
+ 0
454
+ ]
455
+ },
456
+ "nested": []
232
457
  }
458
+ ],
459
+ "consent": {
460
+ "functional": true
461
+ },
462
+ "id": "1700000000-gr0up-1",
463
+ "trigger": "load",
464
+ "entity": "order",
465
+ "action": "complete",
466
+ "timestamp": 1700000000,
467
+ "timing": 3.14,
468
+ "group": "gr0up",
469
+ "count": 1,
470
+ "version": {
471
+ "source": "2.0.1",
472
+ "tagging": 1
473
+ },
474
+ "source": {
475
+ "type": "web",
476
+ "id": "https://localhost:80",
477
+ "previous_id": "http://remotehost:9001"
233
478
  }
234
- }
235
- },
236
- "config": {
237
- "order": {
238
- "complete": {
239
- "name": "Purchase",
240
- "data": {
241
- "map": {
242
- "value": "data.total",
243
- "currency": {
244
- "value": "EUR"
245
- },
246
- "contents": {
247
- "loop": [
248
- "nested",
249
- {
250
- "condition": {
251
- "$code": "e=>Mg(e)&&\"product\"===e.entity"
252
- },
253
- "map": {
254
- "id": "data.id",
255
- "quantity": {
256
- "key": "data.quantity",
257
- "value": 1
258
- }
479
+ },
480
+ "mapping": {
481
+ "name": "Purchase",
482
+ "data": {
483
+ "map": {
484
+ "value": "data.total",
485
+ "currency": {
486
+ "value": "EUR"
487
+ },
488
+ "contents": {
489
+ "loop": [
490
+ "nested",
491
+ {
492
+ "condition": {
493
+ "$code": "e=>sh(e)&&\"product\"===e.entity"
494
+ },
495
+ "map": {
496
+ "id": "data.id",
497
+ "quantity": {
498
+ "key": "data.quantity",
499
+ "value": 1
259
500
  }
260
501
  }
261
- ]
262
- },
263
- "content_type": {
264
- "value": "product"
265
- },
266
- "num_items": {
267
- "fn": {
268
- "$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
269
502
  }
503
+ ]
504
+ },
505
+ "content_type": {
506
+ "value": "product"
507
+ },
508
+ "num_items": {
509
+ "fn": {
510
+ "$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
270
511
  }
271
512
  }
272
513
  }
273
514
  }
274
515
  },
275
- "product": {
276
- "view": {
277
- "name": "ViewContent",
278
- "data": {
279
- "map": {
280
- "value": "data.price",
281
- "currency": {
282
- "value": "EUR"
283
- },
284
- "content_type": {
285
- "value": "product"
286
- },
287
- "contents": {
288
- "set": [
289
- {
290
- "map": {
291
- "id": "data.id",
292
- "quantity": {
293
- "key": "data.quantity",
294
- "value": 1
295
- }
296
- }
297
- }
298
- ]
299
- }
516
+ "out": [
517
+ "track",
518
+ "Purchase",
519
+ {
520
+ "value": 555,
521
+ "currency": "EUR",
522
+ "contents": [
523
+ {
524
+ "id": "ers",
525
+ "quantity": 1
526
+ },
527
+ {
528
+ "id": "cc",
529
+ "quantity": 1
300
530
  }
301
- }
531
+ ],
532
+ "content_type": "product",
533
+ "num_items": 2
302
534
  },
303
- "add": {
304
- "name": "AddToCart",
305
- "data": {
306
- "map": {
307
- "value": "data.price",
308
- "currency": {
309
- "value": "EUR"
310
- },
311
- "contents": {
312
- "set": [
313
- {
314
- "map": {
315
- "id": "data.id",
316
- "quantity": {
317
- "key": "data.quantity",
318
- "value": 1
319
- }
320
- }
321
- }
322
- ]
323
- },
324
- "content_type": {
325
- "value": "product"
326
- }
327
- }
328
- }
535
+ {
536
+ "eventID": "1700000000-gr0up-1"
537
+ }
538
+ ]
539
+ },
540
+ "viewContent": {
541
+ "in": {
542
+ "name": "product view",
543
+ "data": {
544
+ "id": "ers",
545
+ "name": "Everyday Ruck Snack",
546
+ "color": "black",
547
+ "size": "l",
548
+ "price": 420
549
+ },
550
+ "context": {
551
+ "shopping": [
552
+ "detail",
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
+ "consent": {
569
+ "functional": true
570
+ },
571
+ "id": "1700000002-gr0up-1",
572
+ "trigger": "load",
573
+ "entity": "product",
574
+ "action": "view",
575
+ "timestamp": 1700000002,
576
+ "timing": 3.14,
577
+ "group": "gr0up",
578
+ "count": 1,
579
+ "version": {
580
+ "source": "2.0.1",
581
+ "tagging": 1
582
+ },
583
+ "source": {
584
+ "type": "web",
585
+ "id": "https://localhost:80",
586
+ "previous_id": "http://remotehost:9001"
329
587
  }
330
588
  },
331
- "cart": {
332
- "view": {
333
- "name": "InitiateCheckout",
334
- "data": {
335
- "map": {
336
- "value": "data.value",
337
- "currency": {
338
- "value": "EUR"
339
- },
340
- "contents": {
341
- "loop": [
342
- "nested",
343
- {
344
- "condition": {
345
- "$code": "e=>Mg(e)&&\"product\"===e.entity"
346
- },
347
- "map": {
348
- "id": "data.id",
349
- "quantity": {
350
- "key": "data.quantity",
351
- "value": 1
352
- }
589
+ "mapping": {
590
+ "name": "ViewContent",
591
+ "data": {
592
+ "map": {
593
+ "value": "data.price",
594
+ "currency": {
595
+ "value": "EUR"
596
+ },
597
+ "content_type": {
598
+ "value": "product"
599
+ },
600
+ "contents": {
601
+ "set": [
602
+ {
603
+ "map": {
604
+ "id": "data.id",
605
+ "quantity": {
606
+ "key": "data.quantity",
607
+ "value": 1
353
608
  }
354
609
  }
355
- ]
356
- },
357
- "num_items": {
358
- "fn": {
359
- "$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
360
610
  }
361
- }
611
+ ]
362
612
  }
363
613
  }
364
614
  }
365
- }
615
+ },
616
+ "out": [
617
+ "track",
618
+ "ViewContent",
619
+ {
620
+ "currency": "EUR",
621
+ "value": 420,
622
+ "contents": [
623
+ {
624
+ "id": "ers",
625
+ "quantity": 1
626
+ }
627
+ ],
628
+ "content_type": "product"
629
+ },
630
+ {
631
+ "eventID": "1700000002-gr0up-1"
632
+ }
633
+ ]
366
634
  }
367
635
  }
368
636
  }