Jump to content
Sign in to follow this  
snake

facebook and Google ads tracking

Recommended Posts

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 ?

FACEBOOK
I 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=0
https://billing.foodbooking.uk/cart.php?a=add&pid=25

As 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.

 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

 

 

Share this post


Link to post
Share on other sites
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* 🙂

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated