Facebook Pixel

Is it possible to use Facebook Pixel in Ionic?


Did you find a solution?

Not exact … :confused:
We decided to try it, but i don’t have any info that it’s works properly.
PR agency of my customer ask me to add Pixels.

So just putted it into index.html and implemented some track events on some pages, ex.

window.fbq('track', 'Search', params);

but they mention some issue with Pixel, i don’t know exact, don’t have any contact with them.
After that they ask me to implement facebook events.

About the implementation of the pixel, according the following post on Stackoverflow, it might actually just not be possible

I think so you can use …but recently i’m using Facebook for advertisement its going high my website site url is http://www.prepglobe.com/jitendra-agrawal-gmat-trainer-delhi/ when i try to made a comapgin still now get so much helpfu Facebook …

For the record and about Facebook Pixel, it looks like the last iOS SDK 4.34.0 introduce something for hybrid apps

I opened a feature request in the facebook4 plugin https://github.com/jeduan/cordova-plugin-facebook4/issues/678

I can’t build something about it but if someone is interested and would like to build a feature, go for it

has anyone added the Facebook Pixel script to a Ionic4 app?

<!-- Facebook Pixel Code -->
 fbq('init', 'xxxx'); 
fbq('track', 'PageView');
 <img height="1" width="1" 
<!-- End Facebook Pixel Code -->

If yes, where did you put it to make it work?

Thank you very much


Did you find out how to do it?

I put it in the index.html page.
But after some month I removed it because it was not used.


You were not using it or it was not working?

Our customer asked us to insert the code, but since they didn’t use it I removed the code.
I don’t know if it was working, sorry.

I think yes, but it was just not useful.


Mail priva di virus. www.avg.com

Thanks anyways, bro.