You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,9 @@ And that's it! 🎉
23
23
24
24
### Tracking views
25
25
26
-
To track a view simply send a request to `/<yourpagepath>`. If you send a `GET` request, the request will return the total views. If you send a `POST` request, the views will increment but you're not going to get the total views back.
26
+
To track a view simply send a request to `/<yourpagepath>`. If you send a `GET` request, the request will increment the views and return the total views. If you send a `POST` request, the views will increment but you're not going to get the total views back.
27
+
28
+
If you don't want to increment the views during a `GET` request, set `inc` to `false` in your query parameter. (`/<yourpagepath>?inc=false`)
27
29
28
30
This is how you'd track pageviews for a website: (though note that this can be used to track anything you want)
0 commit comments