Referrer or previous url
Unanswered
ludawkriss posted this in #help-forum
Hi there. Im helping out my GA4 team to set the correct referrer and pagetrackviews in > Next 14. When using the back button in the browser i get null as referrer or stale url that is not correct as the previous url.
Is there a way to track the back button? Im using a "use client" for the component so the window object is available.
I was also thinking about a custom header set in middleware but Im unsure of how to implement it.
Thanks ahead, much appreciated
Is there a way to track the back button? Im using a "use client" for the component so the window object is available.
I was also thinking about a custom header set in middleware but Im unsure of how to implement it.
Thanks ahead, much appreciated