Reply 155891 to: FB Pixel variable

Avatar: Eva
Eva Kemp
Support staff
February 27, 2017 at 15:42

Hello,

1. Could you please resend the screenshot?
2. You need to add in the file woocommerce/archive-product.php:
http://prntscr.com/edwpz2

<?php if ( is_search() ) : ?>
	<script>
		fbq(‘track’, ‘Search’, {
		search_string: ‘your search string’
		});
	</script>
<?php endif; ?>

3. It should look like this http://prntscr.com/edx03i

<script>
		fbq('track', 'AddToCart', {
		value: <?php echo $product->get_price(); ?>,
		currency: '<?php echo get_option('woocommerce currency'); ?>'
		});
</script>

4. You need read the documentation.

Regards,
Eva Kemp.

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.