EU Scholarship

The Ultimate Queen Celebration

Menu
  • Curation Policy
Menu
Facebook Pixel Custom Event Tracking with GTM | Part 2

Facebook Pixel Custom Event Tracking with GTM | Part 2

Posted on October 27, 2019 by Danny Bustamante


38 thoughts on “Facebook Pixel Custom Event Tracking with GTM | Part 2”

  1. Andreas says:
    March 28, 2018 at 12:01 pm

    GREAT VIDEO!! THANKSSS!!! 😀

    Reply
  2. Arnold Magalong says:
    March 28, 2018 at 12:12 pm

    You are awesome 👏!

    Reply
  3. Charlie Sandner says:
    March 28, 2018 at 9:06 pm

    I'm, not too good since I'm no Marketer. At some point, could you make a video on basic Facebook Analytics? From the videos you put on Youtube, I learn a lot. I beleive I've seen them all, and can't wait for a new one. On Google Drive, which our team uses, I just refer them to your videos to learn. Thanks from all of us. Also, Will this idea work to fill the dataLayer–or part of it–, except a PARM in Ad Action, For FB? (WOO)

    function dataLayer_google_gtm( $order_id ) {

    // Lets grab the order
    $order = wc_get_order( $order_id );

    // Products
    $products = $order->get_items();
    ?>
    <script>
    dataLayer.push({
    'ecommerce': {
    'currencyCode': '<?php echo $order->get_order_currency(); ?>',
    'purchase': {
    'actionField':{
    'id': '<?php echo $order->get_order_number(); ?>',
    'affiliation': 'WooCommerce',
    'revenue': <?php echo number_format($order->get_subtotal(), 2, ".", ""); ?>,
    'tax': <?php echo number_format($order->get_total_tax(), 2, ".", ""); ?>,
    'shipping': <?php echo number_format($order->calculate_shipping(), 2, ".", ""); ?>,
    <?php if($order->get_used_coupons()): ?>
    'coupon': '<?php echo implode("-", $order->get_used_coupons()); ?>'
    <?php endif; ?>
    },
    'products': [
    <?php
    foreach($order->get_items() as $key => $item):
    $product = $order->get_product_from_item( $item );
    $variant_name = ($item['variation_id']) ? wc_get_product($item['variation_id']) : '';
    ?>
    {
    'name': '<?php echo $item['name']; ?>',
    'id': '<?php echo $item['product_id']; ?>',
    'price': '<?php echo number_format($order->get_line_subtotal($item), 2, ".", ""); ?>',
    'brand': 'Busters Vision Non-Profit',
    'category': '<?php echo strip_tags($product->get_categories(', ', '', '')); ?>',
    'variant': '<?php echo ($variant_name) ? implode("-", $variant_name->get_variation_attributes()) : ''; ?>',
    'quantity': <?php echo $item['qty']; ?>
    },
    <?php endforeach; ?>
    ]
    }
    }
    });
    </script>

    <?php
    }
    add_action( 'woocommerce_order_status_completed', 'dataLayer_google_gtm', 4 );

    Reply
  4. Khrystyna Grynko says:
    March 29, 2018 at 9:36 am

    Hi Julian, thank you for your videos. You didn't mention the tag sequence part here, that the FB event tag have to be triggered after the standard FB pixel. Is this tag sequence thing is important or not really ?

    Reply
  5. Samith Bajaj says:
    April 4, 2018 at 5:25 pm

    Hi, where and how can I fix parameters of Value and currency for purchase conversion set up. Do you explain it in any video?

    Reply
  6. Demetrios Kydonieus, DC says:
    April 6, 2018 at 3:01 pm

    I have a pdf form that gets downloaded on my website and want to track that action. How do I make a FB tracking conversion tag for this? I tired using the "click link" tag and added the file name as the trigger which is in this hyperlink on my website but cannot tell if it works or loads when a person clicks on this hyperlink that opens the pdf in a new window. The tag manager preview window doesn't work on the new window with the pdf in it that opens to tell me if the tag fired.

    Reply
  7. Fitness Sports says:
    April 9, 2018 at 12:57 pm

    Hey can you make a video or share a link showing how to add search facebook event in gtm !!

    Reply
  8. Tina Playle says:
    April 12, 2018 at 10:57 am

    Hi Julian, great advice. We've set up a tag using the lead code in GTM to track button clicks, we've checked with the Facebook pixel helper and it's firing, however we're having issues with where to view this information on Facebook. It's not coming up in our events (under page views etc).
    Just wondering if we've missed a step here as it doesn't appear to be sending any information back to Facebook?
    Would appreciate any light you can shed on this!
    Thanks!

    Reply
  9. Kenneth Duan says:
    April 14, 2018 at 5:18 pm

    thanks man , want to see more more

    Reply
  10. Amir Nazar says:
    April 15, 2018 at 9:27 am

    This is so helpful. thank you !!

    Reply
  11. Life Style says:
    April 16, 2018 at 10:02 pm

    I think the link at the last bit of the video is not correct. That should be something about conversions. Anyway great work Congrats!

    Reply
  12. jefferson quiton says:
    May 14, 2018 at 6:13 am

    events didnt fire up. The pixel is not paired with any product catalog. i dont know how to do this. do you have tutorial for this ? thanks

    Reply
  13. Arturs Titovs says:
    June 3, 2018 at 6:40 pm

    Hello!
    Thank you for the helpful video.

    I have a question though…

    If I have multiple facebook pixels implemented, but i need to track conversions only for one of them. Does it mean that I need to add fbq('init', 00000000000000); together with fbq('track', 'Page View' or 'AddToCart'); or any other step to make sure, that it tracks conversions only for pixel i need?

    Reply
  14. Erik Hill says:
    June 17, 2018 at 7:12 am

    Thanks boss, great video, love the info and help. Through your tutorial here, and with the foundation I built in your Part 1 video, I setup a 'Generate Lead' event in GTM, with the scheduling page of an optin form (that shows after a user submits, their name, email and phone number on the previous page) as the trigger. Is this how you would track user optins with GTM to send that data to FB?

    Reply
  15. ZeptejSeFilipa says:
    July 4, 2018 at 7:18 pm

    Man, this is the best content about Google Tag manager on the internet. Thank you for your time and efford. Updated version was really needed 🙂

    Reply
  16. Prospero Lapace says:
    July 25, 2018 at 7:44 am

    Thank you, very usuful tips!

    Reply
  17. Michalramzes1 says:
    August 29, 2018 at 8:26 am

    For some reason, when I click on the "Set up" button, nothing happens.. I can't get to the menu to select the tracking events..
    Do you know why ?

    Reply
  18. Lyndi MacRae says:
    September 21, 2018 at 12:29 am

    love you providing this free…fantastic resource. I link back to this with my team for training…

    Reply
  19. Luke Bonner says:
    October 29, 2018 at 12:35 pm

    Loving your content, man! Excellent stuff!

    Reply
  20. Kokostyles says:
    November 4, 2018 at 4:14 am

    I love your video. Awesome!!! A+++++++

    Reply
  21. Koka & Friends says:
    November 5, 2018 at 8:30 pm

    Wish I knew all that you already know 😉 Seems so simple when you do it. I always try, then give up and hire a developer 😀 Thanks for the Great video though, keep up the good work!!

    Reply
  22. Jayjay F says:
    November 7, 2018 at 7:22 am

    Will these custom facebook events be seen also in google analytics?

    Reply
  23. mrki982 says:
    November 22, 2018 at 10:37 pm

    Hi Julian. Thanks for great video. I have done all steps but sill Leads are not populated in facebook custum events. Even I do not see this event in event debugging tab. Same trigger is used for GA event and it fires at it should be – for now. Some advice? Thanks.

    Reply
  24. Nils says:
    November 29, 2018 at 10:09 pm

    Hey Julian, Kompliment echt! Du erklärst das sau geil, strukturiert und einfach! Danke dir

    Grüße

    Reply
  25. Yakobus Alvin says:
    January 3, 2019 at 1:10 pm

    Hi julian, just trying your tutorial to install facebook event into my website but something not perfectly works. I added an initiate checkout event whenever my visitor fill the form. It works well and pixel helper can read that, but not for the tags. Only pageview fired at that page not the initiate checkout. Can you help me for the problem? Thank you so much

    Reply
  26. Scott Johnson says:
    January 16, 2019 at 11:13 am

    Need help!
    I have successfully set up the pixel. But it records conversions regardless of whether someone clicked the ad or not! It appears to be linked to the ad but even when I do a test application it regards this as a successful conversion. Please help!

    Reply
  27. Ravi Nagle says:
    February 27, 2019 at 4:43 am

    Dear, I got now confused with your part 1 with part 2 video. What is the difference between base code(part2) and Facebook Pixel code(part1)???

    Please reply

    Reply
  28. Jen Brannstrom says:
    March 4, 2019 at 7:47 am

    I love this guy

    Reply
  29. mazdarati2 says:
    March 22, 2019 at 1:58 pm

    Thanks dude

    Reply
  30. Patrick Moser says:
    March 29, 2019 at 10:13 pm

    Thanks, very good!

    Reply
  31. Tim Unkown says:
    April 2, 2019 at 8:10 pm

    YOU ARE THE BEST –

    Reply
  32. Charu Dutt Sharma says:
    May 1, 2019 at 8:27 am

    Please make a video related to view content pixel setup to pick dynamic values from website.

    Reply
  33. Derek Switzer says:
    May 8, 2019 at 3:26 pm

    Hi Julian – thanks for the video! For this one, if the FB Standard event is "viewContent" and also being fired on pageview how do you sequence HTML Tags to control the firing order? Or would I just make the viewContent Tag fire on DomReady vs PageView? Thanks!

    Reply
  34. Gavin Fenton says:
    May 9, 2019 at 10:06 am

    Trying to track (custom) button clicks that are not 'add to cart' in Facebook events using GTM. Can't seem to find how to do it – can anyone help / advise on the structure please?

    Reply
  35. Overtop Media - Digital Marketing says:
    May 20, 2019 at 7:03 pm

    Thank you. All your videos are super helpful.

    Reply
  36. Kiran Varri says:
    June 11, 2019 at 3:48 pm

    Well explained… thank you 👍🤩

    Reply
  37. Manuel Ty says:
    September 9, 2019 at 2:45 pm

    Love your videos!!! My tracking is on point since watching your videos!

    Reply
  38. Assetsville says:
    September 27, 2019 at 11:07 am

    This channel is SOOOOO good! Seriously man, your videos are so clear, step by step and to the point! Great job!

    Reply

Leave a Reply Cancel reply

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

Recent Posts

  • Ryan J. Haddad: Falling For Making Believe | Under The Radar 2020
  • Star Wars: The Last Jedi LEGO Summary
  • Elovera pubs ko mother elovera se alag kaise kar ka grow kran- Urdu/Hindi
  • Pub nouveau forfait 2 euros de Free Mobile
  • Undefeated Big Game Burger Challenge w/ Bison, Deer, and Wild Boar!!
  • More Than a Pub – The Gardeners Rest
  • Enjoy a Tasty Lunch at Mackenzie’s Pub Today!
  • Pulando de pub em pub #LTDM Dublin [Vídeo 03]
  • Think! Poverty in Western Pennsylvania Town Hall Meeting
  • 2019 Florence Athletic Hall of Fame Awards Banquet

Recent Comments

  • Mbc23 FR on LES PUBS SNCF : L’ANALYSE de MisterJDay
  • *Lydia * on tarot[塔羅Lab.研究生]2020驚喜是什麼?What are the surprises of 2020??
  • Nkjh補校組長 on tarot[塔羅Lab.研究生]2020驚喜是什麼?What are the surprises of 2020??
  • Cartoon Kids on Jingle pub Junior Noël 07 12 2019
  • Beren on DO’S AND DON’TS IN PUBS (Honest Guide)

Tags

#dance and animation anniversary annonce auto are birthday celebration comedy culture DIY education entertainment event family festival Food for fun funny funny video games how-to humor its jubilee kids like love music news occasion party politics review that the this tutorial vente auto video was you your yt:cc=on
©2019 EU Scholarship | Built using WordPress and Responsive Blogily theme by Superb