如何从Eclipse更新站点跟踪下载?

时间:2021-08-22 15:50:15

I have a plug-in that I am distributing via an Eclipse update site. I want to track how many times it is being downloaded, and preferably by whom.

我有一个插件,我通过Eclipse更新站点分发。我想跟踪它被下载的次数,最好是由谁来下载。

For regular pages on my site, I can use Google analytics. However, Eclipse doesn't use any HTMLs when going for update sites.

对于我网站上的常规网页,我可以使用Google分析。但是,Eclipse在使用更新站点时不使用任何HTML。

Is there any way to do this when I don't have access to the hosting apache?

当我无法访问托管apache时,有没有办法做到这一点?

3 个解决方案

#1


AFAICT, your only option is to work with web server logs. I wrote this article about tracking Update Site downloads using AWStats, but it requires some server side tweaking. This is just one time set up, though. After that, you use AWStats using its' web interface.

AFAICT,您唯一的选择是使用Web服务器日志。我写了这篇关于使用AWStats跟踪更新站点下载的文章,但它需要一些服务器端调整。不过,这只是一次设置。之后,您使用AWStats使用其“Web界面”。

#2


A dirty trick you can do is to add a dummy feature in your site.xml which points at a counter page instead of a .jar file. E.g.

您可以做的一个脏技巧是在site.xml中添加一个虚拟特征,该特征指向计数器页面而不是.jar文件。例如。

<feature url="http://yourcountersite.com/counterpage.php" id="" version=""> 
  <category name="YourCategory"/> 
</feature> 

The update manager will contact the counter page when it tries to install stuff from your update site but will otherwise ignore this feature.

更新管理器在尝试从更新站点安装内容时将联系计数器页面,否则将忽略此功能。

#3


When you say update site - do you mean your own URL or an eclipse repository ?

当你说更新站点 - 你的意思是你自己的URL或eclipse存储库?

I guess really you need access to the logs of the underlying server. This way you could monitor whatever type of request eclipse initiates (I'd guess its just a standard HTTP request)

我想你真的需要访问底层服务器的日志。这样你可以监视eclipse启动的任何类型的请求(我猜它只是一个标准的HTTP请求)

Steve

#1


AFAICT, your only option is to work with web server logs. I wrote this article about tracking Update Site downloads using AWStats, but it requires some server side tweaking. This is just one time set up, though. After that, you use AWStats using its' web interface.

AFAICT,您唯一的选择是使用Web服务器日志。我写了这篇关于使用AWStats跟踪更新站点下载的文章,但它需要一些服务器端调整。不过,这只是一次设置。之后,您使用AWStats使用其“Web界面”。

#2


A dirty trick you can do is to add a dummy feature in your site.xml which points at a counter page instead of a .jar file. E.g.

您可以做的一个脏技巧是在site.xml中添加一个虚拟特征,该特征指向计数器页面而不是.jar文件。例如。

<feature url="http://yourcountersite.com/counterpage.php" id="" version=""> 
  <category name="YourCategory"/> 
</feature> 

The update manager will contact the counter page when it tries to install stuff from your update site but will otherwise ignore this feature.

更新管理器在尝试从更新站点安装内容时将联系计数器页面,否则将忽略此功能。

#3


When you say update site - do you mean your own URL or an eclipse repository ?

当你说更新站点 - 你的意思是你自己的URL或eclipse存储库?

I guess really you need access to the logs of the underlying server. This way you could monitor whatever type of request eclipse initiates (I'd guess its just a standard HTTP request)

我想你真的需要访问底层服务器的日志。这样你可以监视eclipse启动的任何类型的请求(我猜它只是一个标准的HTTP请求)

Steve