best way to get page views in nextjs app router
Unanswered
North Pacific hake posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
North Pacific hakeOP
how to do this? many thanks
8 Replies
![Avatar](https://cdn.discordapp.com/avatars/301376057326567425/788b75eb8862277af3d31d317ada783f.webp?size=256)
B33fb0n3
Do Marketing and you will get more page views 🙂
@North Pacific hake
@North Pacific hake
![Avatar](https://cdn.discordapp.com/avatars/769111741098622976/a00ea6fb13337fd9ef76154f8e3cb990.webp?size=256)
Eric Burel
@North Pacific hake check out Leerob blog it has a page counter
he uses Postgre to store the page count
![Avatar](https://cdn.discordapp.com/avatars/238241848613797889/3f886452e122cb7d560cfe5a863ed380.webp?size=256)
fran
hey, in my blog I use the following solution, both functions are executed in a component using unstable_noStore so that every time a request is made it is executed, the visits are saved in a redis, here you can see: https://github.com/franfdezmorales/blog/blob/master/app/lib/articles/index.tsx
![Avatar](https://cdn.discordapp.com/avatars/769111741098622976/a00ea6fb13337fd9ef76154f8e3cb990.webp?size=256)
Eric Burel
with partial prerendering you can scope the dynamic rendering and side effect to the counter component while keeping the page static
![Avatar](https://cdn.discordapp.com/avatars/238241848613797889/3f886452e122cb7d560cfe5a863ed380.webp?size=256)
fran
thats right, thats how it currently works
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
North Pacific hakeOP
thank you guys. @Eric Burel @fran