ember-cli-fbq

An Ember CLI Addon to add support for Facebook Pixel

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ember-cli-fbq
412.0.06 years ago7 years agoMinified + gzip package size for ember-cli-fbq in KB

Readme

Ember-cli-fbq Ember Observer Score
This ember-cli addon injects facebook pixel into index.html.

Installation

ember install ember-cli-fbq

Configuration

This plugin uses the ember-cli project's configuration as defined in config/environment.js.
Add your heap projectId to config/environment.js and you're good to go.
// environment.js

    ENV.fbq = {
        enabled: true,
        id: 'xxxxxxxxxxxxxxx'
    }

Disabling per environment

You can disable injecting heap into different environments by setting the development param to true:
// environment.js

if (environment === 'test') {
  ENV.fbq = {
    enabled: false
  }
}

Disclaimer

This is completely unofficial and is not related to Facebook in any way.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About Tailor Brands

Check us out!