@walkeros/web-destination-optimizely 3.4.2 → 4.0.0-next-1777882869103
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/README.md +8 -8
- package/dist/dev.d.mts +3 -3
- package/dist/dev.d.ts +3 -3
- 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 +3 -3
- package/dist/examples/index.d.ts +3 -3
- package/dist/examples/index.js +27 -22
- package/dist/examples/index.mjs +27 -22
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +23 -93
- package/package.json +3 -3
|
@@ -123,7 +123,7 @@ declare const wildcardIgnored: OptimizelyStepExample;
|
|
|
123
123
|
* Skip track with attributes only -- fires setAttribute calls but no
|
|
124
124
|
* trackEvent. Useful for enriching user context without a conversion.
|
|
125
125
|
*/
|
|
126
|
-
declare const
|
|
126
|
+
declare const attributesOnlySilent: OptimizelyStepExample;
|
|
127
127
|
/**
|
|
128
128
|
* Consent revoked -- the destination closes the Optimizely client,
|
|
129
129
|
* flushing queued events and stopping datafile polling.
|
|
@@ -137,7 +137,7 @@ declare const consentRevoked: OptimizelyStepExample;
|
|
|
137
137
|
declare const consentGranted: OptimizelyStepExample;
|
|
138
138
|
|
|
139
139
|
type step_OptimizelyStepExample = OptimizelyStepExample;
|
|
140
|
-
declare const
|
|
140
|
+
declare const step_attributesOnlySilent: typeof attributesOnlySilent;
|
|
141
141
|
declare const step_consentGranted: typeof consentGranted;
|
|
142
142
|
declare const step_consentRevoked: typeof consentRevoked;
|
|
143
143
|
declare const step_defaultEventForwarding: typeof defaultEventForwarding;
|
|
@@ -146,7 +146,7 @@ declare const step_orderCompleteRevenue: typeof orderCompleteRevenue;
|
|
|
146
146
|
declare const step_signupWithAttributes: typeof signupWithAttributes;
|
|
147
147
|
declare const step_wildcardIgnored: typeof wildcardIgnored;
|
|
148
148
|
declare namespace step {
|
|
149
|
-
export { type step_OptimizelyStepExample as OptimizelyStepExample,
|
|
149
|
+
export { type step_OptimizelyStepExample as OptimizelyStepExample, step_attributesOnlySilent as attributesOnlySilent, step_consentGranted as consentGranted, step_consentRevoked as consentRevoked, step_defaultEventForwarding as defaultEventForwarding, step_mappedEventName as mappedEventName, step_orderCompleteRevenue as orderCompleteRevenue, step_signupWithAttributes as signupWithAttributes, step_wildcardIgnored as wildcardIgnored };
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export { env, step };
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ declare const wildcardIgnored: OptimizelyStepExample;
|
|
|
123
123
|
* Skip track with attributes only -- fires setAttribute calls but no
|
|
124
124
|
* trackEvent. Useful for enriching user context without a conversion.
|
|
125
125
|
*/
|
|
126
|
-
declare const
|
|
126
|
+
declare const attributesOnlySilent: OptimizelyStepExample;
|
|
127
127
|
/**
|
|
128
128
|
* Consent revoked -- the destination closes the Optimizely client,
|
|
129
129
|
* flushing queued events and stopping datafile polling.
|
|
@@ -137,7 +137,7 @@ declare const consentRevoked: OptimizelyStepExample;
|
|
|
137
137
|
declare const consentGranted: OptimizelyStepExample;
|
|
138
138
|
|
|
139
139
|
type step_OptimizelyStepExample = OptimizelyStepExample;
|
|
140
|
-
declare const
|
|
140
|
+
declare const step_attributesOnlySilent: typeof attributesOnlySilent;
|
|
141
141
|
declare const step_consentGranted: typeof consentGranted;
|
|
142
142
|
declare const step_consentRevoked: typeof consentRevoked;
|
|
143
143
|
declare const step_defaultEventForwarding: typeof defaultEventForwarding;
|
|
@@ -146,7 +146,7 @@ declare const step_orderCompleteRevenue: typeof orderCompleteRevenue;
|
|
|
146
146
|
declare const step_signupWithAttributes: typeof signupWithAttributes;
|
|
147
147
|
declare const step_wildcardIgnored: typeof wildcardIgnored;
|
|
148
148
|
declare namespace step {
|
|
149
|
-
export { type step_OptimizelyStepExample as OptimizelyStepExample,
|
|
149
|
+
export { type step_OptimizelyStepExample as OptimizelyStepExample, step_attributesOnlySilent as attributesOnlySilent, step_consentGranted as consentGranted, step_consentRevoked as consentRevoked, step_defaultEventForwarding as defaultEventForwarding, step_mappedEventName as mappedEventName, step_orderCompleteRevenue as orderCompleteRevenue, step_signupWithAttributes as signupWithAttributes, step_wildcardIgnored as wildcardIgnored };
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export { env, step };
|
package/dist/examples/index.js
CHANGED
|
@@ -72,7 +72,7 @@ var simulation = [
|
|
|
72
72
|
// src/examples/step.ts
|
|
73
73
|
var step_exports = {};
|
|
74
74
|
__export(step_exports, {
|
|
75
|
-
|
|
75
|
+
attributesOnlySilent: () => attributesOnlySilent,
|
|
76
76
|
consentGranted: () => consentGranted,
|
|
77
77
|
consentRevoked: () => consentRevoked,
|
|
78
78
|
defaultEventForwarding: () => defaultEventForwarding,
|
|
@@ -84,45 +84,50 @@ __export(step_exports, {
|
|
|
84
84
|
|
|
85
85
|
// ../../../core/dist/index.mjs
|
|
86
86
|
var e = Object.defineProperty;
|
|
87
|
-
var
|
|
87
|
+
var a = {};
|
|
88
88
|
((t, n) => {
|
|
89
89
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
90
|
-
})(
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
function
|
|
94
|
-
n = { ...
|
|
90
|
+
})(a, { Level: () => c });
|
|
91
|
+
var c = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(c || {});
|
|
92
|
+
var X = { merge: true, shallow: true, extend: true };
|
|
93
|
+
function G(e2, t = {}, n = {}) {
|
|
94
|
+
n = { ...X, ...n };
|
|
95
95
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
96
96
|
const i = e2[o2];
|
|
97
97
|
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;
|
|
98
98
|
}, {});
|
|
99
99
|
return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function he() {
|
|
102
|
+
let e2 = "";
|
|
103
|
+
for (let t = 0; t < 16; t++) e2 += (16 * Math.random() | 0).toString(16);
|
|
104
|
+
return e2;
|
|
105
|
+
}
|
|
106
|
+
function ve(e2 = {}) {
|
|
102
107
|
var _a;
|
|
103
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n =
|
|
108
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = G({ 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" } }], consent: { functional: true }, id: e2.id || he(), trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, source: { type: "collector", schema: "4" } }, e2, { merge: false });
|
|
104
109
|
if (e2.name) {
|
|
105
|
-
const [t2,
|
|
106
|
-
t2 &&
|
|
110
|
+
const [t2, o] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
111
|
+
t2 && o && (n.entity = t2, n.action = o);
|
|
107
112
|
}
|
|
108
|
-
return
|
|
113
|
+
return n;
|
|
109
114
|
}
|
|
110
|
-
function
|
|
115
|
+
function we(e2 = "entity action", t = {}) {
|
|
111
116
|
const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
|
|
112
|
-
return
|
|
117
|
+
return ve({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
// src/examples/step.ts
|
|
116
121
|
var defaultEventForwarding = {
|
|
117
122
|
title: "Default event",
|
|
118
123
|
description: "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
|
|
119
|
-
in:
|
|
124
|
+
in: we("page view", { timestamp: 1700000100 }),
|
|
120
125
|
out: [["optimizely.trackEvent", "page view", {}]]
|
|
121
126
|
};
|
|
122
127
|
var mappedEventName = {
|
|
123
128
|
title: "Mapped event key",
|
|
124
129
|
description: "A mapping renames the walker event to an Optimizely event key defined in the project.",
|
|
125
|
-
in:
|
|
130
|
+
in: we("product view", { timestamp: 1700000101 }),
|
|
126
131
|
mapping: {
|
|
127
132
|
name: "product_viewed"
|
|
128
133
|
},
|
|
@@ -131,7 +136,7 @@ var mappedEventName = {
|
|
|
131
136
|
var orderCompleteRevenue = {
|
|
132
137
|
title: "Purchase revenue",
|
|
133
138
|
description: "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
|
|
134
|
-
in:
|
|
139
|
+
in: we("order complete", {
|
|
135
140
|
timestamp: 1700000102,
|
|
136
141
|
data: {
|
|
137
142
|
revenue_cents: 55500,
|
|
@@ -164,7 +169,7 @@ var orderCompleteRevenue = {
|
|
|
164
169
|
var signupWithAttributes = {
|
|
165
170
|
title: "Signup with attributes",
|
|
166
171
|
description: "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
|
|
167
|
-
in:
|
|
172
|
+
in: we("user signup", {
|
|
168
173
|
timestamp: 1700000103,
|
|
169
174
|
data: {
|
|
170
175
|
method: "google",
|
|
@@ -190,14 +195,14 @@ var signupWithAttributes = {
|
|
|
190
195
|
};
|
|
191
196
|
var wildcardIgnored = {
|
|
192
197
|
public: false,
|
|
193
|
-
in:
|
|
198
|
+
in: we("debug noise", { timestamp: 1700000104 }),
|
|
194
199
|
mapping: { ignore: true },
|
|
195
200
|
out: []
|
|
196
201
|
};
|
|
197
|
-
var
|
|
202
|
+
var attributesOnlySilent = {
|
|
198
203
|
title: "Attributes only",
|
|
199
204
|
description: "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
|
|
200
|
-
in:
|
|
205
|
+
in: we("profile update", {
|
|
201
206
|
timestamp: 1700000105,
|
|
202
207
|
data: {
|
|
203
208
|
plan: "premium",
|
|
@@ -205,7 +210,7 @@ var attributesOnlySkipTrack = {
|
|
|
205
210
|
}
|
|
206
211
|
}),
|
|
207
212
|
mapping: {
|
|
208
|
-
|
|
213
|
+
silent: true,
|
|
209
214
|
settings: {
|
|
210
215
|
attributes: {
|
|
211
216
|
map: {
|
package/dist/examples/index.mjs
CHANGED
|
@@ -51,7 +51,7 @@ var simulation = [
|
|
|
51
51
|
// src/examples/step.ts
|
|
52
52
|
var step_exports = {};
|
|
53
53
|
__export(step_exports, {
|
|
54
|
-
|
|
54
|
+
attributesOnlySilent: () => attributesOnlySilent,
|
|
55
55
|
consentGranted: () => consentGranted,
|
|
56
56
|
consentRevoked: () => consentRevoked,
|
|
57
57
|
defaultEventForwarding: () => defaultEventForwarding,
|
|
@@ -63,45 +63,50 @@ __export(step_exports, {
|
|
|
63
63
|
|
|
64
64
|
// ../../../core/dist/index.mjs
|
|
65
65
|
var e = Object.defineProperty;
|
|
66
|
-
var
|
|
66
|
+
var a = {};
|
|
67
67
|
((t, n) => {
|
|
68
68
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
69
|
-
})(
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
function
|
|
73
|
-
n = { ...
|
|
69
|
+
})(a, { Level: () => c });
|
|
70
|
+
var c = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(c || {});
|
|
71
|
+
var X = { merge: true, shallow: true, extend: true };
|
|
72
|
+
function G(e2, t = {}, n = {}) {
|
|
73
|
+
n = { ...X, ...n };
|
|
74
74
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
75
75
|
const i = e2[o2];
|
|
76
76
|
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;
|
|
77
77
|
}, {});
|
|
78
78
|
return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function he() {
|
|
81
|
+
let e2 = "";
|
|
82
|
+
for (let t = 0; t < 16; t++) e2 += (16 * Math.random() | 0).toString(16);
|
|
83
|
+
return e2;
|
|
84
|
+
}
|
|
85
|
+
function ve(e2 = {}) {
|
|
81
86
|
var _a;
|
|
82
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n =
|
|
87
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = G({ 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" } }], consent: { functional: true }, id: e2.id || he(), trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, source: { type: "collector", schema: "4" } }, e2, { merge: false });
|
|
83
88
|
if (e2.name) {
|
|
84
|
-
const [t2,
|
|
85
|
-
t2 &&
|
|
89
|
+
const [t2, o] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
90
|
+
t2 && o && (n.entity = t2, n.action = o);
|
|
86
91
|
}
|
|
87
|
-
return
|
|
92
|
+
return n;
|
|
88
93
|
}
|
|
89
|
-
function
|
|
94
|
+
function we(e2 = "entity action", t = {}) {
|
|
90
95
|
const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
|
|
91
|
-
return
|
|
96
|
+
return ve({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
// src/examples/step.ts
|
|
95
100
|
var defaultEventForwarding = {
|
|
96
101
|
title: "Default event",
|
|
97
102
|
description: "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
|
|
98
|
-
in:
|
|
103
|
+
in: we("page view", { timestamp: 1700000100 }),
|
|
99
104
|
out: [["optimizely.trackEvent", "page view", {}]]
|
|
100
105
|
};
|
|
101
106
|
var mappedEventName = {
|
|
102
107
|
title: "Mapped event key",
|
|
103
108
|
description: "A mapping renames the walker event to an Optimizely event key defined in the project.",
|
|
104
|
-
in:
|
|
109
|
+
in: we("product view", { timestamp: 1700000101 }),
|
|
105
110
|
mapping: {
|
|
106
111
|
name: "product_viewed"
|
|
107
112
|
},
|
|
@@ -110,7 +115,7 @@ var mappedEventName = {
|
|
|
110
115
|
var orderCompleteRevenue = {
|
|
111
116
|
title: "Purchase revenue",
|
|
112
117
|
description: "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
|
|
113
|
-
in:
|
|
118
|
+
in: we("order complete", {
|
|
114
119
|
timestamp: 1700000102,
|
|
115
120
|
data: {
|
|
116
121
|
revenue_cents: 55500,
|
|
@@ -143,7 +148,7 @@ var orderCompleteRevenue = {
|
|
|
143
148
|
var signupWithAttributes = {
|
|
144
149
|
title: "Signup with attributes",
|
|
145
150
|
description: "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
|
|
146
|
-
in:
|
|
151
|
+
in: we("user signup", {
|
|
147
152
|
timestamp: 1700000103,
|
|
148
153
|
data: {
|
|
149
154
|
method: "google",
|
|
@@ -169,14 +174,14 @@ var signupWithAttributes = {
|
|
|
169
174
|
};
|
|
170
175
|
var wildcardIgnored = {
|
|
171
176
|
public: false,
|
|
172
|
-
in:
|
|
177
|
+
in: we("debug noise", { timestamp: 1700000104 }),
|
|
173
178
|
mapping: { ignore: true },
|
|
174
179
|
out: []
|
|
175
180
|
};
|
|
176
|
-
var
|
|
181
|
+
var attributesOnlySilent = {
|
|
177
182
|
title: "Attributes only",
|
|
178
183
|
description: "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
|
|
179
|
-
in:
|
|
184
|
+
in: we("profile update", {
|
|
180
185
|
timestamp: 1700000105,
|
|
181
186
|
data: {
|
|
182
187
|
plan: "premium",
|
|
@@ -184,7 +189,7 @@ var attributesOnlySkipTrack = {
|
|
|
184
189
|
}
|
|
185
190
|
}),
|
|
186
191
|
mapping: {
|
|
187
|
-
|
|
192
|
+
silent: true,
|
|
188
193
|
settings: {
|
|
189
194
|
attributes: {
|
|
190
195
|
map: {
|