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.
Here you can create a link, once genereated it gives you a embed link for iFrame.
You can see the stats of the link.
iFrames in action
Thanks Rohith Gilla