ViewContent & AddtoCart not working
-
Hi,
I have integrated Facebook for woocommerce, but notice that while server events are likely going through, the browser one is only going for initiate checkout onwards.
When a user views a product or adds to cart the events from browser are not coming through. I can get these to work if I use other pixel plugins, but I would prefer not to duplicate and have facebooks plugin dedupe based on the event id.In the source code I see the following:
fbq( 'track', 'PageView', {
"source": "woocommerce",
"version": "9.1.1",
"pluginVersion": "3.2.5"
} );
document.addEventListener( 'DOMContentLoaded', function() {
// Insert placeholder for events injected when a product is added to the cart through AJAX.
document.body.insertAdjacentHTML( 'beforeend', '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
}, false );What do I need to add to ensure ContentView and AddtoCart work and send browser data through to meta pixel? Or do I just ignore it and not worry as server transactions will cover this in the backend?
many thanks in advance
BarryThe page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.