ng-facebook-pixel

Angular module for Facebook Pixel Tracking.

Usage no npm install needed!

<script type="module">
  import ngFacebookPixel from 'https://cdn.skypack.dev/ng-facebook-pixel';
</script>

README

NgFacebookPixel

This library was builted to simplify Angular integration with Facebook Pixel Tracking system. Generated with Angular CLI version 7.2.0.

Code scaffolding

Run ng generate component component-name --project ng-facebook-pixel to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-facebook-pixel.

Note: Don't forget to add --project ng-facebook-pixel or else it will be added to the default project in your angular.json file.

Build

Run ng build ng-facebook-pixel to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ng-facebook-pixel, go to the dist folder cd dist/ng-facebook-pixel and run npm publish.

Running unit tests

Run ng test ng-facebook-pixel to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.