{"repo":"adopted-ember-addons/ember-metrics","free":true,"listed":false,"github":"https://github.com/adopted-ember-addons/ember-metrics","clone":"git clone https://github.com/adopted-ember-addons/ember-metrics.git","description":"Send data to multiple analytics integrations without re-implementing new API","language":"TypeScript","stars":366,"topics":["ember-metrics","ember","ember-addon","analytics"],"license":"MIT","category":"analytics","readme_excerpt":"ember-metrics Send data to multiple analytics services without re-implementing a new API This addon adds a simple metrics service to your app that makes it easy to send data to multiple analytics services without having to implement a new API each time. Track events, page views, and more through one API, and add or remove analytics services just by changing how you activate their adapters. Writing your own adapter for an unsupported service is easy too — see Writing your own adapters. Upgrading from the classic (string-name) API? Adapters are now activated by passing adapter classes to metrics.activateAdapters(...) rather than by string name via config/environment . This makes the addon compatible with ember-strict-application-resolver and Embroider's static builds. See Configuration & activation. Compatibility - Ember.js v5.8 or above - Embroider or ember-auto-import v2 Installation Supported services and options Each service ships as an adapter class you import from ember-metrics/metrics-adapters/ (dasherized), e.g. ember-metrics/metrics-adapters/google-analytics-four . The options below are the values you put in that adapter's config . 1. GoogleAnalytics — ember-metrics/metrics-adapters/google-analytics - id : Property ID, e.g. UA-XXXX-Y 1. GoogleAnalyticsFour — ember-metrics/metrics-adapters/google-analytics-four - id : Measurement Id, e.g. G-XXXX - options : optional An object passed directly to the configuration tag, e.g.: By default GA4 automatically tracks page views ","default_branch":null,"files":null,"tree":[],"storefront":"/r/adopted-ember-addons","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adopted-ember-addons/ember-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}