Facebook Ads API conversion pixel custom variables reporting -
i trying access custom parameters i've set within facebook pixel purchase event. developer documentation doesn't address question i'm looking help. has been successful @ accessing these custom(dynamic) variables through marketing api can report on purchase amount, time/date, product purchased, purchase(order) id?
thanks, matthew
<!-- 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','//connect.facebook.net/en_us/fbevents.js'); fbq('init', 'xxxxxxxxxxxxxxxx'); fbq('track', 'pageview'); fbq('track', 'purchase', { content_name: {{prodname}}, content_category: {{prodcat}}, content_ids: {{prodid}}, content_type: 'product', order_id: {{orderid}}, value: {{orderrev}}, currency: 'usd' }); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=xxxxxxxxxxxxxxxx&ev=pageview&noscript=1" /></noscript> <!-- end facebook pixel code -->
Comments
Post a Comment