使用网络点击计数器跟踪应用程序使用情况,需要建议

发布于 2024-07-26 11:11:38 字数 283 浏览 5 评论 0原文

我有一个用java编写的内部工具。 得到一点会有用的 关于同事使用该软件的情况的反馈。 一个简单的解决方案是让应用程序显示从中获取的图像 类似网络点击计数器的应用程序,只需查看图像的访问频率即可。

所以我正在寻找:一个独立的应用程序(即没有 Apache 模块、cgi 脚本等), 它提供一个或几个静态图像,并且可以记录访问,最好使用 as 尽可能少地支持其他一切。 搜索“点击计数器”几乎没有相关性,“轻量级 http 服务器”更相关,尽管大多数情况下仍然是过度杀伤力。 有什么建议么?

I have an internal tool written in java. It would be useful to get a little
feedback on how much it is used by colleagues.
A simple solution would be to have the application display an image which it fetches from
a web hit counter like application and just look at how often the image is accessed.

So what I am looking for: a stand-alone application (i.e. no Apache modules, cgi scripts, etc),
which serves one or a couple of static images and and can log accesses, preferably with as
little as possible of support of everything else.
Searching for "hit counter" gave little relevant, "lightweight http server" was more relevant, although mostly overkill still. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一场信仰旅途 2024-08-02 11:11:38

您可以尝试使用谷歌分析。 大多数时候,使用 Google Analytics 的人会跟踪网页上的页面浏览量,并且 Google 提供了一些可以放置在页面上的 JavaScript,它将跟踪对该页面的访问以及浏览器功能等。 在幕后,该 JavaScript 会按照您描述的方式在页面上放置图像标签。

然而,由于您的应用程序是java而不是网络应用程序(我假设它是一个独立的而不是小程序),您将无法包含Google的javascript(除非您嵌入一个javascript解释器......yick)。 幸运的是,可以无需 JavaScript 使用 Google 分析。

诀窍在于 Google 的脚本使用图像 http://www.google-analytics.com/__utm.gif 并通过查询字符串传递参数。 您可以找到可传递给查询字符串的参数列表 这里。 因此,您所要做的就是弄清楚查询字符串应该是什么,并让您的客户向谷歌图像发出请求(当然,在设置谷歌分析帐户之后)。

You could try using Google Analytics. Most of the time, people using Google Analytics are tracking pageviews on a web page, and Google Provides some javascript that you can place on your page and it will track the visits to that page as well as browser capabilities/etc. Behind the scenes, that javascript is placing an image tag on the page in the manner you describe.

However, since your application is java and not a web app (I assume it's a standalone and not an applet), you won't be able to include Google's javascript (unless you embed a javascript interpreter...yick). Fortunately, it is possible to use Google's analytics without javascript.

The trick is that Google's scripts use the image http://www.google-analytics.com/__utm.gif and pass parameters via the query string. You can find a list of the parameters you can pass to the query string here. So all you'd have to do is figure out what the query string should be and have your client make the request to google's image (after setting up your google analytics account, of course).

-残月青衣踏尘吟 2024-08-02 11:11:38

只需使用 Google Analytics,这非常简单,并且需要在您的页面上编写一个简短的脚本。

Just use Google Analytics, it's really easy and requires a short script on your pages.

复古式 2024-08-02 11:11:38

Michal Kebrt 的 简单的 UNIX HTTP 服务器 正是我所寻找的。

Michal Kebrt's simple UNIX HTTP server does exactly what I was looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文