The two functions: trackSingle and trackSingleCustom are spins of the existing track and trackCustom functions which allow you to specify the pixel you want to send the event to. This is helpful for when you have multiple Facebook pixels on your site that you want separate event tracking for.
Usage with this library would be simple:
ReactPixel.trackSingle("Purchase", "<PIXEL_A>", {data})ReactPixel.trackSingleCustom("Lead", "<PIXEL_B>", {data})
The two functions:
trackSingle
andtrackSingleCustom
are spins of the existingtrack
andtrackCustom
functions which allow you to specify the pixel you want to send the event to. This is helpful for when you have multiple Facebook pixels on your site that you want separate event tracking for.Usage with this library would be simple:
ReactPixel.trackSingle("Purchase", "<PIXEL_A>", {data})
ReactPixel.trackSingleCustom("Lead", "<PIXEL_B>", {data})
Some more reading directly from Facebook: https://developers.facebook.com/ads/blog/post/2017/11/28/event-tracking-with-multiple-pixels-tracksingle/
@zsajjad Any thoughts?