Setup
How to add Google Analytics to your NextJs Application?I spent couple of days trying to figure out the best approach to add my site to google Analytics. I tried to just insert gtag.js javascript code in the header. But I wasn't satisified with the way it worked or fit into my design.