Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byrnedo/ember-google-adwords-remarketing
Ember addon for adwords remarketing conversion tracking.
https://github.com/byrnedo/ember-google-adwords-remarketing
ember ember-addon google-adwords javascript
Last synced: 25 days ago
JSON representation
Ember addon for adwords remarketing conversion tracking.
- Host: GitHub
- URL: https://github.com/byrnedo/ember-google-adwords-remarketing
- Owner: byrnedo
- License: mit
- Created: 2017-08-15T12:07:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T14:31:11.000Z (almost 7 years ago)
- Last Synced: 2024-09-14T11:53:09.255Z (about 2 months ago)
- Topics: ember, ember-addon, google-adwords, javascript
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-google-adwords-remarketing
Really simple add on for integrating [Adwords Remarketing](https://developers.google.com/adwords-remarketing-tag/asynchronous/) in ember.
This addon exposes a service called `conversion`.
You can use the `trackEvent` function to record conversions.
NOTE: this is using the new `gtag` script from google. See [Changes to the Website Conversion Tracker Tag](https://support.google.com/adwords/answer/7548399?hl=en).
Example:
```javascript
import Ember from 'ember';export default Ember.Route.extend({
conversion: Ember.inject.service(),
actions: {
onThingDone(){
this.get('conversion').trackEvent('conversion', 'AW-123456', {value: 100});
}
}
});
```Methods:
`trackEvent` equates to `gtag('event'...)`
`setConfig` equates to `gtag('config'...)`If for some reason the google script doesn't download, we queue requests until it does.
## Installation
* `git clone ` this repository
* `cd ember-google-adwords-remarketing`
* `npm install`## Configuration
In `config/environment.js`:
```javascript
module.exports = function(environment) {
let ENV = {
...
googleAdwordsRemarketing: {
enabled: true // required
id: 'AW-123456', // required
conversionLinker: false, // optional
sendPageView: true // optional
},
...
```