clarity icon indicating copy to clipboard operation
clarity copied to clipboard

Microsoft Clarity is being blocked by adblockers - net::ERR_BLOCKED_BY_CLIENT

Open dinbtechit opened this issue 1 year ago • 1 comments

Microsoft clarity is being blocked by adblockers. (UBlock). Is there any way to get around this?

image

Adding a Content Security policy did not work

dinbtechit avatar Jun 25 '24 12:06 dinbtechit

Looking for a solution, too. Can anyone provide a correct and usable nginx configuration file for reverse proxy? I am stuck in configuring CORS.

xrgzs avatar Jun 26 '24 17:06 xrgzs

Looks like 95% of the traffic to my site uses adblocker which makes clarity virtually useless. :(

dinbtechit avatar Jul 12 '24 13:07 dinbtechit

Same thing here, and most people use adblock, which is a problem.

nathannogueira avatar Jul 12 '24 13:07 nathannogueira

https://github.com/easylist/easylist

In this list from one of the adblock extensions, clarity.ms^ appears as to be blocked.

nathannogueira avatar Jul 12 '24 15:07 nathannogueira

Also seeing this, I'm going to see if a reverse proxy setup will work

Andrewjeska avatar Aug 08 '24 13:08 Andrewjeska

@Andrewjeska - please keep us posted on your findings 🙌

dinbtechit avatar Aug 08 '24 13:08 dinbtechit

If you set up a reverse proxy for the initial request to the Clarity tag (clarity.ms), it will work at first. However, the issue arises because that tag makes additional internal requests to the same domain, such as:

https://www.clarity.ms/s/0.7.43/clarity.js https://l.clarity.ms/collect

This means that while Adblock might ignore the block on the initial tag, it will still block these other requests made by the script. The only solution would be to host the tag script yourself and modify its internal URLs to use your reverse proxy.

image

nathannogueira avatar Aug 08 '24 15:08 nathannogueira

Sorry there's not really anything we can do about folks blocking our domains (in Ublock or other similar extensions).

ender336 avatar Aug 28 '24 22:08 ender336

Could we proxy the requests to MS Clarity through the servers we host? It would be virtually impossible for these extensions to block them. Any thoughts?

dinbtechit avatar Aug 29 '24 13:08 dinbtechit

Have you guys found out any solutions to this problem please update in the comments.? @dinbtechit

HassanAsghar111 avatar Dec 17 '24 07:12 HassanAsghar111

I am also looking for a solution to this issue

scarlett-danger avatar Mar 02 '25 05:03 scarlett-danger

Have you guys found out any solutions to this problem please update in the comments.? @dinbtechit

@HassanAsghar111 - Not yet. I think a self-hosted solution is what we are looking for. Microsoft clarity doesn't record 99% of our traffic.

dinbtechit avatar Mar 02 '25 15:03 dinbtechit

@scarlett-danger / @HassanAsghar111 - We found a self hosted Analytics - Open Replay!!!!. Fully open source, their plans on cloud offering is seriously good & affordable, self hosted. It meets all our needs and does not get blocked by adblockers!!!!

Bye Bye - Microsoft Clarify

Hello, Open Replay

dinbtechit avatar Mar 05 '25 14:03 dinbtechit

@dinbtechit did you find any solution?

raselinfo avatar Jun 12 '25 09:06 raselinfo

Clarity is a great and handy tool, but it loses most of its value when up to 80% of traffic isn’t recorded because of ad blockers. It’s probably better to use open-source solutions that support reverse proxying from your own domain, like OpenReplay.

zsky01 avatar Jul 04 '25 08:07 zsky01