Facebook ads purchase event price value

by sean83
0 replies
I'm using the Wordpress conversion Facebook pixel plugin to track purchases on my client's website; the product prices vary so for the moment I have entered the Facebook pixel with purchase event with a 0.00 value.

Code:
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
 fbq('init', '###########'); 
fbq('track', 'PageView');
fbq('track', 'Purchase', {value: '0.00', currency:'AUD'});

</script>
<noscript>
 <img height="1" width="1" 
src="https://www.facebook.com/tr?id=############&ev=PageView
&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
Is there a way of altering the code of the purchase value so it can dynamically pull different product purchase values?
#ads #event #facebook #price #purchase

Trending Topics