How to I get to fire the FB Pixel on a button click on my website?
IE: Someone clicks the Add To Cart Button?
I found this code snippet here:
import wixWindow from 'wix-window';
While this code sends an event to Facebook pixel - it is not tied to something on my website.
Becaus of that every click wheather it is the click on the Add To Cart Button or simply a click in the menu or whatever would fire this code.
How do I set the code to fire only at a defiened event on my webside?
I.E: A click on the Add To Cart Button.
Hope someone can help.
Thank you in advance!