facebook-tag

Facebook conversion event callback

☆樱花仙子☆ 提交于 2019-12-06 16:39:06
问题 I cant find in the documentation if there is any callback functionality in the conversion tracking (https://developers.facebook.com/docs/ads-for-websites/tag-api) In order to track an event you just need to call: window._fbq = window._fbq || []; window._fbq.push(['track', 'FBCONVERSIONCODE', {'value':'0.00','currency':'USD'}]); That is very similar to google analytics conversion code, only though they allow you to call a function when the ajax call finish: ga('send', 'pageview', { 'page': '

Facebook conversion event callback

泪湿孤枕 提交于 2019-12-04 22:18:01
I cant find in the documentation if there is any callback functionality in the conversion tracking ( https://developers.facebook.com/docs/ads-for-websites/tag-api ) In order to track an event you just need to call: window._fbq = window._fbq || []; window._fbq.push(['track', 'FBCONVERSIONCODE', {'value':'0.00','currency':'USD'}]); That is very similar to google analytics conversion code, only though they allow you to call a function when the ajax call finish: ga('send', 'pageview', { 'page': '/my-new-page', 'hitCallback': function() { alert('analytics.js done sending data'); } }); Is there a