snake Posted April 7, 2021 Share Posted April 7, 2021 I am running facebook and google ads, and I need to be able to track links and purchases from those ads. I have been told that cart.php?a=complete is the url users hot when they have completed a purchase, so this is what I am tracking. Google analytics system is tracking page view, add to cart and initiate checkout but not purchase I have put through test purchase, but it is not being picked up. can anyone enlighten me what I am doing wrong? am I tracking the right URL ? FACEBOOKI am told the following:- Quote that These pages do not have the FB pixel coded for add to cart, and so FB won’t see them as adds to cart. They need to have the additional code on them.https://billing.foodbooking.uk/cart.php?a=confproduct&i=0https://billing.foodbooking.uk/cart.php?a=add&pid=25As there is no purchase pixel in FB Events, I am assuming that the purchase success page also isn’t coded specifically for the purchase event. but not sure what to do here. I am using an addin to insert my facebook pixel on every page, and I have checked the page source to confirm it is being added. But I don;t know how I can change the code on specific pages as above. 0 Quote Link to comment Share on other sites More sharing options...
snake Posted April 12, 2021 Author Share Posted April 12, 2021 anyone? I have found the WHMCS docs RE adding tracking code to the complete.tpl order form template. However this would result in my having duplicate facebook pixel code, as I would have the regular base code on all pages and them the order completion code on this page. If you look here https://www.facebook.com/business/help/402791146561655?id=1205376682832142 you can see what I need to do 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 12, 2021 Share Posted April 12, 2021 On 07/04/2021 at 17:45, snake said: I am using an addin to insert my facebook pixel on every page, and I have checked the page source to confirm it is being added. which one? the implication of that Facebook page is that you just need an if statement to add a certain value to the returned JS variable if the current page is X. 0 Quote Link to comment Share on other sites More sharing options...
snake Posted April 12, 2021 Author Share Posted April 12, 2021 this one https://github.com/Sinhcoms-LLP/Whmcs-Facebook-Pixel-addon having looked at the code, it does seem as though it is adding the additional tracking code on cart and checkout pages. 0 Quote Link to comment Share on other sites More sharing options...
snake Posted April 12, 2021 Author Share Posted April 12, 2021 ok it seems it is working lol, none of my testing was showing up in the events manager because of my ad blocked browser plugin, which was blocking the facebook pixel. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 13, 2021 Share Posted April 13, 2021 9 hours ago, snake said: ok it seems it is working lol, none of my testing was showing up in the events manager because of my ad blocked browser plugin, which was blocking the facebook pixel. *doh* 🙂 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.