@walkeros/web-destination-pinterest 3.4.0 → 3.4.1
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.
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.js +20 -1
- package/dist/examples/index.mjs +20 -1
- package/dist/walkerOS.json +29 -10
- package/package.json +3 -3
package/dist/examples/index.js
CHANGED
|
@@ -124,7 +124,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
124
124
|
}
|
|
125
125
|
function fe(e2 = {}) {
|
|
126
126
|
var _a;
|
|
127
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.
|
|
127
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
128
128
|
if (e2.name) {
|
|
129
129
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
130
130
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -138,21 +138,28 @@ function le(e2 = "entity action", t = {}) {
|
|
|
138
138
|
|
|
139
139
|
// src/examples/step.ts
|
|
140
140
|
var defaultForward = {
|
|
141
|
+
title: "Default forward",
|
|
142
|
+
description: "Without a mapping the walker event name is forwarded as-is to pintrk track with an event_id for dedup.",
|
|
141
143
|
in: le("page view", { timestamp: 1700000100, id: "ev-1700000100" }),
|
|
142
144
|
mapping: void 0,
|
|
143
145
|
out: [["pintrk", "track", "page view", { event_id: "ev-1700000100" }]]
|
|
144
146
|
};
|
|
145
147
|
var wildcardIgnored = {
|
|
148
|
+
public: false,
|
|
146
149
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
147
150
|
mapping: { ignore: true },
|
|
148
151
|
out: []
|
|
149
152
|
};
|
|
150
153
|
var pageViewRename = {
|
|
154
|
+
title: "Page visit",
|
|
155
|
+
description: "A mapping renames the walker event to the Pinterest standard pagevisit event for conversion tracking.",
|
|
151
156
|
in: le("page view", { timestamp: 1700000102, id: "ev-1700000102" }),
|
|
152
157
|
mapping: { name: "pagevisit" },
|
|
153
158
|
out: [["pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]]
|
|
154
159
|
};
|
|
155
160
|
var siteSearch = {
|
|
161
|
+
title: "Search",
|
|
162
|
+
description: "A site search fires Pinterest search with the search_query field resolved from event data.",
|
|
156
163
|
in: le("site search", {
|
|
157
164
|
timestamp: 1700000103,
|
|
158
165
|
id: "ev-1700000103",
|
|
@@ -179,6 +186,8 @@ var siteSearch = {
|
|
|
179
186
|
]
|
|
180
187
|
};
|
|
181
188
|
var productViewContent = {
|
|
189
|
+
title: "View content",
|
|
190
|
+
description: "A product view fires Pinterest viewcontent with value, currency, product_id, and product_name.",
|
|
182
191
|
in: le("product view", {
|
|
183
192
|
timestamp: 1700000104,
|
|
184
193
|
id: "ev-1700000104"
|
|
@@ -210,6 +219,8 @@ var productViewContent = {
|
|
|
210
219
|
]
|
|
211
220
|
};
|
|
212
221
|
var productAddToCart = {
|
|
222
|
+
title: "Add to cart",
|
|
223
|
+
description: "A product add fires Pinterest addtocart with value, currency, and a single-item line_items array.",
|
|
213
224
|
in: le("product add", {
|
|
214
225
|
timestamp: 1700000105,
|
|
215
226
|
id: "ev-1700000105"
|
|
@@ -259,6 +270,8 @@ var productAddToCart = {
|
|
|
259
270
|
]
|
|
260
271
|
};
|
|
261
272
|
var orderCompleteCheckout = {
|
|
273
|
+
title: "Checkout",
|
|
274
|
+
description: "A completed order fires Pinterest checkout with value, order_id, currency, and a nested line_items array.",
|
|
262
275
|
in: le("order complete", {
|
|
263
276
|
timestamp: 1700000106,
|
|
264
277
|
id: "ev-1700000106"
|
|
@@ -319,6 +332,8 @@ var orderCompleteCheckout = {
|
|
|
319
332
|
]
|
|
320
333
|
};
|
|
321
334
|
var userLoginLead = {
|
|
335
|
+
title: "Lead with matching",
|
|
336
|
+
description: "A user login fires pintrk set for enhanced matching and then a lead conversion track call.",
|
|
322
337
|
in: le("user login", {
|
|
323
338
|
timestamp: 1700000107,
|
|
324
339
|
id: "ev-1700000107",
|
|
@@ -357,6 +372,8 @@ var userLoginLead = {
|
|
|
357
372
|
]
|
|
358
373
|
};
|
|
359
374
|
var identifyOnlySkip = {
|
|
375
|
+
title: "Identify only",
|
|
376
|
+
description: "A user update fires pintrk set for enhanced matching without a track call via mapping skip.",
|
|
360
377
|
in: le("user update", {
|
|
361
378
|
timestamp: 1700000108,
|
|
362
379
|
id: "ev-1700000108",
|
|
@@ -379,11 +396,13 @@ var identifyOnlySkip = {
|
|
|
379
396
|
out: [["pintrk", "set", { em: "new@example.com", external_id: "usr_456" }]]
|
|
380
397
|
};
|
|
381
398
|
var consentRevoke = {
|
|
399
|
+
public: false,
|
|
382
400
|
command: "consent",
|
|
383
401
|
in: { marketing: false },
|
|
384
402
|
out: []
|
|
385
403
|
};
|
|
386
404
|
var consentGrant = {
|
|
405
|
+
public: false,
|
|
387
406
|
command: "consent",
|
|
388
407
|
in: { marketing: true },
|
|
389
408
|
out: []
|
package/dist/examples/index.mjs
CHANGED
|
@@ -103,7 +103,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
103
103
|
}
|
|
104
104
|
function fe(e2 = {}) {
|
|
105
105
|
var _a;
|
|
106
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.
|
|
106
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
107
107
|
if (e2.name) {
|
|
108
108
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
109
109
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -117,21 +117,28 @@ function le(e2 = "entity action", t = {}) {
|
|
|
117
117
|
|
|
118
118
|
// src/examples/step.ts
|
|
119
119
|
var defaultForward = {
|
|
120
|
+
title: "Default forward",
|
|
121
|
+
description: "Without a mapping the walker event name is forwarded as-is to pintrk track with an event_id for dedup.",
|
|
120
122
|
in: le("page view", { timestamp: 1700000100, id: "ev-1700000100" }),
|
|
121
123
|
mapping: void 0,
|
|
122
124
|
out: [["pintrk", "track", "page view", { event_id: "ev-1700000100" }]]
|
|
123
125
|
};
|
|
124
126
|
var wildcardIgnored = {
|
|
127
|
+
public: false,
|
|
125
128
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
126
129
|
mapping: { ignore: true },
|
|
127
130
|
out: []
|
|
128
131
|
};
|
|
129
132
|
var pageViewRename = {
|
|
133
|
+
title: "Page visit",
|
|
134
|
+
description: "A mapping renames the walker event to the Pinterest standard pagevisit event for conversion tracking.",
|
|
130
135
|
in: le("page view", { timestamp: 1700000102, id: "ev-1700000102" }),
|
|
131
136
|
mapping: { name: "pagevisit" },
|
|
132
137
|
out: [["pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]]
|
|
133
138
|
};
|
|
134
139
|
var siteSearch = {
|
|
140
|
+
title: "Search",
|
|
141
|
+
description: "A site search fires Pinterest search with the search_query field resolved from event data.",
|
|
135
142
|
in: le("site search", {
|
|
136
143
|
timestamp: 1700000103,
|
|
137
144
|
id: "ev-1700000103",
|
|
@@ -158,6 +165,8 @@ var siteSearch = {
|
|
|
158
165
|
]
|
|
159
166
|
};
|
|
160
167
|
var productViewContent = {
|
|
168
|
+
title: "View content",
|
|
169
|
+
description: "A product view fires Pinterest viewcontent with value, currency, product_id, and product_name.",
|
|
161
170
|
in: le("product view", {
|
|
162
171
|
timestamp: 1700000104,
|
|
163
172
|
id: "ev-1700000104"
|
|
@@ -189,6 +198,8 @@ var productViewContent = {
|
|
|
189
198
|
]
|
|
190
199
|
};
|
|
191
200
|
var productAddToCart = {
|
|
201
|
+
title: "Add to cart",
|
|
202
|
+
description: "A product add fires Pinterest addtocart with value, currency, and a single-item line_items array.",
|
|
192
203
|
in: le("product add", {
|
|
193
204
|
timestamp: 1700000105,
|
|
194
205
|
id: "ev-1700000105"
|
|
@@ -238,6 +249,8 @@ var productAddToCart = {
|
|
|
238
249
|
]
|
|
239
250
|
};
|
|
240
251
|
var orderCompleteCheckout = {
|
|
252
|
+
title: "Checkout",
|
|
253
|
+
description: "A completed order fires Pinterest checkout with value, order_id, currency, and a nested line_items array.",
|
|
241
254
|
in: le("order complete", {
|
|
242
255
|
timestamp: 1700000106,
|
|
243
256
|
id: "ev-1700000106"
|
|
@@ -298,6 +311,8 @@ var orderCompleteCheckout = {
|
|
|
298
311
|
]
|
|
299
312
|
};
|
|
300
313
|
var userLoginLead = {
|
|
314
|
+
title: "Lead with matching",
|
|
315
|
+
description: "A user login fires pintrk set for enhanced matching and then a lead conversion track call.",
|
|
301
316
|
in: le("user login", {
|
|
302
317
|
timestamp: 1700000107,
|
|
303
318
|
id: "ev-1700000107",
|
|
@@ -336,6 +351,8 @@ var userLoginLead = {
|
|
|
336
351
|
]
|
|
337
352
|
};
|
|
338
353
|
var identifyOnlySkip = {
|
|
354
|
+
title: "Identify only",
|
|
355
|
+
description: "A user update fires pintrk set for enhanced matching without a track call via mapping skip.",
|
|
339
356
|
in: le("user update", {
|
|
340
357
|
timestamp: 1700000108,
|
|
341
358
|
id: "ev-1700000108",
|
|
@@ -358,11 +375,13 @@ var identifyOnlySkip = {
|
|
|
358
375
|
out: [["pintrk", "set", { em: "new@example.com", external_id: "usr_456" }]]
|
|
359
376
|
};
|
|
360
377
|
var consentRevoke = {
|
|
378
|
+
public: false,
|
|
361
379
|
command: "consent",
|
|
362
380
|
in: { marketing: false },
|
|
363
381
|
out: []
|
|
364
382
|
};
|
|
365
383
|
var consentGrant = {
|
|
384
|
+
public: false,
|
|
366
385
|
command: "consent",
|
|
367
386
|
in: { marketing: true },
|
|
368
387
|
out: []
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-pinterest",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"step": {
|
|
96
96
|
"consentGrant": {
|
|
97
|
+
"public": false,
|
|
97
98
|
"command": "consent",
|
|
98
99
|
"in": {
|
|
99
100
|
"marketing": true
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"out": []
|
|
102
103
|
},
|
|
103
104
|
"consentRevoke": {
|
|
105
|
+
"public": false,
|
|
104
106
|
"command": "consent",
|
|
105
107
|
"in": {
|
|
106
108
|
"marketing": false
|
|
@@ -108,6 +110,8 @@
|
|
|
108
110
|
"out": []
|
|
109
111
|
},
|
|
110
112
|
"defaultForward": {
|
|
113
|
+
"title": "Default forward",
|
|
114
|
+
"description": "Without a mapping the walker event name is forwarded as-is to pintrk track with an event_id for dedup.",
|
|
111
115
|
"in": {
|
|
112
116
|
"name": "page view",
|
|
113
117
|
"data": {
|
|
@@ -162,7 +166,7 @@
|
|
|
162
166
|
"group": "gr0up",
|
|
163
167
|
"count": 1,
|
|
164
168
|
"version": {
|
|
165
|
-
"source": "3.4.
|
|
169
|
+
"source": "3.4.1",
|
|
166
170
|
"tagging": 1
|
|
167
171
|
},
|
|
168
172
|
"source": {
|
|
@@ -183,6 +187,8 @@
|
|
|
183
187
|
]
|
|
184
188
|
},
|
|
185
189
|
"identifyOnlySkip": {
|
|
190
|
+
"title": "Identify only",
|
|
191
|
+
"description": "A user update fires pintrk set for enhanced matching without a track call via mapping skip.",
|
|
186
192
|
"in": {
|
|
187
193
|
"name": "user update",
|
|
188
194
|
"data": {
|
|
@@ -233,7 +239,7 @@
|
|
|
233
239
|
"group": "gr0up",
|
|
234
240
|
"count": 1,
|
|
235
241
|
"version": {
|
|
236
|
-
"source": "3.4.
|
|
242
|
+
"source": "3.4.1",
|
|
237
243
|
"tagging": 1
|
|
238
244
|
},
|
|
239
245
|
"source": {
|
|
@@ -265,6 +271,8 @@
|
|
|
265
271
|
]
|
|
266
272
|
},
|
|
267
273
|
"orderCompleteCheckout": {
|
|
274
|
+
"title": "Checkout",
|
|
275
|
+
"description": "A completed order fires Pinterest checkout with value, order_id, currency, and a nested line_items array.",
|
|
268
276
|
"in": {
|
|
269
277
|
"name": "order complete",
|
|
270
278
|
"data": {
|
|
@@ -351,7 +359,7 @@
|
|
|
351
359
|
"group": "gr0up",
|
|
352
360
|
"count": 1,
|
|
353
361
|
"version": {
|
|
354
|
-
"source": "3.4.
|
|
362
|
+
"source": "3.4.1",
|
|
355
363
|
"tagging": 1
|
|
356
364
|
},
|
|
357
365
|
"source": {
|
|
@@ -419,6 +427,8 @@
|
|
|
419
427
|
]
|
|
420
428
|
},
|
|
421
429
|
"pageViewRename": {
|
|
430
|
+
"title": "Page visit",
|
|
431
|
+
"description": "A mapping renames the walker event to the Pinterest standard pagevisit event for conversion tracking.",
|
|
422
432
|
"in": {
|
|
423
433
|
"name": "page view",
|
|
424
434
|
"data": {
|
|
@@ -473,7 +483,7 @@
|
|
|
473
483
|
"group": "gr0up",
|
|
474
484
|
"count": 1,
|
|
475
485
|
"version": {
|
|
476
|
-
"source": "3.4.
|
|
486
|
+
"source": "3.4.1",
|
|
477
487
|
"tagging": 1
|
|
478
488
|
},
|
|
479
489
|
"source": {
|
|
@@ -497,6 +507,8 @@
|
|
|
497
507
|
]
|
|
498
508
|
},
|
|
499
509
|
"productAddToCart": {
|
|
510
|
+
"title": "Add to cart",
|
|
511
|
+
"description": "A product add fires Pinterest addtocart with value, currency, and a single-item line_items array.",
|
|
500
512
|
"in": {
|
|
501
513
|
"name": "product add",
|
|
502
514
|
"data": {
|
|
@@ -536,7 +548,7 @@
|
|
|
536
548
|
"group": "gr0up",
|
|
537
549
|
"count": 1,
|
|
538
550
|
"version": {
|
|
539
|
-
"source": "3.4.
|
|
551
|
+
"source": "3.4.1",
|
|
540
552
|
"tagging": 1
|
|
541
553
|
},
|
|
542
554
|
"source": {
|
|
@@ -597,6 +609,8 @@
|
|
|
597
609
|
]
|
|
598
610
|
},
|
|
599
611
|
"productViewContent": {
|
|
612
|
+
"title": "View content",
|
|
613
|
+
"description": "A product view fires Pinterest viewcontent with value, currency, product_id, and product_name.",
|
|
600
614
|
"in": {
|
|
601
615
|
"name": "product view",
|
|
602
616
|
"data": {
|
|
@@ -636,7 +650,7 @@
|
|
|
636
650
|
"group": "gr0up",
|
|
637
651
|
"count": 1,
|
|
638
652
|
"version": {
|
|
639
|
-
"source": "3.4.
|
|
653
|
+
"source": "3.4.1",
|
|
640
654
|
"tagging": 1
|
|
641
655
|
},
|
|
642
656
|
"source": {
|
|
@@ -675,6 +689,8 @@
|
|
|
675
689
|
]
|
|
676
690
|
},
|
|
677
691
|
"siteSearch": {
|
|
692
|
+
"title": "Search",
|
|
693
|
+
"description": "A site search fires Pinterest search with the search_query field resolved from event data.",
|
|
678
694
|
"in": {
|
|
679
695
|
"name": "site search",
|
|
680
696
|
"data": {
|
|
@@ -724,7 +740,7 @@
|
|
|
724
740
|
"group": "gr0up",
|
|
725
741
|
"count": 1,
|
|
726
742
|
"version": {
|
|
727
|
-
"source": "3.4.
|
|
743
|
+
"source": "3.4.1",
|
|
728
744
|
"tagging": 1
|
|
729
745
|
},
|
|
730
746
|
"source": {
|
|
@@ -754,6 +770,8 @@
|
|
|
754
770
|
]
|
|
755
771
|
},
|
|
756
772
|
"userLoginLead": {
|
|
773
|
+
"title": "Lead with matching",
|
|
774
|
+
"description": "A user login fires pintrk set for enhanced matching and then a lead conversion track call.",
|
|
757
775
|
"in": {
|
|
758
776
|
"name": "user login",
|
|
759
777
|
"data": {
|
|
@@ -804,7 +822,7 @@
|
|
|
804
822
|
"group": "gr0up",
|
|
805
823
|
"count": 1,
|
|
806
824
|
"version": {
|
|
807
|
-
"source": "3.4.
|
|
825
|
+
"source": "3.4.1",
|
|
808
826
|
"tagging": 1
|
|
809
827
|
},
|
|
810
828
|
"source": {
|
|
@@ -852,6 +870,7 @@
|
|
|
852
870
|
]
|
|
853
871
|
},
|
|
854
872
|
"wildcardIgnored": {
|
|
873
|
+
"public": false,
|
|
855
874
|
"in": {
|
|
856
875
|
"name": "debug noise",
|
|
857
876
|
"data": {
|
|
@@ -908,7 +927,7 @@
|
|
|
908
927
|
"group": "gr0up",
|
|
909
928
|
"count": 1,
|
|
910
929
|
"version": {
|
|
911
|
-
"source": "3.4.
|
|
930
|
+
"source": "3.4.1",
|
|
912
931
|
"tagging": 1
|
|
913
932
|
},
|
|
914
933
|
"source": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-pinterest",
|
|
3
3
|
"description": "Pinterest Tag web destination for walkerOS (conversion tracking, enhanced matching, audience building)",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"update": "npx npm-check-updates -u && npm update"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@walkeros/web-core": "3.4.
|
|
40
|
+
"@walkeros/web-core": "3.4.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@walkeros/collector": "3.4.
|
|
43
|
+
"@walkeros/collector": "3.4.1"
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|