This is simple solution to count your views in your pages with analytics.
Users can give a URL which they want to count views, they can also give a slug.
What we generate is an iFrame that can be plugged into their website.
Whenever the website is hit, it increments the count and shows the count in the iFrame.
The iFrame is generated using Next JS Serverless functions.
Creation Page
Here you can create a link, once genereated it gives you a embed link for iFrame.
Stats Page
You can see the stats of the link.
iFrames in action
https://www.loom.com/share/1901efa4be3a41c498bf851c1c3b23cc
Thanks Rohith Gilla