Next14 PagesRouter and Google Analytics
Unanswered
Rampur Greyhound posted this in #help-forum
Rampur GreyhoundOP
Which is the best way to add Google Analytics
in Next14 to track page view by title?
I’m using next-third-parties
https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries
and I’ve added next <Head> with title tag in every page….
It works fine but if stay on page X and I reload the page , il track a page view with no the correct title… but it takes the title that it is settled in _ document .
What am I doing bad ?
Is better use Analytics in another way… for example ReactG4 ?
in Next14 to track page view by title?
I’m using next-third-parties
https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries
and I’ve added next <Head> with title tag in every page….
It works fine but if stay on page X and I reload the page , il track a page view with no the correct title… but it takes the title that it is settled in _ document .
What am I doing bad ?
Is better use Analytics in another way… for example ReactG4 ?