2.0.0 • Published 6 years ago

ember-google-adwords-remarketing v2.0.0

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

ember-google-adwords-remarketing

Really simple add on for integrating Adwords Remarketing 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.

Example:

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 <repository-url> this repository
  • cd ember-google-adwords-remarketing
  • npm install

Configuration

In config/environment.js:

module.exports = function(environment) {
  let ENV = {
    ...
    googleAdwordsRemarketing: {
      enabled: true // required
      id: 'AW-123456', // required
      conversionLinker: false, // optional
      sendPageView: true // optional
    },
   ... 
2.0.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago