https://github.com/emadasefi/page-view-count-javascript
Page ViewCount Function JavaScript Call in HTMl Script
https://github.com/emadasefi/page-view-count-javascript
Last synced: about 1 month ago
JSON representation
Page ViewCount Function JavaScript Call in HTMl Script
- Host: GitHub
- URL: https://github.com/emadasefi/page-view-count-javascript
- Owner: emadasefi
- Created: 2024-03-18T08:23:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T08:27:31.000Z (almost 2 years ago)
- Last Synced: 2024-03-18T09:42:42.956Z (almost 2 years ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Page ViewCount Function JavaScript Call in HTMl Script
====================================
▚ A beautifully simple to set up Function that gives site visitors and site owners the ability to quickly and easily see how many people have visited that page or post. This function records the date of visits to the "moment-jalaali"
▚ Just put the script function in the format HTML so that a record is saved in your MongoDB with each user visit.
## ▚ simple Function Call in HTMl Script :
```html
(function () {
axios('https://***/updateViewCount/WebSiteName').then(resp => {})
})();
(function () {
axios('https://***/updateViewCount/PageName').then(resp => {})
})();
```
#
Please Leave Your Comments if You Got Some Trouble.