Any Google Analytics 4 experts here?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravo
    Confirmed User
    • Jun 2001
    • 5461

    #1

    Tech Any Google Analytics 4 experts here?

    I've started playing around with GA4 - it's pretty cool the amount of info you can pull out of it.

    I've set up one custom event so far (when users hit a certain page), but I'm having a hard time creating a new event for a specific button click.

    My HTML code is as below;

    Code:
    <a href="#" class="reg" onClick="joinpage.style.display = 'block';return false;">free account</a>
    How do I create a custom event for that button click? What "parameter" do I use for that?
    AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated May 2026
  • baodb
    Confirmed User
    • Jan 2021
    • 103

    #2
    If you can gather and process the event data with GTM and then pass the values to GA. You will find more tutorials and guides for GTM and with the native GA 4 support it ends up doing the same as doing it native with GA.

    Comment

    • EddyTheDog
      Just Doing My Own Thing
      • Jan 2011
      • 25433

      #3
      Just started playing with it as well - This video really helped - The bit that references your 'event trigger' question starts at around 6 mins - But I would watch it all especially if you haven't had a lot of experience with tag Manager......

      Comment

      • EddyTheDog
        Just Doing My Own Thing
        • Jan 2011
        • 25433

        #4
        Another really good video - About halfway through he starts talking about custom events...

        Comment

        • Kafka
          Confirmed User
          • Oct 2002
          • 466

          #5
          In your ga.js (google analytics) file make a function like:

          function trackYourClick(){
          ga('send', 'event', 'ClickedLink', 'click')
          }

          Put in your link: onclick="trackYourClick()"
          in your case:

          <a href="#" class="reg" onClick="joinpage.style.display = 'block';trackYourClick();return false;">free account</a>

          Comment

          • ravo
            Confirmed User
            • Jun 2001
            • 5461

            #6
            Originally posted by EddyTheDog
            Another really good video - About halfway through he starts talking about custom events...
            Thank you!

            Originally posted by Kafka
            In your ga.js (google analytics) file make a function like:

            function trackYourClick(){
            ga('send', 'event', 'ClickedLink', 'click')
            }

            Put in your link: onclick="trackYourClick()"
            in your case:

            <a href="#" class="reg" onClick="joinpage.style.display = 'block';trackYourClick();return false;">free account</a>
            GA4 doesn't require any change in coding - it can all be done from the GA4 dashboard. That's the beauty of it. Any changes you make in the dashboard can be propagated across your whole site, or even across domains.
            AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated May 2026

            Comment

            • Klen
              • Aug 2006
              • 32235

              #7
              So, does that mean you can now buy traffic on FPC traffic based on GA data ?

              Comment

              • ravo
                Confirmed User
                • Jun 2001
                • 5461

                #8
                Originally posted by Klen
                So, does that mean you can now buy traffic on FPC traffic based on GA data ?
                Yes, we have been offering this for a while now...

                See https://gfy.com/sell-and-buy-forum/1...ga-counts.html
                AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated May 2026

                Comment

                Working...