0.5.0 • Published 6 years ago

ember-metrics-adobe-dtm v0.5.0

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

ember-metrics-adobe-dtm

Greenkeeper badge npm version Build Status Ember Version

ember-metrics adapter for Adobe Dynamic Tag Management

Installation

ember install ember-metrics-adobe-dtm

Usage

// config/environment.js
let ENV = {
  metricsAdapters: [
    {
      name: 'AdobeDTM',
      config: {
        // leave off `src` if the dtm script is already on the page
        src: '//assets.adobedtm.com/your-script-url.js',

        // turns on dtm debug logging
        debug: true
      }
    }
  ]
};

This comes with a test helper to mock the _satellite window object.

import mock, { reset } from 'ember-metrics-adobe-dtm/test-support/mock';

mock();
reset();

// or

mock({
  // optional custom window mock
  window,

  // optional pageBottom callback
  pageBottom,

  // optional track callback
  track
});

reset({
  // optional custom window mock
  window
})

Contributing

Installation

  • git clone <repository-url>
  • cd my-addon
  • npm install

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago