Today, I decided to add Google Analytics to my portfolio which was built in Next.js At first, I thought that I could achieve this with react-ga, but after trying to add my GA code I realized that it doesn't support Google Analytics 4, only Universal ...

Markdown supported Β· ββ΅ to post
Thanks!
It looks like you are using Universal Analytics. In that case, I suggest you use react-ga library to manage your Google Analytics.
Hope this helps :)
Thank you for this. One thing - the custom events are not showing up on GA. This seems like the old event signature.
Matheus Paiva
Hello, thank you for the guidance!
I don't know a lot about analytics and I am having a hard time trying to identify which ID is the right ID to use with GA4.
My company uses Google Analytics and the ID has this shape: UA-xxxxxxxx-x, but I think this is not the ID I should be using with this estrategy, right?
Is it the google tag manager ID? Or something else? Thank you!