We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 797a7ba commit 7b569f3Copy full SHA for 7b569f3
analytics/events.js
@@ -0,0 +1,15 @@
1
+"use strict";
2
+
3
+const makeEvent = (category) => (eventDetails) => ({
4
+ category: category,
5
+ action: eventDetails.action,
6
+ label: eventDetails.label || undefined,
7
+ value: eventDetails.value || undefined
8
+});
9
10
+const buildEvent = makeEvent("build");
11
+const configEvent = makeEvent("options");
12
13
+exports.makeEvent = makeEvent;
14
+exports.buildEvent = buildEvent;
15
+exports.configEvent = configEvent;
0 commit comments