有没有办法检查浏览器是否安装了Alexa工具栏?

时间:2021-08-27 15:49:34

Is there a way to check if a browser of a visitor has the Alexa toolbar installed? This might probably be done via JavaScript.

有没有办法检查访问者的浏览器是否安装了Alexa工具栏?这可能是通过JavaScript完成的。

Doing this would give us the possibility to somewhat compensate for the bias of the Alexa rating of a site. See e.g. Alexa Toolbar and the Problem of Experiment Design

这样做可以让我们在某种程度上弥补网站Alexa评级的偏差。参见例如Alexa工具栏和实验设计问题

Especially outside of the USA the Alexa toolbar is not too common - but anyway, it is used. So by measuring the ratio of toobar/no-toolbar visits on known websites, one might determine a correction factor.

特别是在美国之外,Alexa工具栏并不常见 - 但无论如何,它都被使用了。因此,通过测量已知网站上的工杆/无工具栏访问的比率,可以确定校正因子。

I'm a web developer/designer with control of a couple of customer websites which I manage. They fall into different categories which, as I can see form the stats, correlate with the use of browsers and platforms, and probably will correlate with the use of the Alexa toolbar too. Those categories might be ‘general public websites’, ‘academic websites’, ‘technical websites’, ‘web developer’s and SEO’s websites’, etc.

我是一名网络开发人员/设计师,负责管理我管理的几个客户网站。它们分为不同的类别,正如我可以看到的那样,它们与浏览器和平台的使用相关联,并且可能与Alexa工具栏的使用相关联。这些类别可能是“一般公共网站”,“学术网站”,“技术网站”,“网站开发者和搜索引擎优化网站”等。

I’m not sure if Alexa tries to compensate for this bias itself, and if, how this is done, but perhaps it’s possible to find this information too.

我不确定Alexa是否会试图弥补这种偏见本身,以及是否如何做到这一点,但也许也有可能找到这些信息。

Erich

2 个解决方案

#1


For some browsers it modifies User Agent so you can check if user is reporting to Alexa using

对于某些浏览器,它会修改用户代理,以便您可以检查用户是否使用向Alexa报告

<?php if (preg_match('/(Alexa)/i',$_SERVER['HTTP_USER_AGENT'])) {echo 'This is Alexa Reporter :)';) ?>

or

<script>if (navigator.userAgent.indexOf('Alexa') != -1) {alert('This is Alexa Reporter');}</script>

#2


I found this article that appears to allow you to detect it, tough as pointed out, it is basically spyware, so I don't know why you would go out of your way to "impove" it's view of you: Alex Toolbar Detection

我发现这篇文章似乎可以让你发现它,如同指出的那样强硬,它基本上就是间谍软件,所以我不知道为什么你会不顾一切地“推动”它对你的看法:Alex工具栏检测

#1


For some browsers it modifies User Agent so you can check if user is reporting to Alexa using

对于某些浏览器,它会修改用户代理,以便您可以检查用户是否使用向Alexa报告

<?php if (preg_match('/(Alexa)/i',$_SERVER['HTTP_USER_AGENT'])) {echo 'This is Alexa Reporter :)';) ?>

or

<script>if (navigator.userAgent.indexOf('Alexa') != -1) {alert('This is Alexa Reporter');}</script>

#2


I found this article that appears to allow you to detect it, tough as pointed out, it is basically spyware, so I don't know why you would go out of your way to "impove" it's view of you: Alex Toolbar Detection

我发现这篇文章似乎可以让你发现它,如同指出的那样强硬,它基本上就是间谍软件,所以我不知道为什么你会不顾一切地“推动”它对你的看法:Alex工具栏检测