Welcome to the Page Views Counter project! This project aims to track the number of views each page receives.
I've implemented a page view counter using Netlify Blog and Netlify Functions, allowing us to monitor page view efficiently.
Above view count is displayed using this API.
https://page-views-counter.netlify.app/page_view?page=page_url
page
(URL of the
page to track)
curl https://page-views-counter.netlify.app/page_view?page=https://example.com/index.html/
{
"data": {
"page_url": "https://example.com/index.html/",
"view_count": 1,
"last_modified": "2024-05-11T06:41:00.557Z"
}
}
The API response includes the page URL and its corresponding view count in JSON format.