-
How can I track the user's current page in React using GA?
I see you’ve set up a process to send the page title (URL) to GA using react-ga4, however, you’re observing that all the page titles on the GA side are showing as React App. You’re hoping to figure out how to properly get the page using GA4 and GTM in React, is that correct?
Based on the code you’ve shared, you’re obtaining the page with hitType and sending the current URL with page when sending with send. It sounded like a solid plan, but the actual page title being sent is coming from the title part of index.html instead. Any ideas why this is happening?
You’ve also shared the plugins you have installed. Do you think these might be affecting the process in any way?
Log in to reply.