I went through next.js example projects, especially how to integrate google analytics and facebook pixel.
Both integrations use routeChangeComplete event here and here. It triggers when user changes route and then page view event is sent to analytics tools.
routeChangeComplete event doesn't trigger on initial render (first user visit). It triggers only when user changes route (enters another route). I think Google Analytics and Facebook Pixel page view events should be sent on the first user's visit as well. How to do that correctly in next.js projects?