@walkeros/web-destination-meta 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 +11 -4
- package/dist/dev.d.ts +11 -4
- 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 +11 -4
- package/dist/examples/index.d.ts +11 -4
- package/dist/examples/index.js +73 -48
- package/dist/examples/index.mjs +73 -48
- package/dist/walkerOS.json +125 -92
- package/package.json +3 -3
|
@@ -20,7 +20,7 @@ interface Env extends DestinationWeb.Env {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare const init: Env | undefined;
|
|
23
|
+
declare const init$1: Env | undefined;
|
|
24
24
|
declare const push: Env;
|
|
25
25
|
/**
|
|
26
26
|
* Simulation tracking paths
|
|
@@ -28,13 +28,19 @@ declare const push: Env;
|
|
|
28
28
|
*/
|
|
29
29
|
declare const simulation: string[];
|
|
30
30
|
|
|
31
|
-
declare const env_init: typeof init;
|
|
32
31
|
declare const env_push: typeof push;
|
|
33
32
|
declare const env_simulation: typeof simulation;
|
|
34
33
|
declare namespace env {
|
|
35
|
-
export {
|
|
34
|
+
export { init$1 as init, env_push as push, env_simulation as simulation };
|
|
36
35
|
}
|
|
37
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Destination bootstrap.
|
|
39
|
+
* Given the canonical settings, init loads the Meta Pixel script and calls
|
|
40
|
+
* fbq('init', pixelId). Reproduce by passing the same settings to
|
|
41
|
+
* `startFlow` as the destination config.
|
|
42
|
+
*/
|
|
43
|
+
declare const init: Flow.StepExample;
|
|
38
44
|
declare const purchase: Flow.StepExample;
|
|
39
45
|
declare const addToCart: Flow.StepExample;
|
|
40
46
|
declare const viewContent: Flow.StepExample;
|
|
@@ -44,12 +50,13 @@ declare const customEventWithTrackCustom: Flow.StepExample;
|
|
|
44
50
|
|
|
45
51
|
declare const step_addToCart: typeof addToCart;
|
|
46
52
|
declare const step_customEventWithTrackCustom: typeof customEventWithTrackCustom;
|
|
53
|
+
declare const step_init: typeof init;
|
|
47
54
|
declare const step_initiateCheckout: typeof initiateCheckout;
|
|
48
55
|
declare const step_pageView: typeof pageView;
|
|
49
56
|
declare const step_purchase: typeof purchase;
|
|
50
57
|
declare const step_viewContent: typeof viewContent;
|
|
51
58
|
declare namespace step {
|
|
52
|
-
export { step_addToCart as addToCart, step_customEventWithTrackCustom as customEventWithTrackCustom, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
|
|
59
|
+
export { step_addToCart as addToCart, step_customEventWithTrackCustom as customEventWithTrackCustom, step_init as init, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
export { env, step };
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface Env extends DestinationWeb.Env {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare const init: Env | undefined;
|
|
23
|
+
declare const init$1: Env | undefined;
|
|
24
24
|
declare const push: Env;
|
|
25
25
|
/**
|
|
26
26
|
* Simulation tracking paths
|
|
@@ -28,13 +28,19 @@ declare const push: Env;
|
|
|
28
28
|
*/
|
|
29
29
|
declare const simulation: string[];
|
|
30
30
|
|
|
31
|
-
declare const env_init: typeof init;
|
|
32
31
|
declare const env_push: typeof push;
|
|
33
32
|
declare const env_simulation: typeof simulation;
|
|
34
33
|
declare namespace env {
|
|
35
|
-
export {
|
|
34
|
+
export { init$1 as init, env_push as push, env_simulation as simulation };
|
|
36
35
|
}
|
|
37
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Destination bootstrap.
|
|
39
|
+
* Given the canonical settings, init loads the Meta Pixel script and calls
|
|
40
|
+
* fbq('init', pixelId). Reproduce by passing the same settings to
|
|
41
|
+
* `startFlow` as the destination config.
|
|
42
|
+
*/
|
|
43
|
+
declare const init: Flow.StepExample;
|
|
38
44
|
declare const purchase: Flow.StepExample;
|
|
39
45
|
declare const addToCart: Flow.StepExample;
|
|
40
46
|
declare const viewContent: Flow.StepExample;
|
|
@@ -44,12 +50,13 @@ declare const customEventWithTrackCustom: Flow.StepExample;
|
|
|
44
50
|
|
|
45
51
|
declare const step_addToCart: typeof addToCart;
|
|
46
52
|
declare const step_customEventWithTrackCustom: typeof customEventWithTrackCustom;
|
|
53
|
+
declare const step_init: typeof init;
|
|
47
54
|
declare const step_initiateCheckout: typeof initiateCheckout;
|
|
48
55
|
declare const step_pageView: typeof pageView;
|
|
49
56
|
declare const step_purchase: typeof purchase;
|
|
50
57
|
declare const step_viewContent: typeof viewContent;
|
|
51
58
|
declare namespace step {
|
|
52
|
-
export { step_addToCart as addToCart, step_customEventWithTrackCustom as customEventWithTrackCustom, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
|
|
59
|
+
export { step_addToCart as addToCart, step_customEventWithTrackCustom as customEventWithTrackCustom, step_init as init, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
export { env, step };
|
package/dist/examples/index.js
CHANGED
|
@@ -95,6 +95,7 @@ var step_exports = {};
|
|
|
95
95
|
__export(step_exports, {
|
|
96
96
|
addToCart: () => addToCart,
|
|
97
97
|
customEventWithTrackCustom: () => customEventWithTrackCustom,
|
|
98
|
+
init: () => init2,
|
|
98
99
|
initiateCheckout: () => initiateCheckout,
|
|
99
100
|
pageView: () => pageView,
|
|
100
101
|
purchase: () => purchase,
|
|
@@ -108,9 +109,9 @@ var c = {};
|
|
|
108
109
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
109
110
|
})(c, { Level: () => u });
|
|
110
111
|
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 || {});
|
|
111
|
-
var
|
|
112
|
+
var W = { merge: true, shallow: true, extend: true };
|
|
112
113
|
function L(e2, t = {}, n = {}) {
|
|
113
|
-
n = { ...
|
|
114
|
+
n = { ...W, ...n };
|
|
114
115
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
115
116
|
const i = e2[o2];
|
|
116
117
|
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;
|
|
@@ -125,7 +126,7 @@ function Q(e2) {
|
|
|
125
126
|
}
|
|
126
127
|
function fe(e2 = {}) {
|
|
127
128
|
var _a;
|
|
128
|
-
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.
|
|
129
|
+
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 });
|
|
129
130
|
if (e2.name) {
|
|
130
131
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
131
132
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -138,6 +139,15 @@ function le(e2 = "entity action", t = {}) {
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
// src/examples/step.ts
|
|
142
|
+
var init2 = {
|
|
143
|
+
in: {
|
|
144
|
+
loadScript: true,
|
|
145
|
+
settings: {
|
|
146
|
+
pixelId: "1234567890"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
out: [["fbq", "init", "1234567890"]]
|
|
150
|
+
};
|
|
141
151
|
var purchase = {
|
|
142
152
|
in: le("order complete", { timestamp: 17e8 }),
|
|
143
153
|
mapping: {
|
|
@@ -168,19 +178,22 @@ var purchase = {
|
|
|
168
178
|
}
|
|
169
179
|
},
|
|
170
180
|
out: [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
[
|
|
182
|
+
"fbq",
|
|
183
|
+
"track",
|
|
184
|
+
"Purchase",
|
|
185
|
+
{
|
|
186
|
+
value: 555,
|
|
187
|
+
currency: "EUR",
|
|
188
|
+
contents: [
|
|
189
|
+
{ id: "ers", quantity: 1 },
|
|
190
|
+
{ id: "cc", quantity: 1 }
|
|
191
|
+
],
|
|
192
|
+
content_type: "product",
|
|
193
|
+
num_items: 2
|
|
194
|
+
},
|
|
195
|
+
{ eventID: "1700000000-gr0up-1" }
|
|
196
|
+
]
|
|
184
197
|
]
|
|
185
198
|
};
|
|
186
199
|
var addToCart = {
|
|
@@ -206,15 +219,18 @@ var addToCart = {
|
|
|
206
219
|
}
|
|
207
220
|
},
|
|
208
221
|
out: [
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
222
|
+
[
|
|
223
|
+
"fbq",
|
|
224
|
+
"track",
|
|
225
|
+
"AddToCart",
|
|
226
|
+
{
|
|
227
|
+
currency: "EUR",
|
|
228
|
+
value: 420,
|
|
229
|
+
contents: [{ id: "ers", quantity: 1 }],
|
|
230
|
+
content_type: "product"
|
|
231
|
+
},
|
|
232
|
+
{ eventID: "1700000001-gr0up-1" }
|
|
233
|
+
]
|
|
218
234
|
]
|
|
219
235
|
};
|
|
220
236
|
var viewContent = {
|
|
@@ -240,15 +256,18 @@ var viewContent = {
|
|
|
240
256
|
}
|
|
241
257
|
},
|
|
242
258
|
out: [
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
259
|
+
[
|
|
260
|
+
"fbq",
|
|
261
|
+
"track",
|
|
262
|
+
"ViewContent",
|
|
263
|
+
{
|
|
264
|
+
currency: "EUR",
|
|
265
|
+
value: 420,
|
|
266
|
+
contents: [{ id: "ers", quantity: 1 }],
|
|
267
|
+
content_type: "product"
|
|
268
|
+
},
|
|
269
|
+
{ eventID: "1700000002-gr0up-1" }
|
|
270
|
+
]
|
|
252
271
|
]
|
|
253
272
|
};
|
|
254
273
|
var initiateCheckout = {
|
|
@@ -280,21 +299,24 @@ var initiateCheckout = {
|
|
|
280
299
|
}
|
|
281
300
|
},
|
|
282
301
|
out: [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
302
|
+
[
|
|
303
|
+
"fbq",
|
|
304
|
+
"track",
|
|
305
|
+
"InitiateCheckout",
|
|
306
|
+
{
|
|
307
|
+
currency: "EUR",
|
|
308
|
+
value: 840,
|
|
309
|
+
contents: [{ id: "ers", quantity: 2 }],
|
|
310
|
+
num_items: 1
|
|
311
|
+
},
|
|
312
|
+
{ eventID: "1700000003-gr0up-1" }
|
|
313
|
+
]
|
|
292
314
|
]
|
|
293
315
|
};
|
|
294
316
|
var pageView = {
|
|
295
317
|
in: le("page view", { timestamp: 1700000004 }),
|
|
296
318
|
mapping: void 0,
|
|
297
|
-
out: ["track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]
|
|
319
|
+
out: [["fbq", "track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]]
|
|
298
320
|
};
|
|
299
321
|
var customEventWithTrackCustom = {
|
|
300
322
|
in: le("video complete", {
|
|
@@ -311,10 +333,13 @@ var customEventWithTrackCustom = {
|
|
|
311
333
|
}
|
|
312
334
|
},
|
|
313
335
|
out: [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
336
|
+
[
|
|
337
|
+
"fbq",
|
|
338
|
+
"trackCustom",
|
|
339
|
+
"VideoComplete",
|
|
340
|
+
{ video_id: "v1d30", duration: 120 },
|
|
341
|
+
{ eventID: "1700000005-gr0up-1" }
|
|
342
|
+
]
|
|
318
343
|
]
|
|
319
344
|
};
|
|
320
345
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/examples/index.mjs
CHANGED
|
@@ -74,6 +74,7 @@ var step_exports = {};
|
|
|
74
74
|
__export(step_exports, {
|
|
75
75
|
addToCart: () => addToCart,
|
|
76
76
|
customEventWithTrackCustom: () => customEventWithTrackCustom,
|
|
77
|
+
init: () => init2,
|
|
77
78
|
initiateCheckout: () => initiateCheckout,
|
|
78
79
|
pageView: () => pageView,
|
|
79
80
|
purchase: () => purchase,
|
|
@@ -87,9 +88,9 @@ var c = {};
|
|
|
87
88
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
88
89
|
})(c, { Level: () => u });
|
|
89
90
|
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 || {});
|
|
90
|
-
var
|
|
91
|
+
var W = { merge: true, shallow: true, extend: true };
|
|
91
92
|
function L(e2, t = {}, n = {}) {
|
|
92
|
-
n = { ...
|
|
93
|
+
n = { ...W, ...n };
|
|
93
94
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
94
95
|
const i = e2[o2];
|
|
95
96
|
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;
|
|
@@ -104,7 +105,7 @@ function Q(e2) {
|
|
|
104
105
|
}
|
|
105
106
|
function fe(e2 = {}) {
|
|
106
107
|
var _a;
|
|
107
|
-
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.
|
|
108
|
+
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 });
|
|
108
109
|
if (e2.name) {
|
|
109
110
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
110
111
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -117,6 +118,15 @@ function le(e2 = "entity action", t = {}) {
|
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
// src/examples/step.ts
|
|
121
|
+
var init2 = {
|
|
122
|
+
in: {
|
|
123
|
+
loadScript: true,
|
|
124
|
+
settings: {
|
|
125
|
+
pixelId: "1234567890"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
out: [["fbq", "init", "1234567890"]]
|
|
129
|
+
};
|
|
120
130
|
var purchase = {
|
|
121
131
|
in: le("order complete", { timestamp: 17e8 }),
|
|
122
132
|
mapping: {
|
|
@@ -147,19 +157,22 @@ var purchase = {
|
|
|
147
157
|
}
|
|
148
158
|
},
|
|
149
159
|
out: [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
[
|
|
161
|
+
"fbq",
|
|
162
|
+
"track",
|
|
163
|
+
"Purchase",
|
|
164
|
+
{
|
|
165
|
+
value: 555,
|
|
166
|
+
currency: "EUR",
|
|
167
|
+
contents: [
|
|
168
|
+
{ id: "ers", quantity: 1 },
|
|
169
|
+
{ id: "cc", quantity: 1 }
|
|
170
|
+
],
|
|
171
|
+
content_type: "product",
|
|
172
|
+
num_items: 2
|
|
173
|
+
},
|
|
174
|
+
{ eventID: "1700000000-gr0up-1" }
|
|
175
|
+
]
|
|
163
176
|
]
|
|
164
177
|
};
|
|
165
178
|
var addToCart = {
|
|
@@ -185,15 +198,18 @@ var addToCart = {
|
|
|
185
198
|
}
|
|
186
199
|
},
|
|
187
200
|
out: [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
201
|
+
[
|
|
202
|
+
"fbq",
|
|
203
|
+
"track",
|
|
204
|
+
"AddToCart",
|
|
205
|
+
{
|
|
206
|
+
currency: "EUR",
|
|
207
|
+
value: 420,
|
|
208
|
+
contents: [{ id: "ers", quantity: 1 }],
|
|
209
|
+
content_type: "product"
|
|
210
|
+
},
|
|
211
|
+
{ eventID: "1700000001-gr0up-1" }
|
|
212
|
+
]
|
|
197
213
|
]
|
|
198
214
|
};
|
|
199
215
|
var viewContent = {
|
|
@@ -219,15 +235,18 @@ var viewContent = {
|
|
|
219
235
|
}
|
|
220
236
|
},
|
|
221
237
|
out: [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
238
|
+
[
|
|
239
|
+
"fbq",
|
|
240
|
+
"track",
|
|
241
|
+
"ViewContent",
|
|
242
|
+
{
|
|
243
|
+
currency: "EUR",
|
|
244
|
+
value: 420,
|
|
245
|
+
contents: [{ id: "ers", quantity: 1 }],
|
|
246
|
+
content_type: "product"
|
|
247
|
+
},
|
|
248
|
+
{ eventID: "1700000002-gr0up-1" }
|
|
249
|
+
]
|
|
231
250
|
]
|
|
232
251
|
};
|
|
233
252
|
var initiateCheckout = {
|
|
@@ -259,21 +278,24 @@ var initiateCheckout = {
|
|
|
259
278
|
}
|
|
260
279
|
},
|
|
261
280
|
out: [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
281
|
+
[
|
|
282
|
+
"fbq",
|
|
283
|
+
"track",
|
|
284
|
+
"InitiateCheckout",
|
|
285
|
+
{
|
|
286
|
+
currency: "EUR",
|
|
287
|
+
value: 840,
|
|
288
|
+
contents: [{ id: "ers", quantity: 2 }],
|
|
289
|
+
num_items: 1
|
|
290
|
+
},
|
|
291
|
+
{ eventID: "1700000003-gr0up-1" }
|
|
292
|
+
]
|
|
271
293
|
]
|
|
272
294
|
};
|
|
273
295
|
var pageView = {
|
|
274
296
|
in: le("page view", { timestamp: 1700000004 }),
|
|
275
297
|
mapping: void 0,
|
|
276
|
-
out: ["track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]
|
|
298
|
+
out: [["fbq", "track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]]
|
|
277
299
|
};
|
|
278
300
|
var customEventWithTrackCustom = {
|
|
279
301
|
in: le("video complete", {
|
|
@@ -290,10 +312,13 @@ var customEventWithTrackCustom = {
|
|
|
290
312
|
}
|
|
291
313
|
},
|
|
292
314
|
out: [
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
315
|
+
[
|
|
316
|
+
"fbq",
|
|
317
|
+
"trackCustom",
|
|
318
|
+
"VideoComplete",
|
|
319
|
+
{ video_id: "v1d30", duration: 120 },
|
|
320
|
+
{ eventID: "1700000005-gr0up-1" }
|
|
321
|
+
]
|
|
297
322
|
]
|
|
298
323
|
};
|
|
299
324
|
export {
|