ember-ahoy

Integrates your ember app with ahoy, a Visit and event tracking for JavaScript

Usage no npm install needed!

<script type="module">
  import emberAhoy from 'https://cdn.skypack.dev/ember-ahoy';
</script>

README

Ember Ahoy

This Addon integrates your ember app with ahoy, a Visit and event tracking for JavaScript

Installation

Installing the library is as easy as:

  • ember install ember-ahoy

Usage

To track a visit in a page use track-page helper

{{!-- app/templates/home.hbs --}}
{{track-page "Home"}}

...

Configuration

Ember Ahoy is configured via the 'ember-ahoy' section in the application's config/environment.js file, e.g.:

ENV['ahoy'] = {
  debug: environment === 'development',
  visitsUrl: 'http://my.server.io/ahoy/visits',
  eventsUrl: 'http://my.server.io/ahoy/events'
};