This ember-cli addon injects facebook pixel into index.html.
ember install ember-cli-fbq
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.
Starting from version 3.0.0 we now support multiple pixel ids:
// environment.js
ENV.fbq = {
enabled: true,
ids: ['xxxxxxxxxxxxxxx', 'yyyyyyyyyyyyyyy']
}
Before version 3.0.0:
// environment.js
ENV.fbq = {
enabled: true,
id: 'xxxxxxxxxxxxxxx'
}
You can disable injecting heap into different environments by setting the development param to true:
// environment.js
if (environment === 'test') {
ENV.fbq = {
enabled: false
}
}
This is completely unofficial and is not related to Facebook in any way.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request