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

How to track Netlify Form submissions with GTM

Here’s how you set up Netlify form submission tracking with Google Tag Manager (GTM) and send events to Google Analytics (GA). Step 1 – Add custom HTML tag – Netlify Form Submission Open up Google Tag Manager and add custom HTML tag with the following code: This is a useful JS snippet I found on … Read more