Strongly Typed Google Analytics V4 with Next.js

There are a number of articles out there describing various methods of configuring `google analytics` with `next.js` — all written with untyped JavaScript. This article aims to remedy the absence of a strongly typed reference. The official next.js example serves as a good reference, yet, it too lacks strong types as it is written with JavaScript.

Install `@types/gtag.js` as a…