@kysmith/ember-cli-piwik
v0.1.1
Published
An Ember addon that will setup and inject the Piwik tracking script into your app at build time.
Downloads
3
Readme
ember-cli-piwik
This addon will setup and inject the Piwik tracking script into your app at build time. At runtime you will be
able to use window._paq
as described in the piwik developer guide.
Usage
Installation
ember install @kysmith/ember-cli-piwik
Configuration
This addon requires you to set options in your apps environment config file config/environment.js
.
piwik: {
sid: 123,
url: 'https://your-piwik.endpoint.com'
}
Contributing
Installation
git clone <repository-url>
this repositorycd ember-cli-piwik
npm install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
Acknowledgements
This addon is heavily based on unwiredbrain/ember-cli-piwik