Fixing Direct Traffic Inflation in GA4 for Single Page Applications
The Problem If you’re running a Single Page Application (SPA) built with frameworks like Nuxt.js, Next.js, React Router, or Vue Router, you might notice an unusually high percentage of Direct traffic in your Google Analytics 4 reports. This happens because: SPAs don’t trigger traditional page loads - When users …