Nov 29, 2021
Hi Anastasiia. Thank you for taking the time to point out the problems.
I have already written an article on how to add google analytics with NextJS application.
https://javascript.plainenglish.io/add-google-analytics-to-a-next-js-application-7cd97eb962e1
I will be grateful if you give it a quick glance.
I will update this one according to your advice as well.
Thank you :)