Hi there
I could install the Facebook Pixel easily using a third party App (PixelMySite), but I want to track specific standard events.
In this particular case, I want to track if someone contacts. On my site, this happens either if someone presses the WhatsApp Logo in the header or in the Section Contact or if someone submits the contact form suing ContactForm 7.
The WhatsApp logo is an image item with a link.
This is the page concerned: carforest.de
According to Facebook instructions here: https://developers.facebook.com/docs/facebook-pixel/implementation/conversion-tracking
I need to add this scribt in the page <script> fbq('track', 'Purchase', {currency: "USD", value: 30.00}); </script>
I believe that I can do in the child theme, but I also need to add this scriped
<button id="addToCartButton">Purchase</button>
<script type="text/javascript">
$('#$addToCartButton').click(function() {
fbq('track', 'Purchase', {currency: "USD", value: 30.00});
});
</script>
This comes with the bottun. But in my case it is a image that has a link and a contact form 7.
How can I install this pixel event ?
Best regards
Josef