@walkeros/web-destination-segment 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 +31 -1
- package/dist/examples/index.mjs +31 -1
- package/dist/walkerOS.json +44 -14
- package/package.json +3 -3
package/dist/examples/index.js
CHANGED
|
@@ -106,7 +106,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
106
106
|
}
|
|
107
107
|
function fe(e2 = {}) {
|
|
108
108
|
var _a;
|
|
109
|
-
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.
|
|
109
|
+
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 });
|
|
110
110
|
if (e2.name) {
|
|
111
111
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
112
112
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -120,6 +120,8 @@ function le(e2 = "entity action", t = {}) {
|
|
|
120
120
|
|
|
121
121
|
// src/examples/step.ts
|
|
122
122
|
var init2 = {
|
|
123
|
+
title: "Initialization",
|
|
124
|
+
description: "Destination bootstrap calls analytics.load with the Segment writeKey and walker default options.",
|
|
123
125
|
in: {
|
|
124
126
|
settings: {
|
|
125
127
|
apiKey: "test-project"
|
|
@@ -134,15 +136,20 @@ var init2 = {
|
|
|
134
136
|
]
|
|
135
137
|
};
|
|
136
138
|
var defaultEventForwarding = {
|
|
139
|
+
title: "Default track",
|
|
140
|
+
description: "A walker event becomes a Segment analytics.track call with the event name and empty properties.",
|
|
137
141
|
in: le("product view", { timestamp: 1700000100 }),
|
|
138
142
|
out: [["analytics.track", "product view", {}]]
|
|
139
143
|
};
|
|
140
144
|
var wildcardIgnored = {
|
|
145
|
+
public: false,
|
|
141
146
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
142
147
|
mapping: { ignore: true },
|
|
143
148
|
out: []
|
|
144
149
|
};
|
|
145
150
|
var destinationLevelInclude = {
|
|
151
|
+
title: "Include data",
|
|
152
|
+
description: "Destination-level include flattens the event data section into prefixed Segment track properties.",
|
|
146
153
|
in: le("product view", { timestamp: 1700000102 }),
|
|
147
154
|
configInclude: ["data"],
|
|
148
155
|
out: [
|
|
@@ -160,6 +167,8 @@ var destinationLevelInclude = {
|
|
|
160
167
|
]
|
|
161
168
|
};
|
|
162
169
|
var ruleIncludeReplaces = {
|
|
170
|
+
title: "Rule include overrides",
|
|
171
|
+
description: "A per-rule include replaces the destination-level include so this event forwards only globals.",
|
|
163
172
|
in: le("order complete", { timestamp: 1700000103 }),
|
|
164
173
|
configInclude: ["data"],
|
|
165
174
|
mapping: {
|
|
@@ -176,6 +185,8 @@ var ruleIncludeReplaces = {
|
|
|
176
185
|
]
|
|
177
186
|
};
|
|
178
187
|
var destinationLevelIdentify = {
|
|
188
|
+
title: "Destination identify",
|
|
189
|
+
description: "Destination-level identify calls analytics.identify with the resolved userId before firing the default track.",
|
|
179
190
|
in: le("page view", { timestamp: 1700000104 }),
|
|
180
191
|
settings: {
|
|
181
192
|
identify: {
|
|
@@ -190,6 +201,8 @@ var destinationLevelIdentify = {
|
|
|
190
201
|
]
|
|
191
202
|
};
|
|
192
203
|
var userLoginIdentify = {
|
|
204
|
+
title: "User login identify",
|
|
205
|
+
description: "A user login fires Segment analytics.identify with userId and reserved traits such as email, name, and plan.",
|
|
193
206
|
in: le("user login", {
|
|
194
207
|
timestamp: 1700000105,
|
|
195
208
|
data: {
|
|
@@ -238,6 +251,8 @@ var userLoginIdentify = {
|
|
|
238
251
|
]
|
|
239
252
|
};
|
|
240
253
|
var profileUpdateTraitsOnly = {
|
|
254
|
+
title: "Profile update",
|
|
255
|
+
description: "A profile update calls Segment analytics.identify with traits and no userId to merge traits into the current profile.",
|
|
241
256
|
in: le("profile update", {
|
|
242
257
|
timestamp: 1700000106,
|
|
243
258
|
data: {
|
|
@@ -275,6 +290,8 @@ var profileUpdateTraitsOnly = {
|
|
|
275
290
|
]
|
|
276
291
|
};
|
|
277
292
|
var userLogoutReset = {
|
|
293
|
+
title: "User logout reset",
|
|
294
|
+
description: "A user logout calls analytics.reset to clear userId, anonymousId, and traits then generate a new anonymous id.",
|
|
278
295
|
in: le("user logout", { timestamp: 1700000107 }),
|
|
279
296
|
mapping: {
|
|
280
297
|
skip: true,
|
|
@@ -285,6 +302,8 @@ var userLogoutReset = {
|
|
|
285
302
|
out: [["analytics.reset"]]
|
|
286
303
|
};
|
|
287
304
|
var companyUpdateGroup = {
|
|
305
|
+
title: "Group company",
|
|
306
|
+
description: "A company update fires Segment analytics.group with a groupId and traits for account-level tracking.",
|
|
288
307
|
in: le("company update", {
|
|
289
308
|
timestamp: 1700000108,
|
|
290
309
|
data: {
|
|
@@ -327,6 +346,8 @@ var companyUpdateGroup = {
|
|
|
327
346
|
]
|
|
328
347
|
};
|
|
329
348
|
var pageViewAsPage = {
|
|
349
|
+
title: "Page view",
|
|
350
|
+
description: "A page view fires Segment analytics.page with category, name, and properties instead of a generic track.",
|
|
330
351
|
in: le("page view", {
|
|
331
352
|
timestamp: 1700000109,
|
|
332
353
|
data: {
|
|
@@ -363,6 +384,8 @@ var pageViewAsPage = {
|
|
|
363
384
|
]
|
|
364
385
|
};
|
|
365
386
|
var pageViewMinimal = {
|
|
387
|
+
title: "Page view minimal",
|
|
388
|
+
description: "A mapping with page: true fires an empty analytics.page call relying on Segments auto-collection.",
|
|
366
389
|
in: le("page view", { timestamp: 1700000110 }),
|
|
367
390
|
mapping: {
|
|
368
391
|
skip: true,
|
|
@@ -373,6 +396,8 @@ var pageViewMinimal = {
|
|
|
373
396
|
out: [["analytics.page"]]
|
|
374
397
|
};
|
|
375
398
|
var orderCompletedEcommerce = {
|
|
399
|
+
title: "Order completed",
|
|
400
|
+
description: "A completed order is mapped to the Segment Spec Order Completed event with a nested products array.",
|
|
376
401
|
in: le("order complete", { timestamp: 1700000111 }),
|
|
377
402
|
mapping: {
|
|
378
403
|
name: "Order Completed",
|
|
@@ -436,6 +461,8 @@ var orderCompletedEcommerce = {
|
|
|
436
461
|
]
|
|
437
462
|
};
|
|
438
463
|
var consentContextForwarded = {
|
|
464
|
+
title: "Consent context",
|
|
465
|
+
description: "Walker consent is stamped on every Segment call via context.consent.categoryPreferences for downstream filtering.",
|
|
439
466
|
in: le("product view", {
|
|
440
467
|
timestamp: 1700000112,
|
|
441
468
|
consent: { analytics: true, marketing: true }
|
|
@@ -465,6 +492,8 @@ var consentContextForwarded = {
|
|
|
465
492
|
]
|
|
466
493
|
};
|
|
467
494
|
var consentGrantDeferredLoad = {
|
|
495
|
+
title: "Consent deferred load",
|
|
496
|
+
description: "A walker consent grant triggers the deferred Segment analytics.load with the configured writeKey.",
|
|
468
497
|
command: "consent",
|
|
469
498
|
in: { analytics: true },
|
|
470
499
|
out: [
|
|
@@ -476,6 +505,7 @@ var consentGrantDeferredLoad = {
|
|
|
476
505
|
]
|
|
477
506
|
};
|
|
478
507
|
var consentRevokeNoOp = {
|
|
508
|
+
public: false,
|
|
479
509
|
command: "consent",
|
|
480
510
|
in: { analytics: false },
|
|
481
511
|
out: []
|
package/dist/examples/index.mjs
CHANGED
|
@@ -85,7 +85,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
85
85
|
}
|
|
86
86
|
function fe(e2 = {}) {
|
|
87
87
|
var _a;
|
|
88
|
-
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.
|
|
88
|
+
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 });
|
|
89
89
|
if (e2.name) {
|
|
90
90
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
91
91
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -99,6 +99,8 @@ function le(e2 = "entity action", t = {}) {
|
|
|
99
99
|
|
|
100
100
|
// src/examples/step.ts
|
|
101
101
|
var init2 = {
|
|
102
|
+
title: "Initialization",
|
|
103
|
+
description: "Destination bootstrap calls analytics.load with the Segment writeKey and walker default options.",
|
|
102
104
|
in: {
|
|
103
105
|
settings: {
|
|
104
106
|
apiKey: "test-project"
|
|
@@ -113,15 +115,20 @@ var init2 = {
|
|
|
113
115
|
]
|
|
114
116
|
};
|
|
115
117
|
var defaultEventForwarding = {
|
|
118
|
+
title: "Default track",
|
|
119
|
+
description: "A walker event becomes a Segment analytics.track call with the event name and empty properties.",
|
|
116
120
|
in: le("product view", { timestamp: 1700000100 }),
|
|
117
121
|
out: [["analytics.track", "product view", {}]]
|
|
118
122
|
};
|
|
119
123
|
var wildcardIgnored = {
|
|
124
|
+
public: false,
|
|
120
125
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
121
126
|
mapping: { ignore: true },
|
|
122
127
|
out: []
|
|
123
128
|
};
|
|
124
129
|
var destinationLevelInclude = {
|
|
130
|
+
title: "Include data",
|
|
131
|
+
description: "Destination-level include flattens the event data section into prefixed Segment track properties.",
|
|
125
132
|
in: le("product view", { timestamp: 1700000102 }),
|
|
126
133
|
configInclude: ["data"],
|
|
127
134
|
out: [
|
|
@@ -139,6 +146,8 @@ var destinationLevelInclude = {
|
|
|
139
146
|
]
|
|
140
147
|
};
|
|
141
148
|
var ruleIncludeReplaces = {
|
|
149
|
+
title: "Rule include overrides",
|
|
150
|
+
description: "A per-rule include replaces the destination-level include so this event forwards only globals.",
|
|
142
151
|
in: le("order complete", { timestamp: 1700000103 }),
|
|
143
152
|
configInclude: ["data"],
|
|
144
153
|
mapping: {
|
|
@@ -155,6 +164,8 @@ var ruleIncludeReplaces = {
|
|
|
155
164
|
]
|
|
156
165
|
};
|
|
157
166
|
var destinationLevelIdentify = {
|
|
167
|
+
title: "Destination identify",
|
|
168
|
+
description: "Destination-level identify calls analytics.identify with the resolved userId before firing the default track.",
|
|
158
169
|
in: le("page view", { timestamp: 1700000104 }),
|
|
159
170
|
settings: {
|
|
160
171
|
identify: {
|
|
@@ -169,6 +180,8 @@ var destinationLevelIdentify = {
|
|
|
169
180
|
]
|
|
170
181
|
};
|
|
171
182
|
var userLoginIdentify = {
|
|
183
|
+
title: "User login identify",
|
|
184
|
+
description: "A user login fires Segment analytics.identify with userId and reserved traits such as email, name, and plan.",
|
|
172
185
|
in: le("user login", {
|
|
173
186
|
timestamp: 1700000105,
|
|
174
187
|
data: {
|
|
@@ -217,6 +230,8 @@ var userLoginIdentify = {
|
|
|
217
230
|
]
|
|
218
231
|
};
|
|
219
232
|
var profileUpdateTraitsOnly = {
|
|
233
|
+
title: "Profile update",
|
|
234
|
+
description: "A profile update calls Segment analytics.identify with traits and no userId to merge traits into the current profile.",
|
|
220
235
|
in: le("profile update", {
|
|
221
236
|
timestamp: 1700000106,
|
|
222
237
|
data: {
|
|
@@ -254,6 +269,8 @@ var profileUpdateTraitsOnly = {
|
|
|
254
269
|
]
|
|
255
270
|
};
|
|
256
271
|
var userLogoutReset = {
|
|
272
|
+
title: "User logout reset",
|
|
273
|
+
description: "A user logout calls analytics.reset to clear userId, anonymousId, and traits then generate a new anonymous id.",
|
|
257
274
|
in: le("user logout", { timestamp: 1700000107 }),
|
|
258
275
|
mapping: {
|
|
259
276
|
skip: true,
|
|
@@ -264,6 +281,8 @@ var userLogoutReset = {
|
|
|
264
281
|
out: [["analytics.reset"]]
|
|
265
282
|
};
|
|
266
283
|
var companyUpdateGroup = {
|
|
284
|
+
title: "Group company",
|
|
285
|
+
description: "A company update fires Segment analytics.group with a groupId and traits for account-level tracking.",
|
|
267
286
|
in: le("company update", {
|
|
268
287
|
timestamp: 1700000108,
|
|
269
288
|
data: {
|
|
@@ -306,6 +325,8 @@ var companyUpdateGroup = {
|
|
|
306
325
|
]
|
|
307
326
|
};
|
|
308
327
|
var pageViewAsPage = {
|
|
328
|
+
title: "Page view",
|
|
329
|
+
description: "A page view fires Segment analytics.page with category, name, and properties instead of a generic track.",
|
|
309
330
|
in: le("page view", {
|
|
310
331
|
timestamp: 1700000109,
|
|
311
332
|
data: {
|
|
@@ -342,6 +363,8 @@ var pageViewAsPage = {
|
|
|
342
363
|
]
|
|
343
364
|
};
|
|
344
365
|
var pageViewMinimal = {
|
|
366
|
+
title: "Page view minimal",
|
|
367
|
+
description: "A mapping with page: true fires an empty analytics.page call relying on Segments auto-collection.",
|
|
345
368
|
in: le("page view", { timestamp: 1700000110 }),
|
|
346
369
|
mapping: {
|
|
347
370
|
skip: true,
|
|
@@ -352,6 +375,8 @@ var pageViewMinimal = {
|
|
|
352
375
|
out: [["analytics.page"]]
|
|
353
376
|
};
|
|
354
377
|
var orderCompletedEcommerce = {
|
|
378
|
+
title: "Order completed",
|
|
379
|
+
description: "A completed order is mapped to the Segment Spec Order Completed event with a nested products array.",
|
|
355
380
|
in: le("order complete", { timestamp: 1700000111 }),
|
|
356
381
|
mapping: {
|
|
357
382
|
name: "Order Completed",
|
|
@@ -415,6 +440,8 @@ var orderCompletedEcommerce = {
|
|
|
415
440
|
]
|
|
416
441
|
};
|
|
417
442
|
var consentContextForwarded = {
|
|
443
|
+
title: "Consent context",
|
|
444
|
+
description: "Walker consent is stamped on every Segment call via context.consent.categoryPreferences for downstream filtering.",
|
|
418
445
|
in: le("product view", {
|
|
419
446
|
timestamp: 1700000112,
|
|
420
447
|
consent: { analytics: true, marketing: true }
|
|
@@ -444,6 +471,8 @@ var consentContextForwarded = {
|
|
|
444
471
|
]
|
|
445
472
|
};
|
|
446
473
|
var consentGrantDeferredLoad = {
|
|
474
|
+
title: "Consent deferred load",
|
|
475
|
+
description: "A walker consent grant triggers the deferred Segment analytics.load with the configured writeKey.",
|
|
447
476
|
command: "consent",
|
|
448
477
|
in: { analytics: true },
|
|
449
478
|
out: [
|
|
@@ -455,6 +484,7 @@ var consentGrantDeferredLoad = {
|
|
|
455
484
|
]
|
|
456
485
|
};
|
|
457
486
|
var consentRevokeNoOp = {
|
|
487
|
+
public: false,
|
|
458
488
|
command: "consent",
|
|
459
489
|
in: { analytics: false },
|
|
460
490
|
out: []
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-segment",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -122,6 +122,8 @@
|
|
|
122
122
|
},
|
|
123
123
|
"step": {
|
|
124
124
|
"companyUpdateGroup": {
|
|
125
|
+
"title": "Group company",
|
|
126
|
+
"description": "A company update fires Segment analytics.group with a groupId and traits for account-level tracking.",
|
|
125
127
|
"in": {
|
|
126
128
|
"name": "company update",
|
|
127
129
|
"data": {
|
|
@@ -175,7 +177,7 @@
|
|
|
175
177
|
"group": "gr0up",
|
|
176
178
|
"count": 1,
|
|
177
179
|
"version": {
|
|
178
|
-
"source": "3.4.
|
|
180
|
+
"source": "3.4.1",
|
|
179
181
|
"tagging": 1
|
|
180
182
|
},
|
|
181
183
|
"source": {
|
|
@@ -216,6 +218,8 @@
|
|
|
216
218
|
]
|
|
217
219
|
},
|
|
218
220
|
"consentContextForwarded": {
|
|
221
|
+
"title": "Consent context",
|
|
222
|
+
"description": "Walker consent is stamped on every Segment call via context.consent.categoryPreferences for downstream filtering.",
|
|
219
223
|
"in": {
|
|
220
224
|
"name": "product view",
|
|
221
225
|
"data": {
|
|
@@ -256,7 +260,7 @@
|
|
|
256
260
|
"group": "gr0up",
|
|
257
261
|
"count": 1,
|
|
258
262
|
"version": {
|
|
259
|
-
"source": "3.4.
|
|
263
|
+
"source": "3.4.1",
|
|
260
264
|
"tagging": 1
|
|
261
265
|
},
|
|
262
266
|
"source": {
|
|
@@ -290,6 +294,8 @@
|
|
|
290
294
|
]
|
|
291
295
|
},
|
|
292
296
|
"consentGrantDeferredLoad": {
|
|
297
|
+
"title": "Consent deferred load",
|
|
298
|
+
"description": "A walker consent grant triggers the deferred Segment analytics.load with the configured writeKey.",
|
|
293
299
|
"command": "consent",
|
|
294
300
|
"in": {
|
|
295
301
|
"analytics": true
|
|
@@ -307,6 +313,7 @@
|
|
|
307
313
|
]
|
|
308
314
|
},
|
|
309
315
|
"consentRevokeNoOp": {
|
|
316
|
+
"public": false,
|
|
310
317
|
"command": "consent",
|
|
311
318
|
"in": {
|
|
312
319
|
"analytics": false
|
|
@@ -314,6 +321,8 @@
|
|
|
314
321
|
"out": []
|
|
315
322
|
},
|
|
316
323
|
"defaultEventForwarding": {
|
|
324
|
+
"title": "Default track",
|
|
325
|
+
"description": "A walker event becomes a Segment analytics.track call with the event name and empty properties.",
|
|
317
326
|
"in": {
|
|
318
327
|
"name": "product view",
|
|
319
328
|
"data": {
|
|
@@ -353,7 +362,7 @@
|
|
|
353
362
|
"group": "gr0up",
|
|
354
363
|
"count": 1,
|
|
355
364
|
"version": {
|
|
356
|
-
"source": "3.4.
|
|
365
|
+
"source": "3.4.1",
|
|
357
366
|
"tagging": 1
|
|
358
367
|
},
|
|
359
368
|
"source": {
|
|
@@ -371,6 +380,8 @@
|
|
|
371
380
|
]
|
|
372
381
|
},
|
|
373
382
|
"destinationLevelIdentify": {
|
|
383
|
+
"title": "Destination identify",
|
|
384
|
+
"description": "Destination-level identify calls analytics.identify with the resolved userId before firing the default track.",
|
|
374
385
|
"in": {
|
|
375
386
|
"name": "page view",
|
|
376
387
|
"data": {
|
|
@@ -425,7 +436,7 @@
|
|
|
425
436
|
"group": "gr0up",
|
|
426
437
|
"count": 1,
|
|
427
438
|
"version": {
|
|
428
|
-
"source": "3.4.
|
|
439
|
+
"source": "3.4.1",
|
|
429
440
|
"tagging": 1
|
|
430
441
|
},
|
|
431
442
|
"source": {
|
|
@@ -455,6 +466,8 @@
|
|
|
455
466
|
]
|
|
456
467
|
},
|
|
457
468
|
"destinationLevelInclude": {
|
|
469
|
+
"title": "Include data",
|
|
470
|
+
"description": "Destination-level include flattens the event data section into prefixed Segment track properties.",
|
|
458
471
|
"in": {
|
|
459
472
|
"name": "product view",
|
|
460
473
|
"data": {
|
|
@@ -494,7 +507,7 @@
|
|
|
494
507
|
"group": "gr0up",
|
|
495
508
|
"count": 1,
|
|
496
509
|
"version": {
|
|
497
|
-
"source": "3.4.
|
|
510
|
+
"source": "3.4.1",
|
|
498
511
|
"tagging": 1
|
|
499
512
|
},
|
|
500
513
|
"source": {
|
|
@@ -521,6 +534,8 @@
|
|
|
521
534
|
]
|
|
522
535
|
},
|
|
523
536
|
"init": {
|
|
537
|
+
"title": "Initialization",
|
|
538
|
+
"description": "Destination bootstrap calls analytics.load with the Segment writeKey and walker default options.",
|
|
524
539
|
"in": {
|
|
525
540
|
"settings": {
|
|
526
541
|
"apiKey": "test-project"
|
|
@@ -539,6 +554,8 @@
|
|
|
539
554
|
]
|
|
540
555
|
},
|
|
541
556
|
"orderCompletedEcommerce": {
|
|
557
|
+
"title": "Order completed",
|
|
558
|
+
"description": "A completed order is mapped to the Segment Spec Order Completed event with a nested products array.",
|
|
542
559
|
"in": {
|
|
543
560
|
"name": "order complete",
|
|
544
561
|
"data": {
|
|
@@ -625,7 +642,7 @@
|
|
|
625
642
|
"group": "gr0up",
|
|
626
643
|
"count": 1,
|
|
627
644
|
"version": {
|
|
628
|
-
"source": "3.4.
|
|
645
|
+
"source": "3.4.1",
|
|
629
646
|
"tagging": 1
|
|
630
647
|
},
|
|
631
648
|
"source": {
|
|
@@ -703,6 +720,8 @@
|
|
|
703
720
|
]
|
|
704
721
|
},
|
|
705
722
|
"pageViewAsPage": {
|
|
723
|
+
"title": "Page view",
|
|
724
|
+
"description": "A page view fires Segment analytics.page with category, name, and properties instead of a generic track.",
|
|
706
725
|
"in": {
|
|
707
726
|
"name": "page view",
|
|
708
727
|
"data": {
|
|
@@ -754,7 +773,7 @@
|
|
|
754
773
|
"group": "gr0up",
|
|
755
774
|
"count": 1,
|
|
756
775
|
"version": {
|
|
757
|
-
"source": "3.4.
|
|
776
|
+
"source": "3.4.1",
|
|
758
777
|
"tagging": 1
|
|
759
778
|
},
|
|
760
779
|
"source": {
|
|
@@ -791,6 +810,8 @@
|
|
|
791
810
|
]
|
|
792
811
|
},
|
|
793
812
|
"pageViewMinimal": {
|
|
813
|
+
"title": "Page view minimal",
|
|
814
|
+
"description": "A mapping with page: true fires an empty analytics.page call relying on Segments auto-collection.",
|
|
794
815
|
"in": {
|
|
795
816
|
"name": "page view",
|
|
796
817
|
"data": {
|
|
@@ -845,7 +866,7 @@
|
|
|
845
866
|
"group": "gr0up",
|
|
846
867
|
"count": 1,
|
|
847
868
|
"version": {
|
|
848
|
-
"source": "3.4.
|
|
869
|
+
"source": "3.4.1",
|
|
849
870
|
"tagging": 1
|
|
850
871
|
},
|
|
851
872
|
"source": {
|
|
@@ -867,6 +888,8 @@
|
|
|
867
888
|
]
|
|
868
889
|
},
|
|
869
890
|
"profileUpdateTraitsOnly": {
|
|
891
|
+
"title": "Profile update",
|
|
892
|
+
"description": "A profile update calls Segment analytics.identify with traits and no userId to merge traits into the current profile.",
|
|
870
893
|
"in": {
|
|
871
894
|
"name": "profile update",
|
|
872
895
|
"data": {
|
|
@@ -918,7 +941,7 @@
|
|
|
918
941
|
"group": "gr0up",
|
|
919
942
|
"count": 1,
|
|
920
943
|
"version": {
|
|
921
|
-
"source": "3.4.
|
|
944
|
+
"source": "3.4.1",
|
|
922
945
|
"tagging": 1
|
|
923
946
|
},
|
|
924
947
|
"source": {
|
|
@@ -956,6 +979,8 @@
|
|
|
956
979
|
]
|
|
957
980
|
},
|
|
958
981
|
"ruleIncludeReplaces": {
|
|
982
|
+
"title": "Rule include overrides",
|
|
983
|
+
"description": "A per-rule include replaces the destination-level include so this event forwards only globals.",
|
|
959
984
|
"in": {
|
|
960
985
|
"name": "order complete",
|
|
961
986
|
"data": {
|
|
@@ -1042,7 +1067,7 @@
|
|
|
1042
1067
|
"group": "gr0up",
|
|
1043
1068
|
"count": 1,
|
|
1044
1069
|
"version": {
|
|
1045
|
-
"source": "3.4.
|
|
1070
|
+
"source": "3.4.1",
|
|
1046
1071
|
"tagging": 1
|
|
1047
1072
|
},
|
|
1048
1073
|
"source": {
|
|
@@ -1070,6 +1095,8 @@
|
|
|
1070
1095
|
]
|
|
1071
1096
|
},
|
|
1072
1097
|
"userLoginIdentify": {
|
|
1098
|
+
"title": "User login identify",
|
|
1099
|
+
"description": "A user login fires Segment analytics.identify with userId and reserved traits such as email, name, and plan.",
|
|
1073
1100
|
"in": {
|
|
1074
1101
|
"name": "user login",
|
|
1075
1102
|
"data": {
|
|
@@ -1124,7 +1151,7 @@
|
|
|
1124
1151
|
"group": "gr0up",
|
|
1125
1152
|
"count": 1,
|
|
1126
1153
|
"version": {
|
|
1127
|
-
"source": "3.4.
|
|
1154
|
+
"source": "3.4.1",
|
|
1128
1155
|
"tagging": 1
|
|
1129
1156
|
},
|
|
1130
1157
|
"source": {
|
|
@@ -1173,6 +1200,8 @@
|
|
|
1173
1200
|
]
|
|
1174
1201
|
},
|
|
1175
1202
|
"userLogoutReset": {
|
|
1203
|
+
"title": "User logout reset",
|
|
1204
|
+
"description": "A user logout calls analytics.reset to clear userId, anonymousId, and traits then generate a new anonymous id.",
|
|
1176
1205
|
"in": {
|
|
1177
1206
|
"name": "user logout",
|
|
1178
1207
|
"data": {
|
|
@@ -1229,7 +1258,7 @@
|
|
|
1229
1258
|
"group": "gr0up",
|
|
1230
1259
|
"count": 1,
|
|
1231
1260
|
"version": {
|
|
1232
|
-
"source": "3.4.
|
|
1261
|
+
"source": "3.4.1",
|
|
1233
1262
|
"tagging": 1
|
|
1234
1263
|
},
|
|
1235
1264
|
"source": {
|
|
@@ -1251,6 +1280,7 @@
|
|
|
1251
1280
|
]
|
|
1252
1281
|
},
|
|
1253
1282
|
"wildcardIgnored": {
|
|
1283
|
+
"public": false,
|
|
1254
1284
|
"in": {
|
|
1255
1285
|
"name": "debug noise",
|
|
1256
1286
|
"data": {
|
|
@@ -1307,7 +1337,7 @@
|
|
|
1307
1337
|
"group": "gr0up",
|
|
1308
1338
|
"count": 1,
|
|
1309
1339
|
"version": {
|
|
1310
|
-
"source": "3.4.
|
|
1340
|
+
"source": "3.4.1",
|
|
1311
1341
|
"tagging": 1
|
|
1312
1342
|
},
|
|
1313
1343
|
"source": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-segment",
|
|
3
3
|
"description": "Segment CDP web destination for walkerOS (@segment/analytics-next, full Segment Spec)",
|
|
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",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@segment/analytics-next": "^1.82.0",
|
|
41
|
-
"@walkeros/web-core": "3.4.
|
|
41
|
+
"@walkeros/web-core": "3.4.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@walkeros/collector": "3.4.
|
|
44
|
+
"@walkeros/collector": "3.4.1"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|