# How to disable Link Click Counters?

**URL:** https://meta.discourse.org/t/how-to-disable-link-click-counters/292791
**Category:** Development
**Tags:** click-counter
**Created:** [January 24, 2024, 4:10pm UTC](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791 "2024-01-24T16:10:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Plabforum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/plabforum/32/449551_2.png) [@Plabforum](https://meta.discourse.org/u/Plabforum)
#### Post date: [January 24, 2024, 4:10pm UTC](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791/1 "2024-01-24T16:10:29Z")

</div>

How can I disable the clicks that are visible corresponding to the link?

Or make it visible only to the staff. It’s distracting the users of the forum as our forum is highly dependent on complying multiple posts and using links to compile them.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [January 24, 2024, 4:25pm UTC](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791/2 "2024-01-24T16:25:06Z")

</div>

To hide them for everyone, you can follow this CSS snippet:

> [@Disable Click Counts?](https://meta.discourse.org/t/disable-click-counts/146622/2):
>
> I don’t believe there’s a setting to disable the count, but you can hide it via CSS. Something like this should work.
> 
> ```plaintext
> .badge.badge-notification.clicks {
> display: none;
> }
> 
> ```

For staff only, you can use this CSS instead:

```css
body:not(.staff) .badge.badge-notification.clicks {
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [September 8, 2024, 6:30pm UTC](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791/3 "2024-09-08T18:30:00Z")

</div>

This leaves a hidden whitespace.. which makes sentences ending with a hyperlink look [weird](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791).

Notice the space between the d and `dot`.

I know it’s a small thing but it looks very off. I’ve been looking for a solution but haven’t been able to find something yet..

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [October 31, 2024, 9:19pm UTC](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791/4 "2024-10-31T21:19:05Z")

</div>

@MarcP

We’ve pushed an update to how click counters are implemented. There are some improvements now such as copying text doesn’t pick up click counter numbers.

You should be able to hide click counters by doing the following, and it should not leave any spaces in between.

```css
a[data-clicks]::after {
     display: none;
}

```

[https://github.com/discourse/discourse/pull/29453](https://github.com/discourse/discourse/pull/29453)

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [October 31, 2024, 10:06pm UTC](https://meta.discourse.org/t/how-to-disable-link-click-counters/292791/5 "2024-10-31T22:06:42Z")

</div>

Hey @keegan, thank you so much for getting back to me on this, appreciate it a lot!
