This is a guide about Link Click Counters in Discourse, explaining what they are, how they work, and their behaviors.
Required user level: All users
What are link click counters?
Link Click Counters are numbered indicators next to all links shared through Discourse. They are enabled for all http and https links on a site and apply to both internal and external links. They track and display the number of times a link is clicked. This allows users to see the popularity or engagement level of shared links.
Try clicking this link to see the counter in action: Click this link!
How link click counters work
Here are some important points about the functionality and behavior of Discourse Link Click Counters:
- Intelligent tracking: The click counter tracks clicks from other users but ignores clicks from the user who posted the link. Each user’s click is only counted once per 24-hour period.
- Anonymous user IP tracking: If an anonymous user clicks a link, it is counted but only once per IP address per 24-hour period. Repeated clicks from the same IP within that window won’t increase the counter.
- Client-side updates: The counter increases on the client side when a link is clicked and updates when the page is refreshed.
-
Right-click excluded: The counter only increases when a
clickDOM event is fired. Right-click is explicitly excluded. Middle-click does not fire aclickevent and is therefore not tracked. Note that control-click and shift-click do fire aclickevent and will be tracked.
Last edited by @hugh 2024-06-17T09:58:24Z
Last checked by @hugh 2024-06-17T09:58:29Z
Check document
Perform check on document: