Skip to main content
RevGems will automatically track page views when the browser loads a new document. However, with Next.js only the first page view is tracked because subsequent navigation doesn’t trigger a true page refresh. Because of this you must track subsequent page views manually with revgems("trackPageView") when the router fires the routeChangeComplete event: