Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtoygar/ember-cli-google-tag-manager
Ember addon to install and configure GoogleTagManager in your app
https://github.com/mtoygar/ember-cli-google-tag-manager
ember-addon
Last synced: 19 days ago
JSON representation
Ember addon to install and configure GoogleTagManager in your app
- Host: GitHub
- URL: https://github.com/mtoygar/ember-cli-google-tag-manager
- Owner: mtoygar
- License: mit
- Created: 2018-01-03T12:42:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T20:31:40.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T09:42:38.164Z (7 months ago)
- Topics: ember-addon
- Language: JavaScript
- Homepage:
- Size: 745 KB
- Stars: 1
- Watchers: 1
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember CLI google-tag-manager
Min Version 1.13.8
## Configuration
In `config/environment`
```javascript
var ENV = {
// ...
googleTagManager: {
appId: process.env.GOOGLE_TAG_MANAGER_ID,
gtmAuth: process.env.GOOGLE_TAG_MANAGER_AUTH, // optional
gtmPreview: process.env.GOOGLE_TAG_MANAGER_PREVIEW // optional
}
}
```## Effects
The addon will inject the Google Tag Manager code in your `` and ``
as specified here:
[https://developers.google.com/tag-manager/quickstart](https://developers.google.com/tag-manager/quickstart)Then addon plugs itself on the main router of the application and send a
`PageView` event after each successful transition.