Facebook Conversion Tracking Pixel in Ajax App

Running into facebook tracking issue. When a user creates an account, I want to disable the FB tracking pixel.

When the landing page is broadcast, only 1/2 of the new users are tracked. Any ideas on where the problem is going?

pp.onNewUser = function(v,u) { // Set Facebook Tracking var fb_param = {}; fb_param.pixel_id = '43211230943123'; fb_param.value = '0.00'; fb_param.currency = 'USD'; var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref); try { console.log('Account Created...'); } catch(ex) {} pp.aCN('step1a', 'hidden'); pp.rCN('step2b', 'hidden'); }; 
+6
source share
1 answer

First, I recommend upgrading to a new version of the code. There is a guide here:

Facebook: transition to a new pixel conversion

Or you can use the drop-down list in adsmanager to create it. There is also information about triggering several events, for example: a website’s user audience and a conversion event.

-1
source

Source: https://habr.com/ru/post/952694/


All Articles