Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellyselden/ember-metrics-adobe-dtm
ember-metrics adapter for Adobe Dynamic Tag Management
https://github.com/kellyselden/ember-metrics-adobe-dtm
Last synced: 16 days ago
JSON representation
ember-metrics adapter for Adobe Dynamic Tag Management
- Host: GitHub
- URL: https://github.com/kellyselden/ember-metrics-adobe-dtm
- Owner: kellyselden
- License: mit
- Created: 2017-10-21T19:43:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T21:43:35.000Z (about 6 years ago)
- Last Synced: 2024-12-21T09:30:36.720Z (about 1 month ago)
- Language: JavaScript
- Size: 134 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-metrics-adobe-dtm
==============================================================================[![Greenkeeper badge](https://badges.greenkeeper.io/kellyselden/ember-metrics-adobe-dtm.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/ember-metrics-adobe-dtm.svg)](https://badge.fury.io/js/ember-metrics-adobe-dtm)
[![Build Status](https://travis-ci.org/kellyselden/ember-metrics-adobe-dtm.svg?branch=master)](https://travis-ci.org/kellyselden/ember-metrics-adobe-dtm)
[![Ember Version](https://img.shields.io/badge/ember-2.16%2B-brightgreen.svg)](https://www.emberjs.com/)[ember-metrics](https://github.com/poteto/ember-metrics) adapter for Adobe [Dynamic Tag Management](https://dtm.adobe.com/)
Installation
------------------------------------------------------------------------------```
ember install ember-metrics-adobe-dtm
```Usage
------------------------------------------------------------------------------```js
// 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.
```js
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
})
```License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).