How to fix incorrect Page Title for pageviews sent using history listener (React & Next.js)

While I was implementing Netlify form tracking on a Next.js app, I stumbled on a problem when tracking page views with Google Analytics and Google Tag Manager. First, you can’t use (just) the built-in “All Pages” trigger because it only fires once the user lands on the page of the website and not on every … Read more