Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.