make-mp-data 3.0.4 → 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.
Files changed (70) hide show
  1. package/README.md +46 -0
  2. package/dungeons/array-of-object-lookup-schema.json +327 -0
  3. package/dungeons/array-of-object-lookup.js +28 -8
  4. package/dungeons/capstone/capstone-ic3.js +291 -0
  5. package/dungeons/capstone/capstone-ic4.js +598 -0
  6. package/dungeons/capstone/capstone-ic5.js +668 -0
  7. package/dungeons/capstone/generate-product-lookup.js +309 -0
  8. package/dungeons/ecommerce-schema.json +462 -0
  9. package/dungeons/{copilot.js → ecommerce.js} +77 -15
  10. package/dungeons/education-schema.json +2409 -0
  11. package/dungeons/education.js +206 -442
  12. package/dungeons/fintech-schema.json +14034 -0
  13. package/dungeons/fintech.js +110 -389
  14. package/dungeons/foobar-schema.json +403 -0
  15. package/dungeons/foobar.js +27 -4
  16. package/dungeons/food-delivery-schema.json +192 -0
  17. package/dungeons/food-delivery.js +602 -0
  18. package/dungeons/food-schema.json +1152 -0
  19. package/dungeons/food.js +150 -383
  20. package/dungeons/gaming-schema.json +1270 -0
  21. package/dungeons/gaming.js +143 -3
  22. package/dungeons/insurance-application-schema.json +204 -0
  23. package/dungeons/insurance-application.js +605 -0
  24. package/dungeons/media-schema.json +906 -0
  25. package/dungeons/media.js +221 -391
  26. package/dungeons/retention-cadence-schema.json +78 -0
  27. package/dungeons/retention-cadence.js +35 -1
  28. package/dungeons/rpg-schema.json +4526 -0
  29. package/dungeons/rpg.js +130 -388
  30. package/dungeons/sanity-schema.json +255 -0
  31. package/dungeons/sanity.js +21 -10
  32. package/dungeons/sass-schema.json +1291 -0
  33. package/dungeons/sass.js +210 -337
  34. package/dungeons/scd-schema.json +919 -0
  35. package/dungeons/scd.js +38 -10
  36. package/dungeons/simple-schema.json +608 -0
  37. package/dungeons/simple.js +48 -11
  38. package/dungeons/simplest-schema.json +1418 -0
  39. package/dungeons/simplest.js +392 -0
  40. package/dungeons/social-schema.json +1118 -0
  41. package/dungeons/social.js +124 -365
  42. package/dungeons/text-generation-schema.json +3096 -0
  43. package/dungeons/text-generation.js +71 -0
  44. package/index.js +6 -3
  45. package/lib/core/config-validator.js +18 -0
  46. package/lib/core/storage.js +5 -5
  47. package/lib/generators/events.js +4 -4
  48. package/lib/orchestrators/mixpanel-sender.js +12 -7
  49. package/lib/orchestrators/user-loop.js +14 -6
  50. package/lib/templates/soup-presets.js +188 -0
  51. package/lib/utils/utils.js +52 -6
  52. package/package.json +1 -1
  53. package/types.d.ts +20 -3
  54. package/dungeons/adspend.js +0 -117
  55. package/dungeons/anon.js +0 -128
  56. package/dungeons/benchmark-heavy.js +0 -240
  57. package/dungeons/benchmark-light.js +0 -126
  58. package/dungeons/big.js +0 -226
  59. package/dungeons/business.js +0 -391
  60. package/dungeons/complex.js +0 -428
  61. package/dungeons/experiments.js +0 -137
  62. package/dungeons/funnels.js +0 -309
  63. package/dungeons/mil.js +0 -323
  64. package/dungeons/mirror.js +0 -160
  65. package/dungeons/soup-test.js +0 -52
  66. package/dungeons/streaming.js +0 -372
  67. package/dungeons/strict-event-test.js +0 -30
  68. package/dungeons/student-teacher.js +0 -438
  69. package/dungeons/too-big-events.js +0 -203
  70. package/dungeons/user-agent.js +0 -209
@@ -1,117 +0,0 @@
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
- import Chance from 'chance';
12
- const chance = new Chance();
13
- import dayjs from "dayjs";
14
- import utc from "dayjs/plugin/utc.js";
15
- dayjs.extend(utc);
16
- import { uid, comma } from 'ak-tools';
17
- import { weighNumRange, date, integer } from "../lib/utils/utils.js";
18
-
19
- /** @type {import('../types').Dungeon} */
20
- const config = {
21
- token: "",
22
- seed: "foo bar",
23
- numDays: 365, //how many days worth of data
24
- numEvents: 10000000, //how many events
25
- numUsers: 25000, //how many users
26
- format: 'json', //csv or json
27
- region: "US",
28
- hasAnonIds: true, //if true, anonymousIds are created for each user
29
- hasSessionIds: false, //if true, hasSessionIds are created for each user
30
- hasAdSpend: true,
31
- events: [
32
- {
33
- event: "foo",
34
- weight: 10 },
35
- {
36
- event: "bar",
37
- weight: 9 },
38
- {
39
- event: "baz",
40
- weight: 8 },
41
- {
42
- event: "qux",
43
- weight: 7 },
44
- {
45
- event: "garply",
46
- weight: 6 },
47
- {
48
- event: "durtle",
49
- weight: 5 },
50
- {
51
- event: "linny",
52
- weight: 4 },
53
- {
54
- event: "fonk",
55
- weight: 3 },
56
- {
57
- event: "crumn",
58
- weight: 2 },
59
- {
60
- event: "yak",
61
- weight: 1 }
62
- ],
63
- superProps: {
64
- color: ["red", "orange", "yellow", "green", "blue", "indigo", "violet"],
65
- number: integer },
66
- userProps: {
67
- title: chance.profession.bind(chance),
68
- luckyNumber: weighNumRange(42, 420),
69
- spiritAnimal: ["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"]
70
- },
71
-
72
- scdProps: {},
73
- mirrorProps: {},
74
- groupKeys: [],
75
- groupProps: {},
76
- lookupTables: [],
77
- hook: function (record, type, meta) {
78
- // user hook: segment users into tiers based on their lucky number
79
- if (type === "user") {
80
- if (record.luckyNumber > 300) {
81
- record.tier = "gold";
82
- } else if (record.luckyNumber > 150) {
83
- record.tier = "silver";
84
- } else {
85
- record.tier = "bronze";
86
- }
87
- }
88
-
89
- // event hook: gold tier users get a "premium" color override 20% of the time
90
- if (type === "event") {
91
- if (record.color === "violet" || record.color === "indigo") {
92
- record.is_rare_color = true;
93
- record.number = (record.number || 0) * 2;
94
- }
95
- }
96
-
97
- // everything hook: users with many events get a bonus "milestone" event
98
- if (type === "everything") {
99
- if (record.length > 50) {
100
- const lastEvent = record[record.length - 1];
101
- record.push({
102
- event: "milestone reached",
103
- time: lastEvent.time,
104
- user_id: lastEvent.user_id,
105
- milestone: record.length,
106
- color: "gold" });
107
- }
108
- return record;
109
- }
110
-
111
- return record;
112
- }
113
- };
114
-
115
-
116
-
117
- export default config;
package/dungeons/anon.js DELETED
@@ -1,128 +0,0 @@
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
- import Chance from 'chance';
12
- const chance = new Chance();
13
- import dayjs from "dayjs";
14
- import utc from "dayjs/plugin/utc.js";
15
- dayjs.extend(utc);
16
- import { uid, comma } from 'ak-tools';
17
- import { weighNumRange, date, integer } from "../lib/utils/utils.js";
18
-
19
-
20
-
21
- /** @type {import('../types').Dungeon} */
22
- const config = {
23
- token: "",
24
- seed: "foo bar",
25
- numDays: 365, //how many days worth of data
26
- numEvents: 100000, //how many events
27
- numUsers: 10000, //how many users
28
- format: 'json', //csv or json
29
- region: "US",
30
- hasAnonIds: true, //if true, anonymousIds are created for each user
31
- hasSessionIds: false, //if true, hasSessionIds are created for each user
32
- isAnonymous: true,
33
- hasLocation: true,
34
- events: [
35
- {
36
- event: "foo",
37
- weight: 10,
38
- properties: {}
39
- },
40
- {
41
- event: "bar",
42
- weight: 9,
43
- properties: {}
44
- },
45
- {
46
- event: "baz",
47
- weight: 8,
48
- properties: {}
49
- },
50
- {
51
- event: "qux",
52
- weight: 7,
53
- properties: {}
54
- },
55
- {
56
- event: "garply",
57
- weight: 6,
58
- properties: {}
59
- },
60
- {
61
- event: "durtle",
62
- weight: 5,
63
- properties: {}
64
- },
65
- {
66
- event: "linny",
67
- weight: 4,
68
- properties: {}
69
- },
70
- {
71
- event: "fonk",
72
- weight: 3,
73
- properties: {}
74
- },
75
- {
76
- event: "crumn",
77
- weight: 2,
78
- properties: {}
79
- },
80
- {
81
- event: "yak",
82
- weight: 1,
83
- properties: {}
84
- }
85
- ],
86
- superProps: {},
87
- userProps: {
88
- title: chance.profession.bind(chance),
89
- luckyNumber: weighNumRange(42, 420),
90
- spiritAnimal: ["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"]
91
- },
92
- scdProps: {},
93
- mirrorProps: {},
94
- groupKeys: [],
95
- groupProps: {},
96
- lookupTables: [],
97
- hook: function (record, type, meta) {
98
- // user hook: assign engagement tier based on lucky number
99
- if (type === "user") {
100
- record.engagement_tier = record.luckyNumber > 250 ? "high" : "low";
101
- }
102
-
103
- // event hook: weight-1 events ("yak") are treated as error/rare signals
104
- if (type === "event") {
105
- if (record.event === "yak") {
106
- record.is_error = true;
107
- }
108
- if (record.event === "foo") {
109
- record.priority = "high";
110
- }
111
- }
112
-
113
- // everything hook: low-activity anonymous users churn — keep only first 60% of events
114
- if (type === "everything") {
115
- if (record.length < 8) {
116
- const cutoff = Math.ceil(record.length * 0.6);
117
- return record.slice(0, cutoff);
118
- }
119
- return record;
120
- }
121
-
122
- return record;
123
- }
124
- };
125
-
126
-
127
-
128
- export default config;
@@ -1,240 +0,0 @@
1
- /**
2
- * Benchmark Dungeon Configuration
3
- * Generates one million events across 10,000 users
4
- * ensure we have multiple property types and distributions
5
- */
6
-
7
-
8
-
9
-
10
- import Chance from 'chance';
11
- let chance = new Chance();
12
- import dayjs from "dayjs";
13
- import utc from "dayjs/plugin/utc.js";
14
- dayjs.extend(utc);
15
- import { uid, comma } from 'ak-tools';
16
- import { pickAWinner, weighNumRange, date, integer, weighChoices } from "../lib/utils/utils.js";
17
- import { createTextGenerator } from '../lib/generators/text.js';
18
-
19
- // list of strings use case
20
- function buildListOfFeatures() {
21
- const fullFeatureList = ["beta flags", "alpha flags", "custom themes", "API access", "webhooks", "data export", "data import", "external integrations", "private cloud", "multi factor auth", "audit logs", "custom domain", "personalized landing"];
22
- const numFeatures = integer(3, 7);
23
- const selectedFeatures = chance.pickset(fullFeatureList, numFeatures);
24
- return [selectedFeatures];
25
- }
26
-
27
- // object use case
28
- function buildLocalConfig() {
29
- const allPossibleConfigs = {
30
- "theme": ["light", "dark", "custom"],
31
- "notifications": ["all", "mentions", "none"],
32
- "itemsPerPage": pickAWinner([10, 25, 50, 100]),
33
- "language": ["en", "es", "fr", "de", "zh", "jp", "ru"],
34
- "timezone": ["UTC", "PST", "EST", "CST", "MST", "GMT", "CET", "IST", "JST", "AEST"],
35
- "privacyLevel": ["public", "friends only", "private"],
36
- "dataSharing": [true, false],
37
- "autoSave": [true, false],
38
- "fontSize": ["small", "medium", "large"],
39
- "layout": ["grid", "list", "compact"]
40
- };
41
- const config = {};
42
-
43
- for (const [key, values] of Object.entries(allPossibleConfigs)) {
44
- let value;
45
- if (typeof values === 'function') {
46
- value = values();
47
- } else if (Array.isArray(values)) {
48
- value = values;
49
- } else {
50
- value = values;
51
- }
52
- config[key] = chance.pickone(value);
53
- }
54
- return config;
55
- }
56
-
57
-
58
- // array of object use case
59
- function buildCart() {
60
- const allPossibleItems = [
61
- { itemId: uid(), name: "widget foo", price: 9.99, category: "Gadgets", isPremium: false, stock: 150 },
62
- { itemId: uid(), name: "poker bar", price: 14.99, category: "Gizmos", isPremium: true, stock: 100 },
63
- { itemId: uid(), name: "limited baz", price: 4.99, category: "Toys", isPremium: false, stock: 200 },
64
- { itemId: uid(), name: "foolish qux", price: 19.99, category: "Tools", isPremium: false, stock: 50 },
65
- { itemId: uid(), name: "topical mux", price: 29.99, category: "Components", isPremium: true, stock: 75 },
66
- { itemId: uid(), name: "random garply", price: 24.99, category: "Gadgets", isPremium: false, stock: 30 },
67
- { itemId: uid(), name: "helpful waldo", price: 39.99, category: "Gizmos", isPremium: true, stock: 20 },
68
- { itemId: uid(), name: "hillarious defcon", price: 11.99, category: "Toys", isPremium: false, stock: 120 },
69
- { itemId: uid(), name: "final radiator", price: 7.99, category: "Tools", isPremium: false, stock: 80 },
70
- { itemId: uid(), name: "leaning wholesome", price: 49.99, category: "Components", isPremium: true, stock: 10 },
71
- { itemId: uid(), name: "whose friends", price: 17.99, category: "Gadgets", isPremium: false, stock: 60 },
72
- ];
73
- const numItems = integer(1, 20);
74
- const selectedItems = chance.pickset(allPossibleItems, numItems);
75
- // add quantity to each item
76
- for (const item of selectedItems) {
77
- item.quantity = integer(1, 8);
78
- item.totalPrice = item.price * item.quantity;
79
- }
80
- return [...selectedItems];
81
-
82
- }
83
-
84
-
85
-
86
- const commentGenerator = createTextGenerator({
87
- authenticityLevel: 0.8,
88
- enableDeduplication: true,
89
- includeMetadata: false,
90
- style: "comments",
91
- formality: "casual",
92
- mixedSentiment: true,
93
- keywords: {
94
- "brands": ["Nike", "Adidas", "Puma", "Reebok", "Under Armour", "New Balance", "Asics", "Skechers", "Converse", "Vans"],
95
- "categories": ["shoes", "sneakers", "running shoes", "basketball shoes", "casual shoes", "formal shoes", "boots", "sandals", "heels", "flats"],
96
- "credibility": ["verified purchase", "top reviewer", "frequent buyer", "long-time customer", "new customer"],
97
- "features": ["comfort", "durability", "style", "fit", "value for money", "design", "color options", "material quality", "breathability", "support"],
98
- "issues": ["size runs small", "poor arch support", "slippery sole", "uncomfortable", "not true to color", "weak laces", "easily scuffed", "bad odor", "heavy weight", "limited stock"],
99
- },
100
- typos: false,
101
- min: 20,
102
- max: 255,
103
-
104
- });
105
-
106
-
107
-
108
- /** @type {import('../types.js').Dungeon} */
109
- const config = {
110
- // token: "",
111
- name: "300k-Events-Heavy",
112
- format: 'json', //csv or json
113
- seed: "one million events",
114
- numDays: 92, //how many days worth of data
115
- numEvents: 300_000, //how many events
116
- numUsers: 10_000, //how many users
117
- strictEventCount: true,
118
-
119
- region: "US",
120
- hasAnonIds: true, //if true, anonymousIds are created for each user
121
- hasSessionIds: true, //if true, hasSessionIds are created for each user
122
- hasAdSpend: false,
123
- hasLocation: true,
124
- hasAndroidDevices: true,
125
- hasIOSDevices: true,
126
- hasDesktopDevices: true,
127
- hasBrowser: true,
128
- hasCampaigns: true,
129
- isAnonymous: false,
130
- alsoInferFunnels: true,
131
- // concurrency automatically set to 1 when strictEventCount is enabled
132
- writeToDisk: false,
133
- batchSize: 2_500_000,
134
-
135
- events: [
136
- {
137
- event: "Page View",
138
- weight: 50,
139
-
140
- },
141
- {
142
- event: "Product View",
143
- weight: 30,
144
- },
145
- {
146
- event: "Add to Cart",
147
- weight: 10,
148
- },
149
- {
150
- event: "Checkout Started",
151
- weight: 5,
152
- },
153
- {
154
- event: "Purchase",
155
- weight: 1,
156
- },
157
- {
158
- event: "Product Review",
159
- weight: 3,
160
- },
161
- {
162
- event: "Search",
163
- weight: 17,
164
- },
165
- {
166
- event: "Browse",
167
- weight: 25,
168
-
169
- },
170
- {
171
- event: "Save for Later",
172
- weight: 4,
173
- },
174
- {
175
- event: "Remove from Cart",
176
- weight: 2,
177
- },
178
- {
179
- event: "Empty Cart",
180
- weight: 4,
181
- }
182
- ],
183
- funnels: [
184
- {
185
- "name": "Purchase Funnel",
186
- "sequence": [
187
- "Page View",
188
- "Product View",
189
- "Add to Cart",
190
- "Checkout Started",
191
- "Purchase"
192
- ],
193
- requireRepeats: true,
194
- "conversionRate": 30,
195
- "order": "fixed",
196
- "weight": 1,
197
- "isFirstFunnel": false,
198
- "timeToConvert": 5,
199
- "experiment": true,
200
- }
201
- ],
202
- superProps: {
203
- "theme (string)": pickAWinner(["light", "dark", "custom", "light", "dark"]),
204
- "latency (number)": weighNumRange(20, 600, 0.7),
205
- "beta user (boolean)": [true, false, false, false],
206
- "birthdate (date)": date(30000, true, 'YYYY-MM-DD'),
207
- "features (list)": buildListOfFeatures,
208
- "config (object)": buildLocalConfig,
209
- "cart (array of objects)": buildCart,
210
- "comment (text)": commentGenerator,
211
- },
212
- /*
213
- user properties work the same as event properties
214
- each key should be an array or function reference
215
- */
216
- userProps: {
217
-
218
-
219
- },
220
- scdProps: {},
221
- mirrorProps: {},
222
-
223
- /*
224
- for group analytics keys, we need an array of arrays [[],[],[]]
225
- each pair represents a group_key and the number of profiles for that key
226
- */
227
- groupKeys: [],
228
- groupProps: {},
229
- lookupTables: [],
230
- hook: function (record, type, meta) {
231
- // if (type === "everything") {
232
- // debugger;
233
- // }
234
- return record;
235
- }
236
- };
237
-
238
-
239
-
240
- export default config;
@@ -1,126 +0,0 @@
1
- /**
2
- * Benchmark Dungeon Configuration
3
- * Generates one million events across 10,000 users
4
- * ensure we have multiple property types and distributions
5
- */
6
-
7
-
8
-
9
-
10
- import Chance from 'chance';
11
- let chance = new Chance();
12
- import dayjs from "dayjs";
13
- import utc from "dayjs/plugin/utc.js";
14
- dayjs.extend(utc);
15
- import { uid, comma } from 'ak-tools';
16
- import { weighNumRange, date, integer, weighChoices } from "../lib/utils/utils.js";
17
- import { createTextGenerator } from '../lib/generators/text.js';
18
-
19
- /** @type {import('../types.js').Dungeon} */
20
- const config = {
21
- // token: "",
22
- name: "5M-Events-Light",
23
- format: 'json', //csv or json
24
- seed: "one million events",
25
- numDays: 92, //how many days worth of data
26
- numEvents: 5_000_000, //how many events
27
- numUsers: 10_000, //how many users
28
- strictEventCount: true,
29
-
30
- region: "US",
31
- hasAnonIds: false, //if true, anonymousIds are created for each user
32
- hasSessionIds: false, //if true, hasSessionIds are created for each user
33
- hasAdSpend: false,
34
- hasLocation: false,
35
- hasAndroidDevices: false,
36
- hasIOSDevices: false,
37
- hasDesktopDevices: false,
38
- hasBrowser: false,
39
- hasCampaigns: false,
40
- isAnonymous: false,
41
- alsoInferFunnels: true,
42
- // concurrency automatically set to 1 when strictEventCount is enabled
43
- writeToDisk: false,
44
- batchSize: 12_500_000,
45
-
46
- events: [
47
- {
48
- event: "Page View",
49
- weight: 50 },
50
- {
51
- event: "Product View",
52
- weight: 30 },
53
- {
54
- event: "Add to Cart",
55
- weight: 10 },
56
- {
57
- event: "Checkout Started",
58
- weight: 5 },
59
- {
60
- event: "Purchase",
61
- weight: 1 },
62
- {
63
- event: "Product Review",
64
- weight: 3 },
65
- {
66
- event: "Search",
67
- weight: 17 },
68
- {
69
- event: "Browse",
70
- weight: 25 },
71
- {
72
- event: "Save for Later",
73
- weight: 4 },
74
- {
75
- event: "Remove from Cart",
76
- weight: 2 },
77
- {
78
- event: "Empty Cart",
79
- weight: 4 }
80
- ],
81
- funnels: [
82
- {
83
- "name": "Purchase Funnel",
84
- "sequence": [
85
- "Page View",
86
- "Product View",
87
- "Add to Cart",
88
- "Checkout Started",
89
- "Purchase"
90
- ],
91
- requireRepeats: true,
92
- "conversionRate": 30,
93
- "order": "fixed",
94
- "weight": 1,
95
- "isFirstFunnel": false,
96
- "timeToConvert": 5,
97
- "experiment": true }
98
- ],
99
- superProps: {
100
- },
101
- /*
102
- user properties work the same as event properties
103
- each key should be an array or function reference
104
- */
105
- userProps: {},
106
- scdProps: {},
107
- mirrorProps: {},
108
-
109
- /*
110
- for group analytics keys, we need an array of arrays [[],[],[]]
111
- each pair represents a group_key and the number of profiles for that key
112
- */
113
- groupKeys: [],
114
- groupProps: {},
115
- lookupTables: [],
116
- hook: function (record, type, meta) {
117
- // if (type === "everything") {
118
- // debugger;
119
- // }
120
- return record;
121
- }
122
- };
123
-
124
-
125
-
126
- export default config;