@ascua/metrics 0.0.230 → 0.0.233
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.
|
@@ -61,7 +61,11 @@ export default class extends Metric {
|
|
|
61
61
|
|
|
62
62
|
if (!window.mixpanel) return;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
let event = Object.assign({}, data, {
|
|
65
|
+
Path: location.pathname,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
window.mixpanel.track('Page view', event);
|
|
65
69
|
|
|
66
70
|
}
|
|
67
71
|
|
|
@@ -71,7 +75,7 @@ export default class extends Metric {
|
|
|
71
75
|
|
|
72
76
|
assert(`You must pass a 'name' as the first argument to ${this.toString()}:trackEvent()`, name);
|
|
73
77
|
|
|
74
|
-
window.mixpanel(
|
|
78
|
+
window.mixpanel.track(name, data);
|
|
75
79
|
|
|
76
80
|
}
|
|
77
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ascua/metrics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.233",
|
|
4
4
|
"description": "Small description for @ascua/metrics goes here",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "8c94ffe5f269988f7f1937719110a84fc3a9ae4a"
|
|
29
29
|
}
|