Facebook Conversions with Pixel
-
We are using the CTX Feed Facebook Pixel settings with our Woocommerce implementation. So the pixel javascript calls are being injected via the plugin, not through my own code.
I have noticed that there is an issue when firing the event tracking on the Product page (as well as other pages which use the Product Title) when products have a single quote in them. This causes the method call to fail, and the conversion data is not sent.
Steps to repro:
I browsed to the product page and opened dev tools to view source. I found the script block which executes the FB code for pixel. Notice the content_name value in an fbq() call.
fbq('init', '523389661344269'); fbq('track', 'PageView'); fbq('track', 'ViewContent', { content_name: ''On-The-Run' Collection', content_id: 37590, content_type: 'product', value: 19.99, currency: 'AUD' });
Is this an issue within the plugin? If so, can you escape single quotes in Product titles?
The page I need help with: [log in to see the link]
- The topic ‘Facebook Conversions with Pixel’ is closed to new replies.