Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellyselden/ember-metrics-mixins
ember-metrics mixins
https://github.com/kellyselden/ember-metrics-mixins
Last synced: 16 days ago
JSON representation
ember-metrics mixins
- Host: GitHub
- URL: https://github.com/kellyselden/ember-metrics-mixins
- Owner: kellyselden
- License: mit
- Created: 2015-10-29T22:39:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T09:03:11.000Z (about 6 years ago)
- Last Synced: 2024-04-29T12:20:46.701Z (9 months ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-metrics-mixins
==============================================================================[![Greenkeeper badge](https://badges.greenkeeper.io/kellyselden/ember-metrics-mixins.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/ember-metrics-mixins.svg)](https://badge.fury.io/js/ember-metrics-mixins)
[![Build Status](https://travis-ci.org/kellyselden/ember-metrics-mixins.svg?branch=master)](https://travis-ci.org/kellyselden/ember-metrics-mixins)
[![Ember Version](https://img.shields.io/badge/ember-2.16%2B-brightgreen.svg)](https://www.emberjs.com/)This mixin will add the `ember-metrics` boilerplate to your router.
Installation
------------------------------------------------------------------------------```
ember install ember-metrics-mixins
```Usage
------------------------------------------------------------------------------Add this to your `app/router.js`:
```js
import EmberMetricsRouterMixin from 'ember-metrics-mixins/mixins/router';const Router = Ember.Router.extend(EmberMetricsRouterMixin, {
// ...// optional
mergeAdditionalOptions(infos) {
// get something off `infos`
return {
foo: 'bar'
};
}
});
```It sends `trackPage` with `url`, `routeName`, and whatever else you merged.
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).