NielsCodes / ngx-pixel

An Angular library to simplify event tracking using a Facebook Pixel.
https://www.npmjs.com/package/ngx-pixel
13 stars 15 forks source link

Add mecanism avoid listening to router event #9

Open cyril-colin opened 3 years ago

cyril-colin commented 3 years ago

Hi ! Thank you for this great library. I would like to know if it's possible to disable the feature that automatically record PageView event on router navigation events. In my case this data isn't useful and I don't want to have useless http requests in my project.

Is it possible to add this in the module configuration or in parameters of the initialize function ?

Thanks !

NielsCodes commented 3 years ago

@cyril-colin I've added this feature, but I'm unable to fully test it right now due to issues in Facebook business manager. Once I'm able to confirm it works as anticipated, I'll update the docs and push a new release :)