Button Click Tracking with Google Tag Manager - 3 methods

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 100

  • @pikeconsultinggroupinc.5287
    @pikeconsultinggroupinc.5287 3 ปีที่แล้ว +10

    Once again, the most drill down and complete explanation of the use of tags, triggers and variables on youtube, along with the testing protocol to show correct application. Julius is indeed a GA master.

  • @jennygao7542
    @jennygao7542 2 ปีที่แล้ว +1

    Nobody covered this button issue better than you! Can’t thank u enough

  • @claudioduartesilva
    @claudioduartesilva 2 ปีที่แล้ว

    Great Video, that third method was just what I needed!

  • @manishjoshi1624
    @manishjoshi1624 2 ปีที่แล้ว

    YOU ARE THE GOD OF ANALYTICS

  • @WeronikaSalach
    @WeronikaSalach ปีที่แล้ว

    Thank you for this tutorial! I'm wondering if I'm doing the steps right. My scenario is slightly different - I have a gallery of freebies available as downloads. Each download is hidden behind an image, so when someone wants to download a freebie, they have to click on the image. I was wondering if it is enough that I follow your first method of setting up link clicks. I need to re-watch this video but I'd very much appreciate it if you could let me know if I'm going with the right direction with it. Thank you! :)

  • @ariskaparamitha
    @ariskaparamitha ปีที่แล้ว

    Dear Julius, I have a question, I track one button with event parameters link_text and the trigger is click just links and I use click classes. On the debug view, I saw two click event pop-ups, one the normal click event and the event I track (already named it), why did this happen? those two click event have the same ga_session_id, but the event I track only showing link text, while the click event showing link_classes..

  • @besttravelservices2289
    @besttravelservices2289 2 ปีที่แล้ว +1

    Unique Video, its worked🥰

  • @henrique7860
    @henrique7860 2 ปีที่แล้ว +1

    Hi! I need to track clicks and impressions from 15 banners on 3 different websites. They are simple banners made on random banner plugin on WordPress...Should I do the same thing as you do on this? Can you help me please? thank you

  • @derekcummings4780
    @derekcummings4780 2 ปีที่แล้ว

    cool, method 1 worked for me, but I didn't see the button click in GA4 debug...it's just stuck on waiting for debug events

  • @TemitopeOmoniyi
    @TemitopeOmoniyi 16 วันที่ผ่านมา

    Thank you, once again

  • @rocmarkz6742
    @rocmarkz6742 2 ปีที่แล้ว

    thank you so much for making this :)

  • @billbainivalu3487
    @billbainivalu3487 3 ปีที่แล้ว

    Glad I found your channel ...

  • @yeinnarayana2644
    @yeinnarayana2644 3 ปีที่แล้ว

    in 3rd setup, why not just modify the span styling with some css so it acts completely to cover whole button instead create the advance configs ya? great explanation by the way

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว +1

      What if you don't have access to the code to change the class and a developer cannot help because he/she has other priorities?

  • @sultanulmoeminin7155
    @sultanulmoeminin7155 ปีที่แล้ว

    Thank you so much.

  • @onlinemarketingzone6794
    @onlinemarketingzone6794 2 ปีที่แล้ว

    Hey bro,! Just a hint. You´re too fast. Are you doing this for yourself or for us? I like your straight-to-the-point mood, but you don't have to rush. Keep it up with great content🙂

  • @nanajaeminbunny374
    @nanajaeminbunny374 3 ปีที่แล้ว

    Hi! Thanks for the very clear video explanation! I would like to ask do you think it's possible to track an event but different results in desktop and mobile in GTM? For example -> in desktop when you click it will show a new page, however when you click it on mobile it will direct you to play store. Thanks in advanced!

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว

      Hi, you could just track click anyway. And then in Google Analytics, you can see what kind of device was used to better understand the context

  • @escapetothemoon9069
    @escapetothemoon9069 3 ปีที่แล้ว

    Thank you so much!

  • @ampliadigitalagency
    @ampliadigitalagency ปีที่แล้ว

    Thanks

  • @tomtao6098
    @tomtao6098 3 ปีที่แล้ว

    Can we just request data layer event to developer and let the developer worry about this? My understanding is all three approaches you introduced here are less reliable than the data layer approach

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว +4

      Yes you can. But that way, you will be much more dependent on the IT. There are more fragile cases where developer's input is a must.

  • @dakotadaniels8598
    @dakotadaniels8598 2 ปีที่แล้ว

    a little feedback, SLOW DOWN

    • @AnalyticsMania
      @AnalyticsMania  2 ปีที่แล้ว +1

      Easier said than done. That is how I speak. It is difficult for naturally fast speaking people control their speed

    • @ika6884
      @ika6884 2 ปีที่แล้ว +1

      No, don't slow down. Perfect pace. This person can slow the speed of the video if they are slow.

  • @RyanMendenhallSEO
    @RyanMendenhallSEO 3 ปีที่แล้ว +3

    Loved how you showed that error that can happen quite easily when setting up the third way and how to solve it using a CSS Selector. Okay, I have a few questions:
    1. How do these methods compare w/ using GTM's built in Form Submission trigger? One more reliable than the other?
    2. For something like an opt-in form what about just tracking in a destination goal in GA? Would that be more reliable than one of these button click methods?
    3. Is it possible to get inflated numbers when tracking button clicks if people click the button more than once before they actually get something added to their cart, say if they're impatient that the page is loading slowly?
    Thanks again for your videos Julian!

  • @yipgm1379
    @yipgm1379 3 ปีที่แล้ว +2

    Oh my god! You provided the solutions I found so long time ! Like your video so much ! Really solved my GTM problems! Thank you so much

  • @stantan6130
    @stantan6130 3 ปีที่แล้ว +2

    The third technique solved my issue. Thank you! Does the * select all child elements including multiple child levels deep?

  • @yipgm1379
    @yipgm1379 3 ปีที่แล้ว +1

    I really found the solutions for long long time. Cannot find the solutions until discovered your video! Great GTM expert

  • @akhilrawat3251
    @akhilrawat3251 2 ปีที่แล้ว

    Thanu so much from india 🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳

  • @amberhan4982
    @amberhan4982 2 ปีที่แล้ว

    Can I use "Click Text" to fire the trigger? Cause there is no "Click ID" for my add to cart button and the "Click Classes" is soooo long like "product-form__submit button button--full-width button--primary", I am note sure if it's ok with such long paremeters

  • @rafaelbp279
    @rafaelbp279 ปีที่แล้ว

    It's possible to track variable attributes? I have 10 different images with different links. When I create track some clicks, I can't leave the field blank, since it's an variable attribute. any tips?

  • @AndreMR
    @AndreMR ปีที่แล้ว

    this have to be revisited by google. we have to create a lot of names and steps for 1 single event detected. for a custom click: trigger name, tag name, event name, parameter name...

  • @DOUBLEECaDA
    @DOUBLEECaDA 3 ปีที่แล้ว +1

    Julius videos are real value! Cheers

  • @RaviSingh-nv9bf
    @RaviSingh-nv9bf 2 ปีที่แล้ว +1

    Great video with very nice step by step explanation.

  • @KevserKurt-os8ni
    @KevserKurt-os8ni 6 หลายเดือนก่อน

    can we use Click - All Elements for Click - Just Links

  • @sejammark4553
    @sejammark4553 2 ปีที่แล้ว

    I think, you had created video after watching fast and furious.

  • @gabz1989a
    @gabz1989a 9 หลายเดือนก่อน

    what if I have the link but it says tags not fired? and I have one for google tag

  • @zobecookingcorner4391
    @zobecookingcorner4391 ปีที่แล้ว

    Love from Bangladesh boss!

  • @Tripwithadi
    @Tripwithadi 2 ปีที่แล้ว

    Why would tag fired, but status is failed..?

  • @asevero
    @asevero 3 ปีที่แล้ว +1

    Awesome! Your channel is the best! Thanks a lot.

  • @aminkh6872
    @aminkh6872 ปีที่แล้ว

    thank you it was really helpful

  • @crazydevila
    @crazydevila 3 ปีที่แล้ว +1

    You are the best GA expert here. Thank you for all the videos and keep going!

  • @thomaskoch3788
    @thomaskoch3788 2 ปีที่แล้ว

    very useful tutorial*

  • @kawsarhossain7932
    @kawsarhossain7932 ปีที่แล้ว

    Excellent!! Keep it up.

  • @mayasadat4792
    @mayasadat4792 ปีที่แล้ว +1

    Hello, Thank you for this incredibly informative video. I was wondering, why didn't you add "btn" under click classes and just added "hero_btn"?

    • @rolandking507
      @rolandking507 ปีที่แล้ว

      The btn class is a global style for all buttons -- likely used by the developers/system to create uniform button designs (height, border, hover state, etc.) In his example, he needed to target a class that is specific to that particular button on the website. Otherwise, the tag will fire on a very generic trigger, where many of his pages may have a button in the "hero" area of the page.
      As a best practice, you should always try to assign a custom class name for all redundant elements you wish to track. If you cannot, then you have to set stricter requirements in the trigger like "path url contains /about-me" AND "click classes contains hero__btn". This would allow you to fire the tag on the about-me page ONLY to specifically track the hero button on that page.

  • @nikssluk
    @nikssluk 2 ปีที่แล้ว

    ok, what if my tag is not firing?

  • @JohansSamsing
    @JohansSamsing ปีที่แล้ว

    Very helpful thx!

  • @sampathvidanapathirana7698
    @sampathvidanapathirana7698 ปีที่แล้ว

    Thank you soooo much!

  • @mdtanbir3723
    @mdtanbir3723 ปีที่แล้ว

    You are mentor💙

  • @lazearteepublicidadedobras6594
    @lazearteepublicidadedobras6594 11 หลายเดือนก่อน

    Thannnnks a lot

  • @MartinBenesCreative
    @MartinBenesCreative 3 ปีที่แล้ว

    Thanks for your awesome tutorial. I can see the clicks in TagManager but they are not showing in the DebugView in Analitycs. I can see scrolls, etc but not clicks...any hint please? Thanks.

  • @yishay_yosef
    @yishay_yosef 10 หลายเดือนก่อน

    Thanks but how you change the class name? I tried with CSS CLASS but it doesn't work ! I have multiple buttons with the same class name but I want to detect click from a specific button

    • @AnalyticsMania
      @AnalyticsMania  10 หลายเดือนก่อน

      Class is not something you should change in GTM. It's developer's responsibility to do that in the code. But I doubt he/she will be changing classes just because you need it in GTM. In that case, it sounds like you need to go advanced and learn CSS selectors to work with multiple elements that have similar classes.

  • @NishaThakkar-x3q
    @NishaThakkar-x3q ปีที่แล้ว

    My code block doesn't have an id value. It only has class value but has the exact text and background click situation, as shown in the video. It's a toggle button. How can I use matches_ccs_selector for a class?

    • @AnalyticsMania
      @AnalyticsMania  ปีที่แล้ว

      .class
      But in general, you need to learn CSS selectors to be able to use it properly

  • @sincere1115
    @sincere1115 2 ปีที่แล้ว

    謝謝!

  • @calmingmusicstation6968
    @calmingmusicstation6968 2 ปีที่แล้ว +1

    You are a great mentor... !!! Thanks for your valuable contents giving us continuously without paying a single dime.

  • @itskills1047
    @itskills1047 ปีที่แล้ว

    in google analytics where i can store click counts

    • @AnalyticsMania
      @AnalyticsMania  ปีที่แล้ว

      If you are tracking click events, the counts are already stored in GA

  • @DanielleGuido-p1r
    @DanielleGuido-p1r 6 หลายเดือนก่อน

    Thank you so much for your video. Just helped me troubleshoot and correct a trigger that was not firing. The clear explanation and step-by-step walk through is much appreciated!

  • @estebancoria2462
    @estebancoria2462 3 ปีที่แล้ว

    Thanks. Other way to track children inside Button, is put css property "pointer-events: none" to child, so the unique event fire is button click, no span click. Cheers

  • @hectorcampbell8843
    @hectorcampbell8843 3 ปีที่แล้ว

    Hello, do you know how to create audiences based on "session duration" like in the old UA audiences, but in GA4? I cannot figure out how to so I'm still using UA to create my session duration audiences

  • @sl97
    @sl97 3 ปีที่แล้ว

    very good explanation, especially the third way of tracking is important to know.

  • @learngrow9977
    @learngrow9977 2 ปีที่แล้ว

    Thanks for sharing this informative tutorial. it will help me a lot in my work.👍

  • @eduardozaccaro2519
    @eduardozaccaro2519 2 ปีที่แล้ว

    Awesome video! The third option helped me a lot.
    Thank you very much.

  • @rushiljain8574
    @rushiljain8574 2 ปีที่แล้ว

    Wild card css selector was a game changer for me! Thanks so much 👍

  • @codecontent9717
    @codecontent9717 2 ปีที่แล้ว

    Your knowledge 7 understanding is unmatched. Amazing, thankx

  • @abdqz5370
    @abdqz5370 7 หลายเดือนก่อน

    ok the first method and i havent click id i only have click url how can i resolve that

    • @AnalyticsMania
      @AnalyticsMania  7 หลายเดือนก่อน

      Check the other methods

    • @abdqz5370
      @abdqz5370 7 หลายเดือนก่อน

      @@AnalyticsMania I'm really glad for your replay
      I will check the other methods and give the feedback
      I apply for the fb community, hope to be part of

  • @marcosansalone
    @marcosansalone 11 หลายเดือนก่อน

    Is it possible a method without GTM ?

    • @AnalyticsMania
      @AnalyticsMania  11 หลายเดือนก่อน

      Ask a developer to track the buttons and send send the events with gtag to googlr analytics 4

    • @marcosansalone
      @marcosansalone 11 หลายเดือนก่อน

      @@AnalyticsMania "send the events with gtag" you are suggesting Google Tag Manager where I would like to avoid that.

  • @sergiimisiak2388
    @sergiimisiak2388 2 ปีที่แล้ว

    Your explanations are really helpful! Thanks a lot!

  • @ryanyusuf3393
    @ryanyusuf3393 3 ปีที่แล้ว

    You're awesome brother.
    Thank you! ❤️

  • @seniorseoIR
    @seniorseoIR 3 ปีที่แล้ว

    Greattttt

  • @sushiresource
    @sushiresource 3 ปีที่แล้ว

    For method #1 how do you see the parameters for call_to_action_click event from beginning of time? In GA4 I can see it in Engagement > Events but it only shows event parameters in last 30 minutes.

  • @anastasiyashevchenko3535
    @anastasiyashevchenko3535 3 ปีที่แล้ว

    Hi Julius, thank you for the video, it is really helpful, however, speaking about the 3rd method, if the main element doesn't have an "id", but has a "class" (similar to the "class" that goes after "id" in your video), will it work if I use "class" instead of "id" in the trigger? Please advise, my main element looks like this: SIGN UP

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว

      Classes are more fragile than IDs, they are more prone to cause false positives or break. Maybe in your case they will work ok. But in general, I would recommend learning more about the CSS selectors. I have a module about them where I teach fundamentals specifically tailored to GTM www.analyticsmania.com/courses/intermediate-google-tag-manager-course/

  • @nehauk9314
    @nehauk9314 3 ปีที่แล้ว

    my button is contain with link but in variables it has no click classes.how i can crrst trigger for that

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว

      you need to have the Just Links trigger configured in your container.

  • @praveenchandrasekaran7064
    @praveenchandrasekaran7064 3 ปีที่แล้ว

    Hi,
    Nice video how to track the add to cart button with item name, item value

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว +1

      Ask a developer to push that data to the data layer in a properly formatted way, then configure tags, triggers and variables to send that data to GA. Not a simple task. Everything is explained in great detail here www.analyticsmania.com/courses/intermediate-google-tag-manager-course/

  • @asevero
    @asevero 3 ปีที่แล้ว

    I do not know how to code. The website I am working on there is no ID or Class for the button, just URL. Is that a good idea to track this URL? Its a WhatsApp API url.

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว +1

      If that URL ks unique enough and you don't have any other whatsapp urls on a site, you can track by url

    • @asevero
      @asevero 3 ปีที่แล้ว

      @@AnalyticsMania thanks! your channel is helping me a lot.

  • @yashsinojia6170
    @yashsinojia6170 2 ปีที่แล้ว

    Hi Julius,
    I was wondering if it's possible to track the price and other details of the product as tag parameters when someone clicks the 'add to cart' button?

    • @AnalyticsMania
      @AnalyticsMania  2 ปีที่แล้ว +2

      Yes, but it requires javascript and DOM knowledge

    • @yashsinojia6170
      @yashsinojia6170 2 ปีที่แล้ว

      @@AnalyticsMania Thanks for your immediate reply. I'd also appreciate if you can point me where can I get that information from?

  • @shreekantshrivastava9764
    @shreekantshrivastava9764 3 ปีที่แล้ว

    Awesome information. but I want to track 3 buttons with the same class name & id then how to track these buttons? Any hint Please. Thanks

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว

      Then use that id and/or class?

    • @shreekantshrivastava9764
      @shreekantshrivastava9764 3 ปีที่แล้ว

      @@AnalyticsMania if we use the same id or same class name for three buttons. then how we track? ... if we use id or class, we can't identify which button was clicked by the user.

    • @AnalyticsMania
      @AnalyticsMania  3 ปีที่แล้ว

      @@shreekantshrivastava9764 Either learn how to work with CSS selectors, or ask a developer to add additional parameter to each button (e.g. button name) and then use auto-event variable to access that information. Both of these options are covered here www.analyticsmania.com/courses/intermediate-google-tag-manager-course/

    • @shreekantshrivastava9764
      @shreekantshrivastava9764 3 ปีที่แล้ว

      @@AnalyticsMania Now I got your point. Thank you very much.