@ascua/metrics 0.0.231 → 0.0.234

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
- window.mixpanel('trackEvent', 'page viewed', data);
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('trackEvent', name, data);
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.231",
3
+ "version": "0.0.234",
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": "a343b1d5909967cc6126d2d63c6dc63b862bd09e"
28
+ "gitHead": "92fd9e2be3bcb58d08e2c674bbd90c9fb250efcd"
29
29
  }