make-mp-data 3.0.3 → 3.0.5
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 +46 -0
- package/dungeons/array-of-object-lookup-schema.json +327 -0
- package/dungeons/array-of-object-lookup.js +29 -9
- package/dungeons/capstone/capstone-ic3.js +291 -0
- package/dungeons/capstone/capstone-ic4.js +598 -0
- package/dungeons/capstone/capstone-ic5.js +668 -0
- package/dungeons/capstone/generate-product-lookup.js +309 -0
- package/dungeons/ecommerce-schema.json +462 -0
- package/dungeons/{copilot.js → ecommerce.js} +79 -17
- package/dungeons/education-schema.json +2409 -0
- package/dungeons/education.js +226 -462
- package/dungeons/fintech-schema.json +14034 -0
- package/dungeons/fintech.js +134 -413
- package/dungeons/foobar-schema.json +403 -0
- package/dungeons/foobar.js +27 -4
- package/dungeons/food-delivery-schema.json +192 -0
- package/dungeons/food-delivery.js +602 -0
- package/dungeons/food-schema.json +1152 -0
- package/dungeons/food.js +173 -406
- package/dungeons/gaming-schema.json +1270 -0
- package/dungeons/gaming.js +182 -42
- package/dungeons/insurance-application-schema.json +204 -0
- package/dungeons/insurance-application.js +605 -0
- package/dungeons/media-schema.json +906 -0
- package/dungeons/media.js +250 -420
- package/dungeons/retention-cadence-schema.json +78 -0
- package/dungeons/retention-cadence.js +35 -1
- package/dungeons/rpg-schema.json +4526 -0
- package/dungeons/rpg.js +171 -429
- package/dungeons/sanity-schema.json +255 -0
- package/dungeons/sanity.js +21 -10
- package/dungeons/sass-schema.json +1291 -0
- package/dungeons/sass.js +241 -368
- package/dungeons/scd-schema.json +919 -0
- package/dungeons/scd.js +41 -13
- package/dungeons/simple-schema.json +608 -0
- package/dungeons/simple.js +52 -15
- package/dungeons/simplest-schema.json +1418 -0
- package/dungeons/simplest.js +392 -0
- package/dungeons/social-schema.json +1118 -0
- package/dungeons/social.js +150 -391
- package/dungeons/text-generation-schema.json +3096 -0
- package/dungeons/text-generation.js +71 -0
- package/index.js +8 -6
- package/lib/core/config-validator.js +28 -8
- package/lib/core/storage.js +5 -5
- package/lib/generators/events.js +4 -4
- package/lib/orchestrators/mixpanel-sender.js +16 -13
- package/lib/orchestrators/user-loop.js +14 -6
- package/lib/templates/soup-presets.js +188 -0
- package/lib/utils/utils.js +52 -6
- package/package.json +1 -1
- package/types.d.ts +20 -3
- package/dungeons/adspend.js +0 -130
- package/dungeons/anon.js +0 -128
- package/dungeons/benchmark-heavy.js +0 -240
- package/dungeons/benchmark-light.js +0 -140
- package/dungeons/big.js +0 -226
- package/dungeons/business.js +0 -391
- package/dungeons/complex.js +0 -428
- package/dungeons/experiments.js +0 -137
- package/dungeons/funnels.js +0 -309
- package/dungeons/mil.js +0 -323
- package/dungeons/mirror.js +0 -161
- package/dungeons/soup-test.js +0 -52
- package/dungeons/streaming.js +0 -372
- package/dungeons/strict-event-test.js +0 -30
- package/dungeons/student-teacher.js +0 -438
- package/dungeons/too-big-events.js +0 -203
- package/dungeons/user-agent.js +0 -209
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"token": "",
|
|
4
|
+
"seed": "simple is best",
|
|
5
|
+
"numDays": 108,
|
|
6
|
+
"numEvents": 2000000,
|
|
7
|
+
"numUsers": 50000,
|
|
8
|
+
"format": "json",
|
|
9
|
+
"region": "US",
|
|
10
|
+
"hasAnonIds": false,
|
|
11
|
+
"hasSessionIds": false,
|
|
12
|
+
"hasAdSpend": false,
|
|
13
|
+
"hasLocation": true,
|
|
14
|
+
"hasAndroidDevices": true,
|
|
15
|
+
"hasIOSDevices": true,
|
|
16
|
+
"hasDesktopDevices": true,
|
|
17
|
+
"hasBrowser": true,
|
|
18
|
+
"hasCampaigns": false,
|
|
19
|
+
"isAnonymous": false,
|
|
20
|
+
"alsoInferFunnels": false,
|
|
21
|
+
"concurrency": 1,
|
|
22
|
+
"batchSize": 2500000,
|
|
23
|
+
"percentUsersBornInDataset": 25,
|
|
24
|
+
"events": [
|
|
25
|
+
{
|
|
26
|
+
"event": "checkout",
|
|
27
|
+
"weight": 2,
|
|
28
|
+
"properties": {
|
|
29
|
+
"currency": [
|
|
30
|
+
"USD",
|
|
31
|
+
"CAD",
|
|
32
|
+
"EUR",
|
|
33
|
+
"BTC",
|
|
34
|
+
"ETH",
|
|
35
|
+
"JPY"
|
|
36
|
+
],
|
|
37
|
+
"coupon": {
|
|
38
|
+
"functionName": "arrow",
|
|
39
|
+
"body": "function generateWeightedArray() {\n\t\tconst weightedArray = [];\n\n\t\t// Add each value to the array the number of times specified by its weight\n\t\tweightedItems.forEach(({ value, weight }) => {\n\t\t\tif (!weight) weight = 1;\n\t\t\tfor (let i = 0; i < weight; i++) {\n\t\t\t\tweightedArray.push(value);\n\t\t\t}\n\t\t});\n\n\t\treturn weightedArray;\n\t}"
|
|
40
|
+
},
|
|
41
|
+
"cart": {
|
|
42
|
+
"functionName": "arrow",
|
|
43
|
+
"body": "function () {\n\t\tconst categories = [\"electronics\", \"books\", \"clothing\", \"home\", \"garden\", \"toys\", \"sports\", \"automotive\", \"beauty\", \"health\", \"grocery\", \"jewelry\", \"shoes\", \"tools\", \"office supplies\"];\n\t\tconst descriptors = [\"brand new\", \"open box\", \"refurbished\", \"used\", \"like new\", \"vintage\", \"antique\", \"collectible\"];\n\t\tconst suffix = [\"item\", \"product\", \"good\", \"merchandise\", \"thing\", \"object\", \"widget\", \"gadget\", \"device\", \"apparatus\", \"contraption\", \"instrument\", \"tool\", \"implement\", \"utensil\", \"appliance\", \"machine\", \"equipment\", \"gear\", \"kit\", \"set\", \"package\"];\n\t\tconst assetPreview = ['.png', '.jpg', '.jpeg', '.heic', '.mp4', '.mov', '.avi'];\n\t\tconst data = [];\n\t\tconst numOfItems = integer(1, maxItems);\n\n\t\tfor (var i = 0; i < numOfItems; i++) {\n\t\t\tconst category = chance.pickone(categories);\n\t\t\tconst descriptor = chance.pickone(descriptors);\n\t\t\tconst suffixWord = chance.pickone(suffix);\n\t\t\tconst slug = `${descriptor.replace(/\\s+/g, '-').toLowerCase()}-${suffixWord.replace(/\\s+/g, '-').toLowerCase()}`;\n\t\t\tconst asset = chance.pickone(assetPreview);\n\n\t\t\t// const product_id = chance.guid();\n\t\t\tconst price = integer(1, 100);\n\t\t\tconst quantity = integer(1, 5);\n\n\t\t\tconst item = {\n\t\t\t\t// product_id: product_id,\n\t\t\t\t// sku: integer(11111, 99999),\n\t\t\t\tamount: price,\n\t\t\t\tquantity: quantity,\n\t\t\t\ttotal_value: price * quantity,\n\t\t\t\tfeatured: chance.pickone([true, false, false]),\n\t\t\t\tcategory: category,\n\t\t\t\tdescriptor: descriptor,\n\t\t\t\tslug: slug,\n\t\t\t\tassetPreview: `https://example.com/assets/${slug}${asset}`,\n\t\t\t\tassetType: asset\n\n\t\t\t};\n\n\t\t\tdata.push(item);\n\t\t}\n\n\t\treturn () => [data];\n\t}"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"event": "add to cart",
|
|
49
|
+
"weight": 4,
|
|
50
|
+
"properties": {
|
|
51
|
+
"item": {
|
|
52
|
+
"functionName": "arrow",
|
|
53
|
+
"body": "function () {\n\t\tconst categories = [\"electronics\", \"books\", \"clothing\", \"home\", \"garden\", \"toys\", \"sports\", \"automotive\", \"beauty\", \"health\", \"grocery\", \"jewelry\", \"shoes\", \"tools\", \"office supplies\"];\n\t\tconst descriptors = [\"brand new\", \"open box\", \"refurbished\", \"used\", \"like new\", \"vintage\", \"antique\", \"collectible\"];\n\t\tconst suffix = [\"item\", \"product\", \"good\", \"merchandise\", \"thing\", \"object\", \"widget\", \"gadget\", \"device\", \"apparatus\", \"contraption\", \"instrument\", \"tool\", \"implement\", \"utensil\", \"appliance\", \"machine\", \"equipment\", \"gear\", \"kit\", \"set\", \"package\"];\n\t\tconst assetPreview = ['.png', '.jpg', '.jpeg', '.heic', '.mp4', '.mov', '.avi'];\n\t\tconst data = [];\n\t\tconst numOfItems = integer(1, maxItems);\n\n\t\tfor (var i = 0; i < numOfItems; i++) {\n\t\t\tconst category = chance.pickone(categories);\n\t\t\tconst descriptor = chance.pickone(descriptors);\n\t\t\tconst suffixWord = chance.pickone(suffix);\n\t\t\tconst slug = `${descriptor.replace(/\\s+/g, '-').toLowerCase()}-${suffixWord.replace(/\\s+/g, '-').toLowerCase()}`;\n\t\t\tconst asset = chance.pickone(assetPreview);\n\n\t\t\t// const product_id = chance.guid();\n\t\t\tconst price = integer(1, 100);\n\t\t\tconst quantity = integer(1, 5);\n\n\t\t\tconst item = {\n\t\t\t\t// product_id: product_id,\n\t\t\t\t// sku: integer(11111, 99999),\n\t\t\t\tamount: price,\n\t\t\t\tquantity: quantity,\n\t\t\t\ttotal_value: price * quantity,\n\t\t\t\tfeatured: chance.pickone([true, false, false]),\n\t\t\t\tcategory: category,\n\t\t\t\tdescriptor: descriptor,\n\t\t\t\tslug: slug,\n\t\t\t\tassetPreview: `https://example.com/assets/${slug}${asset}`,\n\t\t\t\tassetType: asset\n\n\t\t\t};\n\n\t\t\tdata.push(item);\n\t\t}\n\n\t\treturn () => [data];\n\t}"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"event": "view item",
|
|
59
|
+
"weight": 8,
|
|
60
|
+
"properties": {
|
|
61
|
+
"item": {
|
|
62
|
+
"functionName": "arrow",
|
|
63
|
+
"body": "function () {\n\t\tconst categories = [\"electronics\", \"books\", \"clothing\", \"home\", \"garden\", \"toys\", \"sports\", \"automotive\", \"beauty\", \"health\", \"grocery\", \"jewelry\", \"shoes\", \"tools\", \"office supplies\"];\n\t\tconst descriptors = [\"brand new\", \"open box\", \"refurbished\", \"used\", \"like new\", \"vintage\", \"antique\", \"collectible\"];\n\t\tconst suffix = [\"item\", \"product\", \"good\", \"merchandise\", \"thing\", \"object\", \"widget\", \"gadget\", \"device\", \"apparatus\", \"contraption\", \"instrument\", \"tool\", \"implement\", \"utensil\", \"appliance\", \"machine\", \"equipment\", \"gear\", \"kit\", \"set\", \"package\"];\n\t\tconst assetPreview = ['.png', '.jpg', '.jpeg', '.heic', '.mp4', '.mov', '.avi'];\n\t\tconst data = [];\n\t\tconst numOfItems = integer(1, maxItems);\n\n\t\tfor (var i = 0; i < numOfItems; i++) {\n\t\t\tconst category = chance.pickone(categories);\n\t\t\tconst descriptor = chance.pickone(descriptors);\n\t\t\tconst suffixWord = chance.pickone(suffix);\n\t\t\tconst slug = `${descriptor.replace(/\\s+/g, '-').toLowerCase()}-${suffixWord.replace(/\\s+/g, '-').toLowerCase()}`;\n\t\t\tconst asset = chance.pickone(assetPreview);\n\n\t\t\t// const product_id = chance.guid();\n\t\t\tconst price = integer(1, 100);\n\t\t\tconst quantity = integer(1, 5);\n\n\t\t\tconst item = {\n\t\t\t\t// product_id: product_id,\n\t\t\t\t// sku: integer(11111, 99999),\n\t\t\t\tamount: price,\n\t\t\t\tquantity: quantity,\n\t\t\t\ttotal_value: price * quantity,\n\t\t\t\tfeatured: chance.pickone([true, false, false]),\n\t\t\t\tcategory: category,\n\t\t\t\tdescriptor: descriptor,\n\t\t\t\tslug: slug,\n\t\t\t\tassetPreview: `https://example.com/assets/${slug}${asset}`,\n\t\t\t\tassetType: asset\n\n\t\t\t};\n\n\t\t\tdata.push(item);\n\t\t}\n\n\t\treturn () => [data];\n\t}"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"event": "save item",
|
|
69
|
+
"weight": 5,
|
|
70
|
+
"properties": {
|
|
71
|
+
"item": {
|
|
72
|
+
"functionName": "arrow",
|
|
73
|
+
"body": "function () {\n\t\tconst categories = [\"electronics\", \"books\", \"clothing\", \"home\", \"garden\", \"toys\", \"sports\", \"automotive\", \"beauty\", \"health\", \"grocery\", \"jewelry\", \"shoes\", \"tools\", \"office supplies\"];\n\t\tconst descriptors = [\"brand new\", \"open box\", \"refurbished\", \"used\", \"like new\", \"vintage\", \"antique\", \"collectible\"];\n\t\tconst suffix = [\"item\", \"product\", \"good\", \"merchandise\", \"thing\", \"object\", \"widget\", \"gadget\", \"device\", \"apparatus\", \"contraption\", \"instrument\", \"tool\", \"implement\", \"utensil\", \"appliance\", \"machine\", \"equipment\", \"gear\", \"kit\", \"set\", \"package\"];\n\t\tconst assetPreview = ['.png', '.jpg', '.jpeg', '.heic', '.mp4', '.mov', '.avi'];\n\t\tconst data = [];\n\t\tconst numOfItems = integer(1, maxItems);\n\n\t\tfor (var i = 0; i < numOfItems; i++) {\n\t\t\tconst category = chance.pickone(categories);\n\t\t\tconst descriptor = chance.pickone(descriptors);\n\t\t\tconst suffixWord = chance.pickone(suffix);\n\t\t\tconst slug = `${descriptor.replace(/\\s+/g, '-').toLowerCase()}-${suffixWord.replace(/\\s+/g, '-').toLowerCase()}`;\n\t\t\tconst asset = chance.pickone(assetPreview);\n\n\t\t\t// const product_id = chance.guid();\n\t\t\tconst price = integer(1, 100);\n\t\t\tconst quantity = integer(1, 5);\n\n\t\t\tconst item = {\n\t\t\t\t// product_id: product_id,\n\t\t\t\t// sku: integer(11111, 99999),\n\t\t\t\tamount: price,\n\t\t\t\tquantity: quantity,\n\t\t\t\ttotal_value: price * quantity,\n\t\t\t\tfeatured: chance.pickone([true, false, false]),\n\t\t\t\tcategory: category,\n\t\t\t\tdescriptor: descriptor,\n\t\t\t\tslug: slug,\n\t\t\t\tassetPreview: `https://example.com/assets/${slug}${asset}`,\n\t\t\t\tassetType: asset\n\n\t\t\t};\n\n\t\t\tdata.push(item);\n\t\t}\n\n\t\treturn () => [data];\n\t}"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"event": "page view",
|
|
79
|
+
"weight": 10,
|
|
80
|
+
"properties": {
|
|
81
|
+
"page": [
|
|
82
|
+
"/",
|
|
83
|
+
"/help",
|
|
84
|
+
"/account",
|
|
85
|
+
"/watch",
|
|
86
|
+
"/listen",
|
|
87
|
+
"/product",
|
|
88
|
+
"/people",
|
|
89
|
+
"/peace"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"event": "watch video",
|
|
95
|
+
"weight": 8,
|
|
96
|
+
"properties": {
|
|
97
|
+
"watchTimeSec": [
|
|
98
|
+
253,
|
|
99
|
+
478,
|
|
100
|
+
146,
|
|
101
|
+
160,
|
|
102
|
+
195,
|
|
103
|
+
218,
|
|
104
|
+
473,
|
|
105
|
+
435,
|
|
106
|
+
137,
|
|
107
|
+
359,
|
|
108
|
+
421,
|
|
109
|
+
167,
|
|
110
|
+
445,
|
|
111
|
+
160,
|
|
112
|
+
174,
|
|
113
|
+
156,
|
|
114
|
+
184,
|
|
115
|
+
463,
|
|
116
|
+
409,
|
|
117
|
+
436,
|
|
118
|
+
136,
|
|
119
|
+
181,
|
|
120
|
+
405,
|
|
121
|
+
193,
|
|
122
|
+
228,
|
|
123
|
+
194,
|
|
124
|
+
146,
|
|
125
|
+
410,
|
|
126
|
+
444,
|
|
127
|
+
156,
|
|
128
|
+
153,
|
|
129
|
+
456,
|
|
130
|
+
202,
|
|
131
|
+
158,
|
|
132
|
+
469,
|
|
133
|
+
154,
|
|
134
|
+
188,
|
|
135
|
+
152,
|
|
136
|
+
415,
|
|
137
|
+
238,
|
|
138
|
+
194,
|
|
139
|
+
160,
|
|
140
|
+
305,
|
|
141
|
+
181,
|
|
142
|
+
189,
|
|
143
|
+
195,
|
|
144
|
+
181,
|
|
145
|
+
401,
|
|
146
|
+
160,
|
|
147
|
+
257
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"event": "like video",
|
|
153
|
+
"weight": 6,
|
|
154
|
+
"properties": {}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"event": "dislike video",
|
|
158
|
+
"weight": 4,
|
|
159
|
+
"properties": {}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"event": "sign up",
|
|
163
|
+
"weight": 1,
|
|
164
|
+
"isFirstEvent": true,
|
|
165
|
+
"properties": {
|
|
166
|
+
"signupMethod": [
|
|
167
|
+
"email",
|
|
168
|
+
"google",
|
|
169
|
+
"facebook",
|
|
170
|
+
"twitter",
|
|
171
|
+
"linkedin",
|
|
172
|
+
"github"
|
|
173
|
+
],
|
|
174
|
+
"referral": {
|
|
175
|
+
"functionName": "arrow",
|
|
176
|
+
"body": "function generateWeightedArray() {\n\t\tconst weightedArray = [];\n\n\t\t// Add each value to the array the number of times specified by its weight\n\t\tweightedItems.forEach(({ value, weight }) => {\n\t\t\tif (!weight) weight = 1;\n\t\t\tfor (let i = 0; i < weight; i++) {\n\t\t\t\tweightedArray.push(value);\n\t\t\t}\n\t\t});\n\n\t\treturn weightedArray;\n\t}"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"funnels": [
|
|
182
|
+
{
|
|
183
|
+
"sequence": [
|
|
184
|
+
"page view",
|
|
185
|
+
"view item",
|
|
186
|
+
"save item",
|
|
187
|
+
"page view",
|
|
188
|
+
"sign up"
|
|
189
|
+
],
|
|
190
|
+
"conversionRate": 50,
|
|
191
|
+
"order": "first-and-last-fixed",
|
|
192
|
+
"weight": 1,
|
|
193
|
+
"isFirstFunnel": true,
|
|
194
|
+
"timeToConvert": 2,
|
|
195
|
+
"experiment": false,
|
|
196
|
+
"name": "Signup Flow"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"sequence": [
|
|
200
|
+
"watch video",
|
|
201
|
+
"like video",
|
|
202
|
+
"watch video",
|
|
203
|
+
"like video"
|
|
204
|
+
],
|
|
205
|
+
"name": "Video Likes",
|
|
206
|
+
"conversionRate": 60,
|
|
207
|
+
"props": {
|
|
208
|
+
"videoCategory": [
|
|
209
|
+
"funny",
|
|
210
|
+
"educational",
|
|
211
|
+
"inspirational",
|
|
212
|
+
"music",
|
|
213
|
+
"news",
|
|
214
|
+
"sports",
|
|
215
|
+
"cooking",
|
|
216
|
+
"DIY",
|
|
217
|
+
"travel",
|
|
218
|
+
"gaming"
|
|
219
|
+
],
|
|
220
|
+
"quality": [
|
|
221
|
+
"2160p",
|
|
222
|
+
"1440p",
|
|
223
|
+
"1080p",
|
|
224
|
+
"720p",
|
|
225
|
+
"480p",
|
|
226
|
+
"360p",
|
|
227
|
+
"240p"
|
|
228
|
+
],
|
|
229
|
+
"format": [
|
|
230
|
+
"mp4",
|
|
231
|
+
"avi",
|
|
232
|
+
"mov",
|
|
233
|
+
"mpg"
|
|
234
|
+
],
|
|
235
|
+
"uploader_id": {
|
|
236
|
+
"functionName": "arrow",
|
|
237
|
+
"body": "function () { [native code] }"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "Video Dislikes",
|
|
243
|
+
"sequence": [
|
|
244
|
+
"watch video",
|
|
245
|
+
"dislike video",
|
|
246
|
+
"watch video",
|
|
247
|
+
"dislike video"
|
|
248
|
+
],
|
|
249
|
+
"conversionRate": 20,
|
|
250
|
+
"props": {
|
|
251
|
+
"videoCategory": [
|
|
252
|
+
"funny",
|
|
253
|
+
"educational",
|
|
254
|
+
"inspirational",
|
|
255
|
+
"music",
|
|
256
|
+
"news",
|
|
257
|
+
"sports",
|
|
258
|
+
"cooking",
|
|
259
|
+
"DIY",
|
|
260
|
+
"travel",
|
|
261
|
+
"gaming"
|
|
262
|
+
],
|
|
263
|
+
"quality": [
|
|
264
|
+
"2160p",
|
|
265
|
+
"1440p",
|
|
266
|
+
"1080p",
|
|
267
|
+
"720p",
|
|
268
|
+
"480p",
|
|
269
|
+
"360p",
|
|
270
|
+
"240p"
|
|
271
|
+
],
|
|
272
|
+
"format": [
|
|
273
|
+
"mp4",
|
|
274
|
+
"avi",
|
|
275
|
+
"mov",
|
|
276
|
+
"mpg"
|
|
277
|
+
],
|
|
278
|
+
"uploader_id": {
|
|
279
|
+
"functionName": "arrow",
|
|
280
|
+
"body": "function () { [native code] }"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "eCommerce Purchase",
|
|
286
|
+
"sequence": [
|
|
287
|
+
"view item",
|
|
288
|
+
"view item",
|
|
289
|
+
"add to cart",
|
|
290
|
+
"view item",
|
|
291
|
+
"add to cart",
|
|
292
|
+
"checkout"
|
|
293
|
+
],
|
|
294
|
+
"conversionRate": 15,
|
|
295
|
+
"requireRepeats": true,
|
|
296
|
+
"weight": 10,
|
|
297
|
+
"order": "last-fixed"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"superProps": {
|
|
301
|
+
"theme": {
|
|
302
|
+
"functionName": "arrow",
|
|
303
|
+
"body": "function () {\n\t\tconst weighted = [];\n\t\tfor (let i = 0; i < 10; i++) {\n\t\t\tconst rand = chance.d10(); // Random number between 1 and 10\n\n\t\t\t// 35% chance to favor the most chosen index\n\t\t\tif (chance.bool({ likelihood: 35 })) {\n\t\t\t\t// 50% chance to slightly alter the index\n\t\t\t\tif (chance.bool({ likelihood: 50 })) {\n\t\t\t\t\tweighted.push(items[mostChosenIndex]);\n\t\t\t\t} else {\n\t\t\t\t\tconst addOrSubtract = chance.bool({ likelihood: 50 }) ? -rand : rand;\n\t\t\t\t\tlet newIndex = mostChosenIndex + addOrSubtract;\n\n\t\t\t\t\t// Ensure newIndex is within bounds\n\t\t\t\t\tif (newIndex < 0) newIndex = 0;\n\t\t\t\t\tif (newIndex >= items.length) newIndex = items.length - 1;\n\t\t\t\t\tweighted.push(items[newIndex]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 25% chance to favor the second most chosen index\n\t\t\telse if (chance.bool({ likelihood: 25 })) {\n\t\t\t\tweighted.push(items[secondMostChosenIndex]);\n\t\t\t}\n\t\t\t// 15% chance to favor the third most chosen index\n\t\t\telse if (chance.bool({ likelihood: 15 })) {\n\t\t\t\tweighted.push(items[thirdMostChosenIndex]);\n\t\t\t}\n\t\t\t// Otherwise, pick a random item from the list\n\t\t\telse {\n\t\t\t\tweighted.push(chance.pickone(items));\n\t\t\t}\n\t\t}\n\t\treturn weighted;\n\t}"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"userProps": {
|
|
307
|
+
"title": {
|
|
308
|
+
"functionName": "arrow",
|
|
309
|
+
"body": "function () { [native code] }"
|
|
310
|
+
},
|
|
311
|
+
"luckyNumber": [
|
|
312
|
+
337,
|
|
313
|
+
319,
|
|
314
|
+
335,
|
|
315
|
+
137,
|
|
316
|
+
276,
|
|
317
|
+
133,
|
|
318
|
+
318,
|
|
319
|
+
144,
|
|
320
|
+
337,
|
|
321
|
+
131,
|
|
322
|
+
328,
|
|
323
|
+
328,
|
|
324
|
+
315,
|
|
325
|
+
139,
|
|
326
|
+
323,
|
|
327
|
+
146,
|
|
328
|
+
293,
|
|
329
|
+
338,
|
|
330
|
+
313,
|
|
331
|
+
170,
|
|
332
|
+
324,
|
|
333
|
+
153,
|
|
334
|
+
154,
|
|
335
|
+
175,
|
|
336
|
+
168,
|
|
337
|
+
137,
|
|
338
|
+
192,
|
|
339
|
+
159,
|
|
340
|
+
146,
|
|
341
|
+
145,
|
|
342
|
+
135,
|
|
343
|
+
295,
|
|
344
|
+
113,
|
|
345
|
+
119,
|
|
346
|
+
176,
|
|
347
|
+
166,
|
|
348
|
+
264,
|
|
349
|
+
162,
|
|
350
|
+
299,
|
|
351
|
+
314,
|
|
352
|
+
147,
|
|
353
|
+
141,
|
|
354
|
+
121,
|
|
355
|
+
136,
|
|
356
|
+
123,
|
|
357
|
+
181,
|
|
358
|
+
334,
|
|
359
|
+
131,
|
|
360
|
+
139,
|
|
361
|
+
121
|
|
362
|
+
],
|
|
363
|
+
"spiritAnimal": [
|
|
364
|
+
"duck",
|
|
365
|
+
"dog",
|
|
366
|
+
"otter",
|
|
367
|
+
"penguin",
|
|
368
|
+
"cat",
|
|
369
|
+
"elephant",
|
|
370
|
+
"lion",
|
|
371
|
+
"cheetah",
|
|
372
|
+
"giraffe",
|
|
373
|
+
"zebra",
|
|
374
|
+
"rhino",
|
|
375
|
+
"hippo",
|
|
376
|
+
"whale",
|
|
377
|
+
"dolphin",
|
|
378
|
+
"shark",
|
|
379
|
+
"octopus",
|
|
380
|
+
"squid",
|
|
381
|
+
"jellyfish",
|
|
382
|
+
"starfish",
|
|
383
|
+
"seahorse",
|
|
384
|
+
"crab",
|
|
385
|
+
"lobster",
|
|
386
|
+
"shrimp",
|
|
387
|
+
"clam",
|
|
388
|
+
"snail",
|
|
389
|
+
"slug",
|
|
390
|
+
"butterfly",
|
|
391
|
+
"moth",
|
|
392
|
+
"bee",
|
|
393
|
+
"wasp",
|
|
394
|
+
"ant",
|
|
395
|
+
"beetle",
|
|
396
|
+
"ladybug",
|
|
397
|
+
"caterpillar",
|
|
398
|
+
"centipede",
|
|
399
|
+
"millipede",
|
|
400
|
+
"scorpion",
|
|
401
|
+
"spider",
|
|
402
|
+
"tarantula",
|
|
403
|
+
"tick",
|
|
404
|
+
"mite",
|
|
405
|
+
"mosquito",
|
|
406
|
+
"fly",
|
|
407
|
+
"dragonfly",
|
|
408
|
+
"damselfly",
|
|
409
|
+
"grasshopper",
|
|
410
|
+
"cricket",
|
|
411
|
+
"locust",
|
|
412
|
+
"mantis",
|
|
413
|
+
"cockroach",
|
|
414
|
+
"termite",
|
|
415
|
+
"praying mantis",
|
|
416
|
+
"walking stick",
|
|
417
|
+
"stick bug",
|
|
418
|
+
"leaf insect",
|
|
419
|
+
"lacewing",
|
|
420
|
+
"aphid",
|
|
421
|
+
"cicada",
|
|
422
|
+
"thrips",
|
|
423
|
+
"psyllid",
|
|
424
|
+
"scale insect",
|
|
425
|
+
"whitefly",
|
|
426
|
+
"mealybug",
|
|
427
|
+
"planthopper",
|
|
428
|
+
"leafhopper",
|
|
429
|
+
"treehopper",
|
|
430
|
+
"flea",
|
|
431
|
+
"louse",
|
|
432
|
+
"bedbug",
|
|
433
|
+
"flea beetle",
|
|
434
|
+
"weevil",
|
|
435
|
+
"longhorn beetle",
|
|
436
|
+
"leaf beetle",
|
|
437
|
+
"tiger beetle",
|
|
438
|
+
"ground beetle",
|
|
439
|
+
"lady beetle",
|
|
440
|
+
"firefly",
|
|
441
|
+
"click beetle",
|
|
442
|
+
"rove beetle",
|
|
443
|
+
"scarab beetle",
|
|
444
|
+
"dung beetle",
|
|
445
|
+
"stag beetle",
|
|
446
|
+
"rhinoceros beetle",
|
|
447
|
+
"hercules beetle",
|
|
448
|
+
"goliath beetle",
|
|
449
|
+
"jewel beetle",
|
|
450
|
+
"tortoise beetle"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"scdProps": {},
|
|
454
|
+
"mirrorProps": {},
|
|
455
|
+
"groupKeys": [],
|
|
456
|
+
"groupProps": {},
|
|
457
|
+
"lookupTables": []
|
|
458
|
+
},
|
|
459
|
+
"hooks": "function (record, type, meta) {\n\n\t\tif (type === \"event\") {\n\t\t\tconst NOW = dayjs();\n\t\t\tconst DAY_SIGNUPS_IMPROVED = NOW.subtract(7, 'day');\n\t\t\tconst DAY_WATCH_TIME_WENT_UP = NOW.subtract(30, 'day');\n\t\t\tconst eventTime = dayjs(record.time);\n\n\t\t\t// unflattering 'items'\n\t\t\tif (record.item && Array.isArray(record.item)) {\n\t\t\t\trecord = { ...record, ...record.item[0] };\n\t\t\t\tdelete record.item;\n\t\t\t}\n\n\t\t\tif (record.event === 'sign up') {\n\t\t\t\trecord.signup_flow = \"v1\";\n\t\t\t\tif (eventTime.isBefore(DAY_SIGNUPS_IMPROVED)) {\n\t\t\t\t\t// tag 50% for removal (filtered in \"everything\" hook)\n\t\t\t\t\tif (chance.bool({ likelihood: 50 })) {\n\t\t\t\t\t\trecord._drop = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (eventTime.isAfter(DAY_SIGNUPS_IMPROVED)) {\n\t\t\t\t\trecord.signup_flow = \"v2\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (record.event === 'watch video') {\n\t\t\t\tconst factor = decimal(0.25, 0.79);\n\t\t\t\tif (eventTime.isBefore(DAY_WATCH_TIME_WENT_UP)) {\n\t\t\t\t\trecord.watchTimeSec = Math.round(record.watchTimeSec * (1 - factor));\n\t\t\t\t}\n\t\t\t\tif (eventTime.isAfter(DAY_WATCH_TIME_WENT_UP)) {\n\t\t\t\t\t// increase watch time by 33%\n\t\t\t\t\trecord.watchTimeSec = Math.round(record.watchTimeSec * (1 + factor));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// toys + shoes frequently purchases together (and are higher cart values)\n\t\t\tif (record.event === 'checkout' && Array.isArray(record.cart)) {\n\t\t\t\tconst hasToys = record.cart.some(item => item.category === 'toys');\n\t\t\t\tconst hasShoes = record.cart.some(item => item.category === 'shoes');\n\t\t\t\tif (hasToys && !hasShoes) {\n\t\t\t\t\tconst bigCart = makeProducts(20)()()[0];\n\t\t\t\t\tconst shoeItems = bigCart.filter(item => item.category === 'shoes');\n\t\t\t\t\tif (shoeItems.length > 0) {\n\t\t\t\t\t\trecord.cart.push(shoeItems[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (hasShoes && !hasToys) {\n\t\t\t\t\tconst bigCart = makeProducts(20)()()[0];\n\t\t\t\t\tconst toyItems = bigCart.filter(item => item.category === 'toys');\n\t\t\t\t\tif (toyItems.length > 0) {\n\t\t\t\t\t\trecord.cart.push(toyItems[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!hasToys && !hasShoes) {\n\t\t\t\t\tconst cheapFactor = decimal(.75, 0.9);\n\t\t\t\t\t// make every item a bit cheaper\n\t\t\t\t\trecord.cart = record.cart.map(item => {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...item,\n\t\t\t\t\t\t\tamount: Math.round(item.amount * cheapFactor),\n\t\t\t\t\t\t\ttotal_value: Math.round(item.total_value * cheapFactor)\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// high quality video means longer watch times (lower quality shorter watch times)\n\t\t\tif (record.event === 'watch video') {\n\t\t\t\tconst qualityFactors = {\n\t\t\t\t\t\"2160p\": 1.5,\n\t\t\t\t\t\"1440p\": 1.4,\n\t\t\t\t\t\"1080p\": 1.3,\n\t\t\t\t\t\"720p\": 1.15,\n\t\t\t\t\t\"480p\": 1.0,\n\t\t\t\t\t\"360p\": 0.85,\n\t\t\t\t\t\"240p\": 0.7\n\t\t\t\t};\n\t\t\t\tconst quality = record.quality || \"480p\";\n\t\t\t\tconst factor = qualityFactors[quality] || 1.0;\n\t\t\t\trecord.watchTimeSec = Math.round(record.watchTimeSec * factor);\n\t\t\t}\n\n\n\n\t\t}\n\n\n\n\t\tif (type === \"everything\") {\n\t\t\t// big themes!\n\n\t\t\t// users who view items in the home and garden category churn more frequently\n\n\n\t\t\t// dark mode leads to faster purchase conversion\n\n\n\t\t\t// people who pay in bitcoin tend to buy more electronics and gadgets\n\n\n\t\t\t//custom themes purchase more:\n\t\t\t// const numCustomMode = record.filter(a => a.theme === 'custom').length;\n\t\t\t// const numLightMode = record.filter(a => a.theme === 'light').length;\n\t\t\t// const numDarkMode = record.filter(a => a.theme === 'dark').length;\n\t\t\t// if (numCustomMode > numLightMode || numCustomMode > numDarkMode) {\n\t\t\t// \t//triple their checkout events\n\t\t\t// \tconst checkoutEvents = record.filter(a => a.event === 'checkout');\n\t\t\t// \tconst newCheckouts = checkoutEvents.map(a => {\n\t\t\t// \t\tconst randomInt = integer(-48, 48);\n\t\t\t// \t\tconst newCheckout = {\n\t\t\t// \t\t\t...a,\n\t\t\t// \t\t\ttime: dayjs(a.time).add(randomInt, 'hour').toISOString(),\n\t\t\t// \t\t\tevent: \"checkout\",\n\t\t\t// \t\t\tamount: a.amount * 2,\n\t\t\t// \t\t\tcoupon: \"50%OFF\"\n\t\t\t// \t\t};\n\t\t\t// \t\treturn newCheckout;\n\t\t\t// \t});\n\t\t\t// \trecord.push(...newCheckouts);\n\t\t\t// }\n\n\t\t\t// //users who watch low quality videos churn more:\n\t\t\t// const loQuality = [\"480p\", \"360p\", \"240p\"];\n\t\t\t// const lowQualityWatches = record.filter(a => a.event === 'watch video' && loQuality.includes(a.quality));\n\t\t\t// const highQualityWatches = record.filter(a => a.event === 'watch video' && !loQuality.includes(a.quality));\n\t\t\t// if (lowQualityWatches.length > highQualityWatches.length) {\n\t\t\t// \tif (flip()) {\n\t\t\t// \t\t// find midpoint of records\n\t\t\t// \t\tconst midpoint = Math.floor(record.length / 2);\n\t\t\t// \t\trecord = record.slice(0, midpoint);\n\n\t\t\t// \t}\n\t\t\t// }\n\n\n\n\n\t\t}\n\n\t\t// Filter out events tagged for removal in the event hook\n\t\tif (type === \"everything\") {\n\t\t\trecord = record.filter(e => !e._drop);\n\t\t}\n\n\t\treturn record;\n\t}",
|
|
460
|
+
"timestamp": "2026-04-10T01:39:06.655Z",
|
|
461
|
+
"version": "4.0"
|
|
462
|
+
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the default configuration file for the data generator in SIMPLE mode
|
|
3
|
-
* notice how the config object is structured, and see it's type definition in ./types.d.ts
|
|
4
|
-
* feel free to modify this file to customize the data you generate
|
|
5
|
-
* see helper functions in utils.js for more ways to generate data
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
1
|
import Chance from 'chance';
|
|
12
2
|
let chance = new Chance();
|
|
13
3
|
import dayjs from "dayjs";
|
|
@@ -20,6 +10,79 @@ const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Com
|
|
|
20
10
|
const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
|
|
21
11
|
const spiritAnimals = ["duck", "dog", "otter", "penguin", "cat", "elephant", "lion", "cheetah", "giraffe", "zebra", "rhino", "hippo", "whale", "dolphin", "shark", "octopus", "squid", "jellyfish", "starfish", "seahorse", "crab", "lobster", "shrimp", "clam", "snail", "slug", "butterfly", "moth", "bee", "wasp", "ant", "beetle", "ladybug", "caterpillar", "centipede", "millipede", "scorpion", "spider", "tarantula", "tick", "mite", "mosquito", "fly", "dragonfly", "damselfly", "grasshopper", "cricket", "locust", "mantis", "cockroach", "termite", "praying mantis", "walking stick", "stick bug", "leaf insect", "lacewing", "aphid", "cicada", "thrips", "psyllid", "scale insect", "whitefly", "mealybug", "planthopper", "leafhopper", "treehopper", "flea", "louse", "bedbug", "flea beetle", "weevil", "longhorn beetle", "leaf beetle", "tiger beetle", "ground beetle", "lady beetle", "firefly", "click beetle", "rove beetle", "scarab beetle", "dung beetle", "stag beetle", "rhinoceros beetle", "hercules beetle", "goliath beetle", "jewel beetle", "tortoise beetle"];
|
|
22
12
|
|
|
13
|
+
/*
|
|
14
|
+
* ============================================================================
|
|
15
|
+
* DATASET OVERVIEW
|
|
16
|
+
* ============================================================================
|
|
17
|
+
*
|
|
18
|
+
* App: eCommerce marketplace with integrated video content
|
|
19
|
+
* Scale: 50K users, 2M events, 108 days
|
|
20
|
+
*
|
|
21
|
+
* Core loop: Users browse products, watch videos, build carts, and check out.
|
|
22
|
+
* A signup funnel converts browsers into registered users. Video engagement
|
|
23
|
+
* (likes/dislikes) runs alongside the shopping flow.
|
|
24
|
+
*
|
|
25
|
+
* Events:
|
|
26
|
+
* page view (10) > view item (8) > watch video (8) > like video (6)
|
|
27
|
+
* > save item (5) > add to cart (4) > dislike video (4) > checkout (2) > sign up (1)
|
|
28
|
+
*
|
|
29
|
+
* Funnels:
|
|
30
|
+
* - Signup Flow: page view → view item → save item → page view → sign up (50%)
|
|
31
|
+
* - Video Likes: watch → like → watch → like (60%)
|
|
32
|
+
* - Video Dislikes: watch → dislike → watch → dislike (20%)
|
|
33
|
+
* - eCommerce Purchase: view → view → add to cart → view → add to cart → checkout (15%)
|
|
34
|
+
*
|
|
35
|
+
* User props: title, luckyNumber, spiritAnimal
|
|
36
|
+
* Super props: theme (light/dark/custom)
|
|
37
|
+
* ============================================================================
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* ============================================================================
|
|
42
|
+
* ANALYTICS HOOKS
|
|
43
|
+
* ============================================================================
|
|
44
|
+
*
|
|
45
|
+
* Hook 1: Signup Flow Improvement
|
|
46
|
+
* Type: event + everything (tag-and-filter)
|
|
47
|
+
* What: 7 days ago, signup flow switches from "v1" to "v2". Before that date,
|
|
48
|
+
* 50% of sign ups are tagged _drop and removed in the everything hook,
|
|
49
|
+
* simulating a broken flow that got fixed.
|
|
50
|
+
* Mixpanel report:
|
|
51
|
+
* - Insights > line chart > "sign up" totaled by day, breakdown by signup_flow
|
|
52
|
+
* - Expect: ~2x volume increase in last 7 days; v1 disappears, v2 takes over
|
|
53
|
+
*
|
|
54
|
+
* Hook 2: Watch Time Inflection
|
|
55
|
+
* Type: event
|
|
56
|
+
* What: 30 days ago, watch time shifts. Before: watchTimeSec reduced by 25-79%.
|
|
57
|
+
* After: increased by 25-79%. Creates a clear before/after inflection.
|
|
58
|
+
* Mixpanel report:
|
|
59
|
+
* - Insights > line chart > "watch video" with AVG(watchTimeSec) by day
|
|
60
|
+
* - Expect: clear upward inflection ~30 days ago; watch time roughly doubles
|
|
61
|
+
*
|
|
62
|
+
* Hook 3: Toys + Shoes Cart Correlation
|
|
63
|
+
* Type: event
|
|
64
|
+
* What: Checkout carts with toys get shoes injected (and vice versa). Carts
|
|
65
|
+
* with neither toys nor shoes have all item prices discounted to 75-90%.
|
|
66
|
+
* Mixpanel report:
|
|
67
|
+
* - Insights > bar chart > "checkout" broken down by cart[].category
|
|
68
|
+
* - Expect: toys and shoes co-occur at high rate; carts without both have lower values
|
|
69
|
+
*
|
|
70
|
+
* Hook 4: Quality → Watch Time Correlation
|
|
71
|
+
* Type: event
|
|
72
|
+
* What: Video quality multiplies watchTimeSec: 2160p=1.5x, 1440p=1.4x,
|
|
73
|
+
* 1080p=1.3x, 720p=1.15x, 480p=1.0x, 360p=0.85x, 240p=0.7x.
|
|
74
|
+
* Mixpanel report:
|
|
75
|
+
* - Insights > bar chart > "watch video" with AVG(watchTimeSec), breakdown by quality
|
|
76
|
+
* - Expect: monotonic increase from 240p to 2160p
|
|
77
|
+
*
|
|
78
|
+
* Hook 5: Item Flattening
|
|
79
|
+
* Type: event
|
|
80
|
+
* What: Events with an item array property get the first item's fields
|
|
81
|
+
* flattened onto the event record, making category/amount/slug available
|
|
82
|
+
* as top-level properties for easier breakdown in reports.
|
|
83
|
+
* ============================================================================
|
|
84
|
+
*/
|
|
85
|
+
|
|
23
86
|
|
|
24
87
|
function makeProducts(maxItems = 5) {
|
|
25
88
|
return function () {
|
|
@@ -64,7 +127,7 @@ function makeProducts(maxItems = 5) {
|
|
|
64
127
|
};
|
|
65
128
|
|
|
66
129
|
|
|
67
|
-
/** @type {import('../types').Dungeon} */
|
|
130
|
+
/** @type {import('../types.d.ts').Dungeon} */
|
|
68
131
|
const config = {
|
|
69
132
|
token: "",
|
|
70
133
|
seed: "simple is best",
|
|
@@ -92,7 +155,7 @@ const config = {
|
|
|
92
155
|
event: "checkout",
|
|
93
156
|
weight: 2,
|
|
94
157
|
properties: {
|
|
95
|
-
currency:
|
|
158
|
+
currency: ["USD", "CAD", "EUR", "BTC", "ETH", "JPY"],
|
|
96
159
|
coupon: weighChoices(["none", "none", "none", "none", "10%OFF", "20%OFF", "10%OFF", "20%OFF", "30%OFF", "40%OFF", "50%OFF"]),
|
|
97
160
|
cart: makeProducts()
|
|
98
161
|
}
|
|
@@ -151,7 +214,7 @@ const config = {
|
|
|
151
214
|
weight: 1,
|
|
152
215
|
isFirstEvent: true,
|
|
153
216
|
properties: {
|
|
154
|
-
signupMethod:
|
|
217
|
+
signupMethod: ["email", "google", "facebook", "twitter", "linkedin", "github"],
|
|
155
218
|
referral: weighChoices(["none", "none", "none", "friend", "ad", "ad", "ad", "friend", "friend", "friend", "friend"]),
|
|
156
219
|
}
|
|
157
220
|
},
|
|
@@ -217,7 +280,7 @@ const config = {
|
|
|
217
280
|
mirrorProps: {},
|
|
218
281
|
|
|
219
282
|
/*
|
|
220
|
-
for group analytics keys, we need an array of arrays [[],[],[]]
|
|
283
|
+
for group analytics keys, we need an array of arrays [[],[],[]]
|
|
221
284
|
each pair represents a group_key and the number of profiles for that key
|
|
222
285
|
*/
|
|
223
286
|
groupKeys: [],
|
|
@@ -231,7 +294,7 @@ const config = {
|
|
|
231
294
|
const DAY_WATCH_TIME_WENT_UP = NOW.subtract(30, 'day');
|
|
232
295
|
const eventTime = dayjs(record.time);
|
|
233
296
|
|
|
234
|
-
// unflattering 'items'
|
|
297
|
+
// unflattering 'items'
|
|
235
298
|
if (record.item && Array.isArray(record.item)) {
|
|
236
299
|
record = { ...record, ...record.item[0] };
|
|
237
300
|
delete record.item;
|
|
@@ -320,7 +383,6 @@ const config = {
|
|
|
320
383
|
// big themes!
|
|
321
384
|
|
|
322
385
|
// users who view items in the home and garden category churn more frequently
|
|
323
|
-
|
|
324
386
|
|
|
325
387
|
|
|
326
388
|
// dark mode leads to faster purchase conversion
|
|
@@ -382,4 +444,4 @@ function flip(likelihood = 50) {
|
|
|
382
444
|
}
|
|
383
445
|
|
|
384
446
|
|
|
385
|
-
export default config;
|
|
447
|
+
export default config;
|