GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Any Google Analytics 4 experts here? (https://gfy.com/showthread.php?t=1344535)

ravo 04-30-2021 11:51 AM

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?

baodb 04-30-2021 02:57 PM

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.

EddyTheDog 04-30-2021 08:37 PM

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


EddyTheDog 04-30-2021 11:40 PM

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


Kafka 05-01-2021 01:25 AM

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>

ravo 05-01-2021 05:35 AM

Quote:

Originally Posted by EddyTheDog (Post 22854269)
Another really good video - About halfway through he starts talking about custom events...

Thank you!

Quote:

Originally Posted by Kafka (Post 22854276)
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.

Klen 05-01-2021 09:07 AM

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

ravo 05-01-2021 09:25 AM

Quote:

Originally Posted by Klen (Post 22854385)
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


All times are GMT -7. The time now is 04:31 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123