@walkeros/web-destination-optimizely 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 +15 -1
- package/dist/examples/index.mjs +15 -1
- package/dist/walkerOS.json +21 -7
- package/package.json +3 -3
package/dist/examples/index.js
CHANGED
|
@@ -100,7 +100,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
100
100
|
}
|
|
101
101
|
function fe(e2 = {}) {
|
|
102
102
|
var _a;
|
|
103
|
-
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.
|
|
103
|
+
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 });
|
|
104
104
|
if (e2.name) {
|
|
105
105
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
106
106
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -114,10 +114,14 @@ function le(e2 = "entity action", t = {}) {
|
|
|
114
114
|
|
|
115
115
|
// src/examples/step.ts
|
|
116
116
|
var defaultEventForwarding = {
|
|
117
|
+
title: "Default event",
|
|
118
|
+
description: "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
|
|
117
119
|
in: le("page view", { timestamp: 1700000100 }),
|
|
118
120
|
out: [["optimizely.trackEvent", "page view", {}]]
|
|
119
121
|
};
|
|
120
122
|
var mappedEventName = {
|
|
123
|
+
title: "Mapped event key",
|
|
124
|
+
description: "A mapping renames the walker event to an Optimizely event key defined in the project.",
|
|
121
125
|
in: le("product view", { timestamp: 1700000101 }),
|
|
122
126
|
mapping: {
|
|
123
127
|
name: "product_viewed"
|
|
@@ -125,6 +129,8 @@ var mappedEventName = {
|
|
|
125
129
|
out: [["optimizely.trackEvent", "product_viewed", {}]]
|
|
126
130
|
};
|
|
127
131
|
var orderCompleteRevenue = {
|
|
132
|
+
title: "Purchase revenue",
|
|
133
|
+
description: "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
|
|
128
134
|
in: le("order complete", {
|
|
129
135
|
timestamp: 1700000102,
|
|
130
136
|
data: {
|
|
@@ -156,6 +162,8 @@ var orderCompleteRevenue = {
|
|
|
156
162
|
]
|
|
157
163
|
};
|
|
158
164
|
var signupWithAttributes = {
|
|
165
|
+
title: "Signup with attributes",
|
|
166
|
+
description: "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
|
|
159
167
|
in: le("user signup", {
|
|
160
168
|
timestamp: 1700000103,
|
|
161
169
|
data: {
|
|
@@ -181,11 +189,14 @@ var signupWithAttributes = {
|
|
|
181
189
|
]
|
|
182
190
|
};
|
|
183
191
|
var wildcardIgnored = {
|
|
192
|
+
public: false,
|
|
184
193
|
in: le("debug noise", { timestamp: 1700000104 }),
|
|
185
194
|
mapping: { ignore: true },
|
|
186
195
|
out: []
|
|
187
196
|
};
|
|
188
197
|
var attributesOnlySkipTrack = {
|
|
198
|
+
title: "Attributes only",
|
|
199
|
+
description: "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
|
|
189
200
|
in: le("profile update", {
|
|
190
201
|
timestamp: 1700000105,
|
|
191
202
|
data: {
|
|
@@ -210,12 +221,15 @@ var attributesOnlySkipTrack = {
|
|
|
210
221
|
]
|
|
211
222
|
};
|
|
212
223
|
var consentRevoked = {
|
|
224
|
+
title: "Consent revoked",
|
|
225
|
+
description: "A walker consent command with analytics denied closes the Optimizely client and flushes queued events.",
|
|
213
226
|
command: "consent",
|
|
214
227
|
in: { analytics: false },
|
|
215
228
|
settings: {},
|
|
216
229
|
out: [["optimizely.close"]]
|
|
217
230
|
};
|
|
218
231
|
var consentGranted = {
|
|
232
|
+
public: false,
|
|
219
233
|
command: "consent",
|
|
220
234
|
in: { analytics: true },
|
|
221
235
|
settings: {},
|
package/dist/examples/index.mjs
CHANGED
|
@@ -79,7 +79,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
79
79
|
}
|
|
80
80
|
function fe(e2 = {}) {
|
|
81
81
|
var _a;
|
|
82
|
-
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.
|
|
82
|
+
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 });
|
|
83
83
|
if (e2.name) {
|
|
84
84
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
85
85
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -93,10 +93,14 @@ function le(e2 = "entity action", t = {}) {
|
|
|
93
93
|
|
|
94
94
|
// src/examples/step.ts
|
|
95
95
|
var defaultEventForwarding = {
|
|
96
|
+
title: "Default event",
|
|
97
|
+
description: "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
|
|
96
98
|
in: le("page view", { timestamp: 1700000100 }),
|
|
97
99
|
out: [["optimizely.trackEvent", "page view", {}]]
|
|
98
100
|
};
|
|
99
101
|
var mappedEventName = {
|
|
102
|
+
title: "Mapped event key",
|
|
103
|
+
description: "A mapping renames the walker event to an Optimizely event key defined in the project.",
|
|
100
104
|
in: le("product view", { timestamp: 1700000101 }),
|
|
101
105
|
mapping: {
|
|
102
106
|
name: "product_viewed"
|
|
@@ -104,6 +108,8 @@ var mappedEventName = {
|
|
|
104
108
|
out: [["optimizely.trackEvent", "product_viewed", {}]]
|
|
105
109
|
};
|
|
106
110
|
var orderCompleteRevenue = {
|
|
111
|
+
title: "Purchase revenue",
|
|
112
|
+
description: "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
|
|
107
113
|
in: le("order complete", {
|
|
108
114
|
timestamp: 1700000102,
|
|
109
115
|
data: {
|
|
@@ -135,6 +141,8 @@ var orderCompleteRevenue = {
|
|
|
135
141
|
]
|
|
136
142
|
};
|
|
137
143
|
var signupWithAttributes = {
|
|
144
|
+
title: "Signup with attributes",
|
|
145
|
+
description: "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
|
|
138
146
|
in: le("user signup", {
|
|
139
147
|
timestamp: 1700000103,
|
|
140
148
|
data: {
|
|
@@ -160,11 +168,14 @@ var signupWithAttributes = {
|
|
|
160
168
|
]
|
|
161
169
|
};
|
|
162
170
|
var wildcardIgnored = {
|
|
171
|
+
public: false,
|
|
163
172
|
in: le("debug noise", { timestamp: 1700000104 }),
|
|
164
173
|
mapping: { ignore: true },
|
|
165
174
|
out: []
|
|
166
175
|
};
|
|
167
176
|
var attributesOnlySkipTrack = {
|
|
177
|
+
title: "Attributes only",
|
|
178
|
+
description: "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
|
|
168
179
|
in: le("profile update", {
|
|
169
180
|
timestamp: 1700000105,
|
|
170
181
|
data: {
|
|
@@ -189,12 +200,15 @@ var attributesOnlySkipTrack = {
|
|
|
189
200
|
]
|
|
190
201
|
};
|
|
191
202
|
var consentRevoked = {
|
|
203
|
+
title: "Consent revoked",
|
|
204
|
+
description: "A walker consent command with analytics denied closes the Optimizely client and flushes queued events.",
|
|
192
205
|
command: "consent",
|
|
193
206
|
in: { analytics: false },
|
|
194
207
|
settings: {},
|
|
195
208
|
out: [["optimizely.close"]]
|
|
196
209
|
};
|
|
197
210
|
var consentGranted = {
|
|
211
|
+
public: false,
|
|
198
212
|
command: "consent",
|
|
199
213
|
in: { analytics: true },
|
|
200
214
|
settings: {},
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-optimizely",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -120,6 +120,8 @@
|
|
|
120
120
|
},
|
|
121
121
|
"step": {
|
|
122
122
|
"attributesOnlySkipTrack": {
|
|
123
|
+
"title": "Attributes only",
|
|
124
|
+
"description": "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
|
|
123
125
|
"in": {
|
|
124
126
|
"name": "profile update",
|
|
125
127
|
"data": {
|
|
@@ -170,7 +172,7 @@
|
|
|
170
172
|
"group": "gr0up",
|
|
171
173
|
"count": 1,
|
|
172
174
|
"version": {
|
|
173
|
-
"source": "3.4.
|
|
175
|
+
"source": "3.4.1",
|
|
174
176
|
"tagging": 1
|
|
175
177
|
},
|
|
176
178
|
"source": {
|
|
@@ -204,6 +206,7 @@
|
|
|
204
206
|
]
|
|
205
207
|
},
|
|
206
208
|
"consentGranted": {
|
|
209
|
+
"public": false,
|
|
207
210
|
"command": "consent",
|
|
208
211
|
"in": {
|
|
209
212
|
"analytics": true
|
|
@@ -212,6 +215,8 @@
|
|
|
212
215
|
"out": []
|
|
213
216
|
},
|
|
214
217
|
"consentRevoked": {
|
|
218
|
+
"title": "Consent revoked",
|
|
219
|
+
"description": "A walker consent command with analytics denied closes the Optimizely client and flushes queued events.",
|
|
215
220
|
"command": "consent",
|
|
216
221
|
"in": {
|
|
217
222
|
"analytics": false
|
|
@@ -224,6 +229,8 @@
|
|
|
224
229
|
]
|
|
225
230
|
},
|
|
226
231
|
"defaultEventForwarding": {
|
|
232
|
+
"title": "Default event",
|
|
233
|
+
"description": "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
|
|
227
234
|
"in": {
|
|
228
235
|
"name": "page view",
|
|
229
236
|
"data": {
|
|
@@ -278,7 +285,7 @@
|
|
|
278
285
|
"group": "gr0up",
|
|
279
286
|
"count": 1,
|
|
280
287
|
"version": {
|
|
281
|
-
"source": "3.4.
|
|
288
|
+
"source": "3.4.1",
|
|
282
289
|
"tagging": 1
|
|
283
290
|
},
|
|
284
291
|
"source": {
|
|
@@ -296,6 +303,8 @@
|
|
|
296
303
|
]
|
|
297
304
|
},
|
|
298
305
|
"mappedEventName": {
|
|
306
|
+
"title": "Mapped event key",
|
|
307
|
+
"description": "A mapping renames the walker event to an Optimizely event key defined in the project.",
|
|
299
308
|
"in": {
|
|
300
309
|
"name": "product view",
|
|
301
310
|
"data": {
|
|
@@ -335,7 +344,7 @@
|
|
|
335
344
|
"group": "gr0up",
|
|
336
345
|
"count": 1,
|
|
337
346
|
"version": {
|
|
338
|
-
"source": "3.4.
|
|
347
|
+
"source": "3.4.1",
|
|
339
348
|
"tagging": 1
|
|
340
349
|
},
|
|
341
350
|
"source": {
|
|
@@ -356,6 +365,8 @@
|
|
|
356
365
|
]
|
|
357
366
|
},
|
|
358
367
|
"orderCompleteRevenue": {
|
|
368
|
+
"title": "Purchase revenue",
|
|
369
|
+
"description": "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
|
|
359
370
|
"in": {
|
|
360
371
|
"name": "order complete",
|
|
361
372
|
"data": {
|
|
@@ -441,7 +452,7 @@
|
|
|
441
452
|
"group": "gr0up",
|
|
442
453
|
"count": 1,
|
|
443
454
|
"version": {
|
|
444
|
-
"source": "3.4.
|
|
455
|
+
"source": "3.4.1",
|
|
445
456
|
"tagging": 1
|
|
446
457
|
},
|
|
447
458
|
"source": {
|
|
@@ -477,6 +488,8 @@
|
|
|
477
488
|
]
|
|
478
489
|
},
|
|
479
490
|
"signupWithAttributes": {
|
|
491
|
+
"title": "Signup with attributes",
|
|
492
|
+
"description": "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
|
|
480
493
|
"in": {
|
|
481
494
|
"name": "user signup",
|
|
482
495
|
"data": {
|
|
@@ -527,7 +540,7 @@
|
|
|
527
540
|
"group": "gr0up",
|
|
528
541
|
"count": 1,
|
|
529
542
|
"version": {
|
|
530
|
-
"source": "3.4.
|
|
543
|
+
"source": "3.4.1",
|
|
531
544
|
"tagging": 1
|
|
532
545
|
},
|
|
533
546
|
"source": {
|
|
@@ -566,6 +579,7 @@
|
|
|
566
579
|
]
|
|
567
580
|
},
|
|
568
581
|
"wildcardIgnored": {
|
|
582
|
+
"public": false,
|
|
569
583
|
"in": {
|
|
570
584
|
"name": "debug noise",
|
|
571
585
|
"data": {
|
|
@@ -622,7 +636,7 @@
|
|
|
622
636
|
"group": "gr0up",
|
|
623
637
|
"count": 1,
|
|
624
638
|
"version": {
|
|
625
|
-
"source": "3.4.
|
|
639
|
+
"source": "3.4.1",
|
|
626
640
|
"tagging": 1
|
|
627
641
|
},
|
|
628
642
|
"source": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-optimizely",
|
|
3
3
|
"description": "Optimizely Feature Experimentation web destination for walkerOS (conversion tracking, revenue metrics, user targeting)",
|
|
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
|
"@optimizely/optimizely-sdk": "^6.0.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",
|