Socket
Socket
Sign inDemoInstall

ember-metrics

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-metrics - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

9

addon/metrics-adapters/google-analytics.js

@@ -24,3 +24,3 @@ import Ember from 'ember';

const config = copy(get(this, 'config'));
const { id, sendHitTask, trace } = config;
const { id, sendHitTask, trace, require } = config;
let { debug } = config;

@@ -31,2 +31,3 @@

delete config.id;
delete config.require;

@@ -57,2 +58,8 @@ if (debug) { delete config.debug; }

}
if (require) {
require.forEach((plugin) => {
window.ga('require', plugin);
});
}

@@ -59,0 +66,0 @@ if (sendHitTask === false) {

4

package.json
{
"name": "ember-metrics",
"version": "0.12.0",
"version": "0.12.1",
"description": "Send data to multiple analytics integrations without re-implementing new API",

@@ -68,3 +68,3 @@ "directories": {

"ember-cli-babel": "^6.1.0",
"ember-getowner-polyfill": "^1.0.0",
"ember-getowner-polyfill": "^2.0.0",
"ember-runtime-enumerable-includes-polyfill": "^2.0.0"

@@ -71,0 +71,0 @@ },

@@ -15,9 +15,12 @@ # ember-metrics

1. `GoogleAnalytics`
- `id`: [Property ID](https://support.google.com/analytics/answer/1032385?hl=en), e.g. `UA-XXXX-Y`
- `id`: [Property ID](https://support.google.com/analytics/answer/1032385?hl=en), e.g. `UA-XXXX-Y`
1. `Mixpanel`
- `token`: [Mixpanel token](https://mixpanel.com/help/questions/articles/where-can-i-find-my-project-token)
- `token`: [Mixpanel token](https://mixpanel.com/help/questions/articles/where-can-i-find-my-project-token)
1. `GoogleTagManager`
- `id`: [Container ID](https://developers.google.com/tag-manager/quickstart), e.g. `GTM-XXXX`
- `dataLayer`: An array containing a single POJO of information, e.g.:
- `id`: [Container ID](https://developers.google.com/tag-manager/quickstart), e.g. `GTM-XXXX`
- `dataLayer`: An array containing a single POJO of information, e.g.:
```js

@@ -29,15 +32,23 @@ dataLayer = [{

```
- `envParams`: A string with custom arguments for configuring GTM environments (Live, Dev, etc), e.g.:
```
envParams: "gtm_auth=xxxxx&gtm_preview=env-xx&gtm_cookies_win=x"
```
1. `Segment`
- `key`: [Segment key](https://segment.com/docs/libraries/analytics.js/quickstart/)
- `key`: [Segment key](https://segment.com/docs/libraries/analytics.js/quickstart/)
1. `Piwik`
- `piwikUrl`: [Tracker URL](http://developer.piwik.org/guides/tracking-javascript-guide)
- `siteId`: [Site Id](http://developer.piwik.org/guides/tracking-javascript-guide)
- `piwikUrl`: [Tracker URL](http://developer.piwik.org/guides/tracking-javascript-guide)
- `siteId`: [Site Id](http://developer.piwik.org/guides/tracking-javascript-guide)
1. `Intercom`
- `appId`: [App ID](https://docs.intercom.com/help-and-faqs/getting-set-up/where-can-i-find-my-app-id)
- `appId`: [App ID](https://docs.intercom.com/help-and-faqs/getting-set-up/where-can-i-find-my-app-id)
1. `Facebook Pixel`
- `id`: [ID](https://www.facebook.com/ads/manager/pixel/facebook_pixel/?act=129849836&pid=p1)
- `id`: [ID](https://www.facebook.com/ads/manager/pixel/facebook_pixel/?act=129849836&pid=p1)
## Installing The Addon

@@ -75,3 +86,5 @@

// Ensure development env hits aren't sent to GA
sendHitTask: environment !== 'development'
sendHitTask: environment !== 'development',
// Specify Google Analytics plugins
require: ['ecommerce']
}

@@ -78,0 +91,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc