@walkeros/web-destination-pinterest 3.3.1 → 3.4.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.
- package/dist/dev.d.mts +6 -30
- package/dist/dev.d.ts +6 -30
- 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.d.mts +6 -30
- package/dist/examples/index.d.ts +6 -30
- package/dist/examples/index.js +72 -73
- package/dist/examples/index.mjs +72 -73
- package/dist/walkerOS.json +100 -86
- package/package.json +3 -3
|
@@ -106,12 +106,9 @@ declare namespace env {
|
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Output convention:
|
|
109
|
-
* - Single SDK call: out = ['
|
|
110
|
-
*
|
|
111
|
-
* - Multiple SDK calls: out = [ [path, ...args], [path, ...args] ]
|
|
109
|
+
* - Single SDK call: out = [['pintrk', 'track', 'checkout', { ... }]]
|
|
110
|
+
* - Multiple SDK calls: out = [['pintrk', ...], ['pintrk', ...]]
|
|
112
111
|
* - Zero SDK calls: out = []
|
|
113
|
-
*
|
|
114
|
-
* The step-examples test runner normalizes both shapes via flatten().
|
|
115
112
|
*/
|
|
116
113
|
/**
|
|
117
114
|
* Default event forwarding — no rule. Without a mapping.name, the walkerOS
|
|
@@ -136,55 +133,34 @@ declare const pageViewRename: Flow.StepExample;
|
|
|
136
133
|
*/
|
|
137
134
|
declare const siteSearch: Flow.StepExample;
|
|
138
135
|
/**
|
|
139
|
-
* Single-product viewcontent.
|
|
140
|
-
* - currency fallback via { key, value: 'EUR' }
|
|
141
|
-
* - flat product_* parameter names
|
|
136
|
+
* Single-product viewcontent.
|
|
142
137
|
*/
|
|
143
138
|
declare const productViewContent: Flow.StepExample;
|
|
144
139
|
/**
|
|
145
140
|
* Add-to-cart with an inline line_items array.
|
|
146
|
-
*
|
|
147
|
-
* Pinterest sends a single track() call with line_items as an ARRAY
|
|
148
|
-
* INSIDE the event data — NOT a loop of N separate calls.
|
|
149
141
|
*/
|
|
150
142
|
declare const productAddToCart: Flow.StepExample;
|
|
151
143
|
/**
|
|
152
144
|
* Multi-product checkout — the canonical Pinterest ecommerce pattern.
|
|
153
|
-
* `line_items.loop: ["nested", { condition, map }]` iterates event.nested
|
|
154
|
-
* and produces ONE array inside a SINGLE track() call.
|
|
155
|
-
*
|
|
156
|
-
* Default fixture has 3 nested entries: ers (420 black), cc (42, no color),
|
|
157
|
-
* gift (no price → filtered out by condition).
|
|
158
145
|
*/
|
|
159
146
|
declare const orderCompleteCheckout: Flow.StepExample;
|
|
160
147
|
/**
|
|
161
148
|
* Lead conversion with per-event enhanced matching update.
|
|
162
|
-
*
|
|
163
|
-
* The rule-level settings.identify resolves to { em, external_id } and
|
|
164
|
-
* triggers pintrk('set', data) BEFORE the track() call — enhanced
|
|
165
|
-
* matching data is associated with the same event via event_id.
|
|
166
149
|
*/
|
|
167
150
|
declare const userLoginLead: Flow.StepExample;
|
|
168
151
|
/**
|
|
169
152
|
* mapping.skip — processes side effects (identify set) but suppresses
|
|
170
|
-
* the default pintrk('track', ...) call.
|
|
171
|
-
* destination already fired the conversion and you only want to update
|
|
172
|
-
* enhanced matching.
|
|
153
|
+
* the default pintrk('track', ...) call.
|
|
173
154
|
*/
|
|
174
155
|
declare const identifyOnlySkip: Flow.StepExample;
|
|
175
156
|
/**
|
|
176
157
|
* Consent revocation — walkerOS walker consent { marketing: false }.
|
|
177
158
|
* The destination's on('consent') handler flips the runtime state flag
|
|
178
|
-
* and stops calling pintrk('track', ...) for subsequent events.
|
|
179
|
-
* is NO opt_out SDK call — Pinterest has no such API.
|
|
180
|
-
*
|
|
181
|
-
* Expected out: [] — no pintrk calls fire as a direct result of the
|
|
182
|
-
* consent dispatch.
|
|
159
|
+
* and stops calling pintrk('track', ...) for subsequent events.
|
|
183
160
|
*/
|
|
184
161
|
declare const consentRevoke: Flow.StepExample;
|
|
185
162
|
/**
|
|
186
|
-
* Consent grant — explicit opt-in.
|
|
187
|
-
* on('consent') flips the flag. No SDK call fires.
|
|
163
|
+
* Consent grant — explicit opt-in.
|
|
188
164
|
*/
|
|
189
165
|
declare const consentGrant: Flow.StepExample;
|
|
190
166
|
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -106,12 +106,9 @@ declare namespace env {
|
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Output convention:
|
|
109
|
-
* - Single SDK call: out = ['
|
|
110
|
-
*
|
|
111
|
-
* - Multiple SDK calls: out = [ [path, ...args], [path, ...args] ]
|
|
109
|
+
* - Single SDK call: out = [['pintrk', 'track', 'checkout', { ... }]]
|
|
110
|
+
* - Multiple SDK calls: out = [['pintrk', ...], ['pintrk', ...]]
|
|
112
111
|
* - Zero SDK calls: out = []
|
|
113
|
-
*
|
|
114
|
-
* The step-examples test runner normalizes both shapes via flatten().
|
|
115
112
|
*/
|
|
116
113
|
/**
|
|
117
114
|
* Default event forwarding — no rule. Without a mapping.name, the walkerOS
|
|
@@ -136,55 +133,34 @@ declare const pageViewRename: Flow.StepExample;
|
|
|
136
133
|
*/
|
|
137
134
|
declare const siteSearch: Flow.StepExample;
|
|
138
135
|
/**
|
|
139
|
-
* Single-product viewcontent.
|
|
140
|
-
* - currency fallback via { key, value: 'EUR' }
|
|
141
|
-
* - flat product_* parameter names
|
|
136
|
+
* Single-product viewcontent.
|
|
142
137
|
*/
|
|
143
138
|
declare const productViewContent: Flow.StepExample;
|
|
144
139
|
/**
|
|
145
140
|
* Add-to-cart with an inline line_items array.
|
|
146
|
-
*
|
|
147
|
-
* Pinterest sends a single track() call with line_items as an ARRAY
|
|
148
|
-
* INSIDE the event data — NOT a loop of N separate calls.
|
|
149
141
|
*/
|
|
150
142
|
declare const productAddToCart: Flow.StepExample;
|
|
151
143
|
/**
|
|
152
144
|
* Multi-product checkout — the canonical Pinterest ecommerce pattern.
|
|
153
|
-
* `line_items.loop: ["nested", { condition, map }]` iterates event.nested
|
|
154
|
-
* and produces ONE array inside a SINGLE track() call.
|
|
155
|
-
*
|
|
156
|
-
* Default fixture has 3 nested entries: ers (420 black), cc (42, no color),
|
|
157
|
-
* gift (no price → filtered out by condition).
|
|
158
145
|
*/
|
|
159
146
|
declare const orderCompleteCheckout: Flow.StepExample;
|
|
160
147
|
/**
|
|
161
148
|
* Lead conversion with per-event enhanced matching update.
|
|
162
|
-
*
|
|
163
|
-
* The rule-level settings.identify resolves to { em, external_id } and
|
|
164
|
-
* triggers pintrk('set', data) BEFORE the track() call — enhanced
|
|
165
|
-
* matching data is associated with the same event via event_id.
|
|
166
149
|
*/
|
|
167
150
|
declare const userLoginLead: Flow.StepExample;
|
|
168
151
|
/**
|
|
169
152
|
* mapping.skip — processes side effects (identify set) but suppresses
|
|
170
|
-
* the default pintrk('track', ...) call.
|
|
171
|
-
* destination already fired the conversion and you only want to update
|
|
172
|
-
* enhanced matching.
|
|
153
|
+
* the default pintrk('track', ...) call.
|
|
173
154
|
*/
|
|
174
155
|
declare const identifyOnlySkip: Flow.StepExample;
|
|
175
156
|
/**
|
|
176
157
|
* Consent revocation — walkerOS walker consent { marketing: false }.
|
|
177
158
|
* The destination's on('consent') handler flips the runtime state flag
|
|
178
|
-
* and stops calling pintrk('track', ...) for subsequent events.
|
|
179
|
-
* is NO opt_out SDK call — Pinterest has no such API.
|
|
180
|
-
*
|
|
181
|
-
* Expected out: [] — no pintrk calls fire as a direct result of the
|
|
182
|
-
* consent dispatch.
|
|
159
|
+
* and stops calling pintrk('track', ...) for subsequent events.
|
|
183
160
|
*/
|
|
184
161
|
declare const consentRevoke: Flow.StepExample;
|
|
185
162
|
/**
|
|
186
|
-
* Consent grant — explicit opt-in.
|
|
187
|
-
* on('consent') flips the flag. No SDK call fires.
|
|
163
|
+
* Consent grant — explicit opt-in.
|
|
188
164
|
*/
|
|
189
165
|
declare const consentGrant: Flow.StepExample;
|
|
190
166
|
|
package/dist/examples/index.js
CHANGED
|
@@ -113,9 +113,9 @@ var c = {};
|
|
|
113
113
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
114
114
|
})(c, { Level: () => u });
|
|
115
115
|
var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
|
|
116
|
-
var
|
|
116
|
+
var W = { merge: true, shallow: true, extend: true };
|
|
117
117
|
function L(e2, t = {}, n = {}) {
|
|
118
|
-
n = { ...
|
|
118
|
+
n = { ...W, ...n };
|
|
119
119
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
120
120
|
const i = e2[o2];
|
|
121
121
|
return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
|
|
@@ -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.
|
|
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.0", 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);
|
|
@@ -140,7 +140,7 @@ function le(e2 = "entity action", t = {}) {
|
|
|
140
140
|
var defaultForward = {
|
|
141
141
|
in: le("page view", { timestamp: 1700000100, id: "ev-1700000100" }),
|
|
142
142
|
mapping: void 0,
|
|
143
|
-
out: ["
|
|
143
|
+
out: [["pintrk", "track", "page view", { event_id: "ev-1700000100" }]]
|
|
144
144
|
};
|
|
145
145
|
var wildcardIgnored = {
|
|
146
146
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
@@ -150,7 +150,7 @@ var wildcardIgnored = {
|
|
|
150
150
|
var pageViewRename = {
|
|
151
151
|
in: le("page view", { timestamp: 1700000102, id: "ev-1700000102" }),
|
|
152
152
|
mapping: { name: "pagevisit" },
|
|
153
|
-
out: ["
|
|
153
|
+
out: [["pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]]
|
|
154
154
|
};
|
|
155
155
|
var siteSearch = {
|
|
156
156
|
in: le("site search", {
|
|
@@ -167,13 +167,15 @@ var siteSearch = {
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
out: [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
170
|
+
[
|
|
171
|
+
"pintrk",
|
|
172
|
+
"track",
|
|
173
|
+
"search",
|
|
174
|
+
{
|
|
175
|
+
search_query: "leather jacket",
|
|
176
|
+
event_id: "ev-1700000103"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
177
179
|
]
|
|
178
180
|
};
|
|
179
181
|
var productViewContent = {
|
|
@@ -193,16 +195,18 @@ var productViewContent = {
|
|
|
193
195
|
}
|
|
194
196
|
},
|
|
195
197
|
out: [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
198
|
+
[
|
|
199
|
+
"pintrk",
|
|
200
|
+
"track",
|
|
201
|
+
"viewcontent",
|
|
202
|
+
{
|
|
203
|
+
value: 420,
|
|
204
|
+
currency: "EUR",
|
|
205
|
+
product_id: "ers",
|
|
206
|
+
product_name: "black",
|
|
207
|
+
event_id: "ev-1700000104"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
206
210
|
]
|
|
207
211
|
};
|
|
208
212
|
var productAddToCart = {
|
|
@@ -233,23 +237,25 @@ var productAddToCart = {
|
|
|
233
237
|
}
|
|
234
238
|
},
|
|
235
239
|
out: [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
240
|
+
[
|
|
241
|
+
"pintrk",
|
|
242
|
+
"track",
|
|
243
|
+
"addtocart",
|
|
244
|
+
{
|
|
245
|
+
value: 420,
|
|
246
|
+
order_quantity: 1,
|
|
247
|
+
currency: "EUR",
|
|
248
|
+
line_items: [
|
|
249
|
+
{
|
|
250
|
+
product_id: "ers",
|
|
251
|
+
product_name: "black",
|
|
252
|
+
product_price: 420,
|
|
253
|
+
product_quantity: 1
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
event_id: "ev-1700000105"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
253
259
|
]
|
|
254
260
|
};
|
|
255
261
|
var orderCompleteCheckout = {
|
|
@@ -286,29 +292,30 @@ var orderCompleteCheckout = {
|
|
|
286
292
|
}
|
|
287
293
|
},
|
|
288
294
|
out: [
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
295
|
+
[
|
|
296
|
+
"pintrk",
|
|
297
|
+
"track",
|
|
298
|
+
"checkout",
|
|
299
|
+
{
|
|
300
|
+
value: 555,
|
|
301
|
+
order_id: "0rd3r1d",
|
|
302
|
+
currency: "EUR",
|
|
303
|
+
line_items: [
|
|
304
|
+
{
|
|
305
|
+
product_id: "ers",
|
|
306
|
+
product_name: "black",
|
|
307
|
+
product_price: 420,
|
|
308
|
+
product_quantity: 1
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
product_id: "cc",
|
|
312
|
+
product_price: 42,
|
|
313
|
+
product_quantity: 1
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
event_id: "ev-1700000106"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
312
319
|
]
|
|
313
320
|
};
|
|
314
321
|
var userLoginLead = {
|
|
@@ -337,13 +344,9 @@ var userLoginLead = {
|
|
|
337
344
|
}
|
|
338
345
|
},
|
|
339
346
|
out: [
|
|
347
|
+
["pintrk", "set", { em: "jane@example.com", external_id: "usr_123" }],
|
|
340
348
|
[
|
|
341
|
-
"
|
|
342
|
-
"set",
|
|
343
|
-
{ em: "jane@example.com", external_id: "usr_123" }
|
|
344
|
-
],
|
|
345
|
-
[
|
|
346
|
-
"window.pintrk",
|
|
349
|
+
"pintrk",
|
|
347
350
|
"track",
|
|
348
351
|
"lead",
|
|
349
352
|
{
|
|
@@ -373,11 +376,7 @@ var identifyOnlySkip = {
|
|
|
373
376
|
}
|
|
374
377
|
}
|
|
375
378
|
},
|
|
376
|
-
out: [
|
|
377
|
-
"window.pintrk",
|
|
378
|
-
"set",
|
|
379
|
-
{ em: "new@example.com", external_id: "usr_456" }
|
|
380
|
-
]
|
|
379
|
+
out: [["pintrk", "set", { em: "new@example.com", external_id: "usr_456" }]]
|
|
381
380
|
};
|
|
382
381
|
var consentRevoke = {
|
|
383
382
|
command: "consent",
|
package/dist/examples/index.mjs
CHANGED
|
@@ -92,9 +92,9 @@ var c = {};
|
|
|
92
92
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
93
93
|
})(c, { Level: () => u });
|
|
94
94
|
var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
|
|
95
|
-
var
|
|
95
|
+
var W = { merge: true, shallow: true, extend: true };
|
|
96
96
|
function L(e2, t = {}, n = {}) {
|
|
97
|
-
n = { ...
|
|
97
|
+
n = { ...W, ...n };
|
|
98
98
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
99
99
|
const i = e2[o2];
|
|
100
100
|
return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
|
|
@@ -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.
|
|
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.0", 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);
|
|
@@ -119,7 +119,7 @@ function le(e2 = "entity action", t = {}) {
|
|
|
119
119
|
var defaultForward = {
|
|
120
120
|
in: le("page view", { timestamp: 1700000100, id: "ev-1700000100" }),
|
|
121
121
|
mapping: void 0,
|
|
122
|
-
out: ["
|
|
122
|
+
out: [["pintrk", "track", "page view", { event_id: "ev-1700000100" }]]
|
|
123
123
|
};
|
|
124
124
|
var wildcardIgnored = {
|
|
125
125
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
@@ -129,7 +129,7 @@ var wildcardIgnored = {
|
|
|
129
129
|
var pageViewRename = {
|
|
130
130
|
in: le("page view", { timestamp: 1700000102, id: "ev-1700000102" }),
|
|
131
131
|
mapping: { name: "pagevisit" },
|
|
132
|
-
out: ["
|
|
132
|
+
out: [["pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]]
|
|
133
133
|
};
|
|
134
134
|
var siteSearch = {
|
|
135
135
|
in: le("site search", {
|
|
@@ -146,13 +146,15 @@ var siteSearch = {
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
out: [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
[
|
|
150
|
+
"pintrk",
|
|
151
|
+
"track",
|
|
152
|
+
"search",
|
|
153
|
+
{
|
|
154
|
+
search_query: "leather jacket",
|
|
155
|
+
event_id: "ev-1700000103"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
156
158
|
]
|
|
157
159
|
};
|
|
158
160
|
var productViewContent = {
|
|
@@ -172,16 +174,18 @@ var productViewContent = {
|
|
|
172
174
|
}
|
|
173
175
|
},
|
|
174
176
|
out: [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
177
|
+
[
|
|
178
|
+
"pintrk",
|
|
179
|
+
"track",
|
|
180
|
+
"viewcontent",
|
|
181
|
+
{
|
|
182
|
+
value: 420,
|
|
183
|
+
currency: "EUR",
|
|
184
|
+
product_id: "ers",
|
|
185
|
+
product_name: "black",
|
|
186
|
+
event_id: "ev-1700000104"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
185
189
|
]
|
|
186
190
|
};
|
|
187
191
|
var productAddToCart = {
|
|
@@ -212,23 +216,25 @@ var productAddToCart = {
|
|
|
212
216
|
}
|
|
213
217
|
},
|
|
214
218
|
out: [
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
219
|
+
[
|
|
220
|
+
"pintrk",
|
|
221
|
+
"track",
|
|
222
|
+
"addtocart",
|
|
223
|
+
{
|
|
224
|
+
value: 420,
|
|
225
|
+
order_quantity: 1,
|
|
226
|
+
currency: "EUR",
|
|
227
|
+
line_items: [
|
|
228
|
+
{
|
|
229
|
+
product_id: "ers",
|
|
230
|
+
product_name: "black",
|
|
231
|
+
product_price: 420,
|
|
232
|
+
product_quantity: 1
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
event_id: "ev-1700000105"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
232
238
|
]
|
|
233
239
|
};
|
|
234
240
|
var orderCompleteCheckout = {
|
|
@@ -265,29 +271,30 @@ var orderCompleteCheckout = {
|
|
|
265
271
|
}
|
|
266
272
|
},
|
|
267
273
|
out: [
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
274
|
+
[
|
|
275
|
+
"pintrk",
|
|
276
|
+
"track",
|
|
277
|
+
"checkout",
|
|
278
|
+
{
|
|
279
|
+
value: 555,
|
|
280
|
+
order_id: "0rd3r1d",
|
|
281
|
+
currency: "EUR",
|
|
282
|
+
line_items: [
|
|
283
|
+
{
|
|
284
|
+
product_id: "ers",
|
|
285
|
+
product_name: "black",
|
|
286
|
+
product_price: 420,
|
|
287
|
+
product_quantity: 1
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
product_id: "cc",
|
|
291
|
+
product_price: 42,
|
|
292
|
+
product_quantity: 1
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
event_id: "ev-1700000106"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
291
298
|
]
|
|
292
299
|
};
|
|
293
300
|
var userLoginLead = {
|
|
@@ -316,13 +323,9 @@ var userLoginLead = {
|
|
|
316
323
|
}
|
|
317
324
|
},
|
|
318
325
|
out: [
|
|
326
|
+
["pintrk", "set", { em: "jane@example.com", external_id: "usr_123" }],
|
|
319
327
|
[
|
|
320
|
-
"
|
|
321
|
-
"set",
|
|
322
|
-
{ em: "jane@example.com", external_id: "usr_123" }
|
|
323
|
-
],
|
|
324
|
-
[
|
|
325
|
-
"window.pintrk",
|
|
328
|
+
"pintrk",
|
|
326
329
|
"track",
|
|
327
330
|
"lead",
|
|
328
331
|
{
|
|
@@ -352,11 +355,7 @@ var identifyOnlySkip = {
|
|
|
352
355
|
}
|
|
353
356
|
}
|
|
354
357
|
},
|
|
355
|
-
out: [
|
|
356
|
-
"window.pintrk",
|
|
357
|
-
"set",
|
|
358
|
-
{ em: "new@example.com", external_id: "usr_456" }
|
|
359
|
-
]
|
|
358
|
+
out: [["pintrk", "set", { em: "new@example.com", external_id: "usr_456" }]]
|
|
360
359
|
};
|
|
361
360
|
var consentRevoke = {
|
|
362
361
|
command: "consent",
|