Next.js Discord

Discord Forum

Next14 PagesRouter and Google Analytics

Rampur Greyhound posted this in #help-forum
Open in Discord
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

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 ?

0 Replies