Hi, I've been implementing GA4 with
Hi, I've been implementing GA4 with Zaraz and I had troubles adding Enhanced measurement events (https://support.google.com/analytics/answer/9216061?hl=en)
I tried so hard to find resources online as a guide, but no luck.
Anyone has any resource on this perhaps? If not, it would be amazing if Zaraz team could potentially create guideline on how to add Events that are by default on in GA4 when we are not using Zaraz. I know there can't always be 1:1 parity, but some best ways to implement stuff like file_download & form_start would be amazing. Before posting I saw a bunch of other questions about this in the channel, but nothing concrete outside of; you'd have to create that yourself. Thank you so much for considering!
7 Replies
For example, this would be my trigger for file_download event:
![No description](https://cdn.answeroverflow.com/1262796940404326430/CleanShot_2024-07-16_at_17.43.112x.png)
The question is then (for this example), how can I add parameters to it
![No description](https://cdn.answeroverflow.com/1262797135523614793/CleanShot_2024-07-16_at_17.44.262x.png)
would be great to have some examples of these default events to reference, if not examples for all default events.
Some of that you can get from the event data. Otherwise, you'd need to implement the listening in js on your page.
Thanks Mackenly, but how would I go about getting it from Event data?
do you mean within GA itself?
Also, maybe a better example would be form_start event, like how to set it up so it fires once per session and on user interaction with input fields.
That's why i suggested maybe some docs going over this, but if you have some insight to share now I will gladly hear it 😄
When setting up a tool, you get access to things like the click href, element id, element classes, etc within the trigger values of a field.
Firing things beyond normal methods is something you likely want to accomplish using custom event triggers. However, you could do things as you describe by loading in some HTML Component scripts within Zaraz without modifying your site's code.
When trying to teach someone to ride a bike, it's not quite enough to tell them: "use legs to pedal and hands to steer". That's why I was asking for some examples, but thanks anyway.