ember-metrics
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -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) { |
{ | ||
"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>m_preview=env-xx>m_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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44526
880
397
3
+ Addedember-getowner-polyfill@2.2.0(transitive)
- Removedacorn@5.7.4(transitive)
- Removedalign-text@0.1.4(transitive)
- Removedalter@0.2.0(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedast-traverse@0.1.1(transitive)
- Removedast-types@0.8.120.9.6(transitive)
- Removedbabel-core@5.8.38(transitive)
- Removedbabel-plugin-constant-folding@1.0.1(transitive)
- Removedbabel-plugin-dead-code-elimination@1.0.2(transitive)
- Removedbabel-plugin-eval@1.0.1(transitive)
- Removedbabel-plugin-inline-environment-variables@1.0.1(transitive)
- Removedbabel-plugin-jscript@1.0.4(transitive)
- Removedbabel-plugin-member-expression-literals@1.0.1(transitive)
- Removedbabel-plugin-property-literals@1.0.1(transitive)
- Removedbabel-plugin-proto-to-assign@1.0.4(transitive)
- Removedbabel-plugin-react-constant-elements@1.0.3(transitive)
- Removedbabel-plugin-react-display-name@1.0.3(transitive)
- Removedbabel-plugin-remove-console@1.0.1(transitive)
- Removedbabel-plugin-remove-debugger@1.0.1(transitive)
- Removedbabel-plugin-runtime@1.0.7(transitive)
- Removedbabel-plugin-undeclared-variables-check@1.0.2(transitive)
- Removedbabel-plugin-undefined-to-void@1.1.6(transitive)
- Removedbabylon@5.8.38(transitive)
- Removedbluebird@2.11.0(transitive)
- Removedbreakable@1.0.0(transitive)
- Removedbroccoli-babel-transpiler@5.7.4(transitive)
- Removedbroccoli-merge-trees@1.2.4(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedcliui@2.1.0(transitive)
- Removedclone@0.2.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedcore-js@1.2.7(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddefs@1.1.1(transitive)
- Removeddetect-indent@3.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedember-cli-babel@5.2.8(transitive)
- Removedember-cli-version-checker@1.3.1(transitive)
- Removedember-getowner-polyfill@1.2.5(transitive)
- Removedesprima@2.7.33.1.3(transitive)
- Removedesprima-fb@15001.1001.0-dev-harmony-fb(transitive)
- Removedfs-readdir-recursive@0.1.2(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedglobals@6.4.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhome-or-tmp@1.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-integer@1.0.7(transitive)
- Removedjs-tokens@1.0.1(transitive)
- Removedjson5@0.4.0(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlcid@1.0.0(transitive)
- Removedleven@1.0.2(transitive)
- Removedlodash@3.10.1(transitive)
- Removedlongest@1.0.1(transitive)
- Removedminimatch@2.0.10(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedoutput-file-sync@1.1.2(transitive)
- Removedpath-exists@1.0.0(transitive)
- Removedq@1.5.1(transitive)
- Removedrecast@0.10.330.11.23(transitive)
- Removedregenerator@0.8.40(transitive)
- Removedregexpu@1.3.0(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedrepeating@1.1.3(transitive)
- Removedright-align@0.1.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsimple-fmt@0.1.0(transitive)
- Removedsimple-is@0.2.0(transitive)
- Removedsource-map@0.1.32(transitive)
- Removedsource-map-support@0.2.10(transitive)
- Removedstable@0.1.8(transitive)
- Removedstringmap@0.2.2(transitive)
- Removedstringset@0.2.1(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtry-resolve@1.0.1(transitive)
- Removedtryor@0.1.2(transitive)
- Removeduser-home@1.1.1(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyargs@3.27.0(transitive)