How does the minimal GA4 work?
-
Hi!
I used to have this code that tracked the events:
var myEvent = $(this).data(“my”);
ma.trackEvent(myEvent, ‘ClickOut’);
And it worked good it sent the event to ga4 with my the correct parameter. Now i can’t gte the new way of doing it to work. I tried this:
track({ type: ‘ClickOut’, event: {‘event_category’: myEvent} });
it does track the event but it won’t send the parameters. Any ideas how to fix this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How does the minimal GA4 work?’ is closed to new replies.