Facebook Pixel Purchase and Conversion Tracking with GTM | Part 3
Articles Blog

Facebook Pixel Purchase and Conversion Tracking with GTM | Part 3

53 thoughts on “Facebook Pixel Purchase and Conversion Tracking with GTM | Part 3

  1. Hi Julian, why custom conversions on facebook based on content Ids doesnt work when mutliple items are purchased in the same time ? When I set up my custom conversion I tried both options :
    equal content ids …
    contain content ids …
    but neither of those 2 options work for mutliple items purchase, can you explain why ? Thanks

  2. Hi Julian, Thanks for all your great videos, they are very helpful:)
    I have installed Google Tag Manager for WordPress by Thomas Geiger, but I can’t see the this list in my preview and debug mode when I have made a purchase.
    My gtm4wp.orderCompletedEEC starts with
    Have I disabled something in my plugin so it doesn’t show, or hmm done something else wrong? 🙂

  3. Hello,

    I have setup several Google analytics data tracking with Google tag manager but I have a challenge, I don't know how to track this values in Google analytics. How do I check the number of people that clicks or fire my Google tag manager tags in Google analytics?

  4. Hi Julian, thank you for doing excellent videos and sharing all that useful information with us. I have a question linked to the FB pixel: If someone in Germany installs the basic FB pixel on a website, the website owner needs (for legal reasons) to offer the website visitor the possibility to opt out of the FB tracking. Once opted out, the FB pixel should not fire again when the user comes back. Is there a way to do that too in the Tag Manager?

  5. Hi Julian, I followed all the steps you told and everything was working perfectly fine excepts i am unable to get the dynamic value of products in facebook pixel helper. I dont why it is happening. kindly help.

  6. Hey, Julian. Thanks for the wonderful video series! Each video was really insightful. I have a quick question that I'm hoping you can help me with… Is it possible to see if a person who viewed/was shown your ad converted? For example, someone I'm targeting is shown an ad. However, they don't convert at that moment through the ad funnel, instead, they visit the website on their own a week or 2 later and then purchase. Is there a way to see that information? Thanks for the help! You've got a new fan in me.

  7. Hey Julian, what steps are required for the dynamic "transactionTotal" variable. We have installed Google Tag Manager for WordPress and enabled at the Integration "Track enhanced e-commerce". On our Preview GTM the price is shown next to "revenue" and not "transactionTotal". Can we use the variable "revenue" too, to set up the conversion tracking? Please be so kind and help us. Thanks for the awesome content!

  8. Great Video, thank you very much. Cold you give a hint, how to get access to the data layer when using shopify.

  9. Hey Julian, if I have integrated facebook pixel with GTM from facebook business manager's integration, do I need to continue adding custom Tags for specific events like in this video?
    I want to be able to add conversion values, do I need to setup custom tags for those?

  10. I didn’t see that extra code to add to my purchase page. I used to see this a long time ago but when I set my events up the other day there was only 1 main code for the whole site. Did i miss something or did they change it? My website provider doesn’t allow me to alter the purchase page or the payment page either and i still cant get those events to work

  11. What if we are using a non-WooCommerce and/or non WP page, is there an easy way to get transaction information into the GTM DL or something to pass to FB and/or GA? Thanks!

  12. I still experience difficulties with conversion tracking. My Pixel only registers 40% of my purchases, do you have any idea how i can solve this? I am using Shopify..

  13. at the end, you say that "You could create custom conversions here…." , after setting up the purchase pixel and stuff within GTM, why do I have to set up custom conversions in FB aswell? Isn't it tracking right off the bat, as everything is set up in GTM, is it? Thanks in advance!!

  14. Hey, Julian. Thanks for updating all old videos as soon as a better method is available for doing the same thing. I noticed several videos where you have installed "gtm2wp" plugin to have a WooCommerce data layer automatically created for you that you can see in GTM preview/debug mode. I have already installed GTM and various tags following your instructions without using this "gtm2wp" plugin. Now if I decide to install this plugin does it mean I will have to manually remove the GTM code I have already pasted in header.php and loose the already created tags and triggers since this plugin will install GTM automatically again during installation ? Can I use this plugin to only create the WooCommerce data layer but keep my original GTM code/tags/triggers/variables etc?

  15. Following the video used gtm4wp plugin to have my dataLayer created for WooCommerce. Created the same dataLayer variable, tag and trigger you created.
    Result: Purchase event was recorded in preview/debug mode but missing in Pixel helper where only "Page view" event was logged. "Event debugging" doesn`t show it either.
    At "Event Manager" I have an issue reported saying "One or more of your Purchase events is missing a value parameter. This may affect your ability to see return on ad spend calculations".
    My dataLayer variable is "transactionTotal" as on the video. Trigger is also "URL contains "order-received"
    Where the issue might be? gtm4wp configuration or else?

  16. Hi there! I installed the GTM for WordPress plugin like you suggested, but does it matter if you have GTM already installed on the backend of your website and then place your GTM ID code into the plugin — so, essentially, you have GTM installed twice on your website? Is the GTM ID required for the plugin to work properly? I'm really only looking to use the plugin to track the data layer like you demonstrated in the video. In the plugin, for code placement, would I just choose "Off (only add data layer to the page source)" in this case so it doesn't install GTM twice on the website? Thank you!

  17. Hi! I've already installed the conversion tracking with GTM but after a test there's an error shown on the FB Pixel Helper:
    "Purchase WARNINGS:
    We detected event code but the pixel has not activated for this event, so no information was sent to Facebook. This could be due to an error in the code, but could also occur if the pixel fires on a dynamic event such as a button click."

    Could you help with that? Thank you!

  18. Instead of "transactionTotal", what if you have to target one of the child items under "ecommerce" such as "affiliation"? How would you enter this into the Data Layer Variable Name field?

  19. First thank you very much for all your very useful videos 🙂
    I have question. If we only use google Analytics for analyse audience and if we have already set the tracking of conversion value for Google Analytics with GTM. We don't need to set this kind of tracking, right ?

  20. PLEASE PLEASE PLEASE can anyone help its with shopify and facebook pixeL . ive set up shopify pixel and its working installed perfect the facebook ads manager the view content view page initiate pixel is working. the pixel helper says its good. problem.what i need is how to set up purchase pixel and add to cart when manually encode pixel yourself where to copy and paste it to i have no idea im new

  21. Let me tell you this, I got a free subscription on skill share for 2 months. You explain things waaaaaaay better for free. you are great buddy!

  22. So if we have the facebook base code, and we want to put a purchase event code like this one:

    if (document.location.href.search('appspot.com') == -1) {

    fbq('track', 'Purchase', {

    content_name: 'ccispurchasefu',

    value: 49.95,

    currency: 'USD'




    We do not modify any 'tag priority' or 'tag sequencing' options?


  23. Why did u make the purchase event into a custom conversion because the purchase event is already a standard event so it will automatically turn up in the reporting ?

  24. Nothing about tracking the individual products ordered, only the total revenue? That doesn't help for remarketing campaigns.

  25. Great content!! thanks for that! Question. Do you have a video to set up tag that measures the time spent for a visitor o a specific page(s)? Thank u!

  26. Hi julian and thanks for all your lessons))
    I have some issues with missing content ids/view content ids on my facebook catalog.
    I have a client with more rhan 600 products on website.
    How can i configure all ids for those products?
    There is some way to solve this?
    Thank you

  27. Great video! I was wondering if you could clear something up for me. I want to run a conversion optimized campaign and use the standard event – purchase. But my store has various different type of products (cat tshirt vs dog iphone case). Will the facebook pixel be able to segment between these two users groups?

    If so, how do the ads identify ahead of time which segmented audience group to pull data so it can optimize for that specific product (cat tshirt)? I'm putting a link to the product in my advertisement's comment section. Does it determine what data to use based off the link URL placed in the ad comment section and identify it that way or do we manually assign what data to pull from somewhere?

    If not, does that mean it will use all the purchase data from my general website, regardless of product type/category/sku etc.? In this case, would I use a custom conversion to hone in on that one product type? What do you recommend? thanks!

  28. Awesome video! question, why do you have to put the fb pixel code in the google analytics? for you to customize it such as the dynamic pricing?

  29. Hi, can you target the purchase by product type in facebook pixel? like whey and BCAA and able to make a pixel segmented ?? to remarketing to people who bought this product, or excluding those buyers from campaigns for a particular product?

  30. Julian great video! First question. Do you have a Patreon account that we can contribute to? I love your resources and I would love to contribute so you can continue making great videos! Question 2. I am having a similar problem as others where I am not able to pull in the value. I am using the same variable that I use for Google Analytics ecommerce tracking that is working properly, but when I fire this event I am getting the value 'google_tag_manager["GTM-XXXXXXX"].macro(17)' instead of the transactionTotal.

    When I view the event in debug mode, the results I get are:

    '<script type="text/gtmscript"&gt;fbq("track","Purchase",{value:google_tag_manager["GTM-XXXXXXX"].macro(17),currency:"USD"});</script>'

    Any idea why this is happening?

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top