-
'Sending page view location, referrer and user agent data to GA4 with measurement protocol'
I’m having a bit of trouble migrating my code from Universal Analytics to GA4. I was previously able to send data like the URL of the visited page, user agent, referral URL, and user IP using the measurement protocol. This allowed me to see details like page views per user, sessions per user, user location, device info, and the URL of the viewed page, including the referral URL on Google Analytics. Now, I’ve been following this particular guide (link provided), but I can only send an event_name and I’m not able to send the rest of the data. Can anyone guide me on how to include all the desired data while migrating to GA4?
Log in to reply.