Description
ember-metrics is an addon for Ember.js apps that sends analytics data to several services through one metrics service. You track events and page views through a single API, and you add or remove analytics services by changing which adapters you activate. Adapters are passed as classes to metrics.activateAdapters, which works with the strict application resolver and Embroider builds. Supported services include Google Analytics and Google Analytics 4, each imported from its own metrics-adapters path and configured with its own options. The Google Analytics 4 adapter tracks page views automatically when the history location changes, so manual page view tracking is ignored unless you turn send_page_view off. The README also explains how to write your own adapter for a service that is not supported. The addon requires Ember.js 5.8 or above and either Embroider or ember-auto-import v2. The code is public on GitHub under the adopted-ember-addons organization.…
Highlights
- One metrics service for several analytics services
- Adapter classes activated with activateAdapters
- Google Analytics and Google Analytics 4 adapters
- Custom adapters for other services
- Works with Embroider and ember-auto-import v2
Ratings & Reviews
No ratings yet
Be the first to rate Ember Metrics.
People also visit
Analytics
Lightweight analytics abstraction layer for tracking page views, custom events

analytics-events
Add product analytics events to track user interactions in the Metabase frontend

Snowplow Javascript Tracker
Snowplow event tracker for client-side and server-side JavaScript
Save Analytics From Content Blockers
A proxy back end for Google Tag Manager & Google Analytics
Ember Metrics FAQ
What is ember-metrics?
An Ember.js addon that sends events and page views to multiple analytics services through one metrics API.
What does it require?
Ember.js 5.8 or above, and either Embroider or ember-auto-import v2.
How do I switch analytics services?
Activate or remove adapter classes with metrics.activateAdapters, instead of the older string names in config.
Can I add a service it does not support?
Yes. The README has a section on writing your own adapters.
What are the best Ember Metrics alternatives?
Popular alternatives to Ember Metrics include Analytics, MetricsWave 🌊 and Snowplow Javascript Tracker. See all Ember Metrics alternatives



.png?auto=compress&fit=max&w=128)
