I'm closing in on finishing a Windows Desktop Gadget that downloads plugins from my web server. I'm wondering how I can track the use of these plugins for reporting purposes like seeing which plugins are popular in which countries, how many times a plugin is used per day/month/week and other stuff like that.
我正在完成一个从我的Web服务器下载插件的Windows桌面小工具。我想知道如何跟踪这些插件的使用情况,例如查看哪些插件在哪些国家/地区受欢迎,插件每天/每月/每周使用多少次以及其他类似内容。
Logging this on every user action could cause my server problems as there'd be constant requests. Is it best to keep a local log and upload it to the server on a regular basis or is it possible to use something like Google Analytics or another provider for this sort of thing?
在每个用户操作上记录此操作可能会导致我的服务器出现问题,因为会有不断的请求。最好是保留本地日志并定期将其上传到服务器,还是可以使用Google Analytics或其他提供商之类的东西进行此类操作?
3 个解决方案
#1
If you are using javascript to create your gadget, it should be possible to include the Google Analytics scripts. You can then call the function _trackPageview
whenever your user does something you want to track.
如果您使用javascript来创建小工具,则应该可以包含Google Analytics脚本。然后,只要用户执行了您想要跟踪的操作,就可以调用函数_trackPageview。
It is also possible to use Google's analytics without javascript.
也可以在没有javascript的情况下使用Google的分析。
The trick is that Google's scripts normally put the image http://www.google-analytics.com/__utm.gif into your web pages. Parameters can be passed to the image via the query string. You can find a list of the parameters you can pass to the query string here. What 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 every time the user does something (after setting up your google analytics account, of course).
诀窍在于Google的脚本通常会将图片http://www.google-analytics.com/__utm.gif放入您的网页。参数可以通过查询字符串传递给图像。您可以在此处找到可以传递给查询字符串的参数列表。您需要做的是弄清楚查询字符串应该是什么,并让您的客户在每次用户执行操作时向Google的图像发出请求(当然,在设置Google分析帐户之后)。
#2
I would suggest you to use Deskmetrics a desktop analytics app, very similar to GA. It's awesome.
我建议您使用Deskmetrics一个桌面分析应用程序,与GA非常相似。这很棒。
#3
Checkout Trackerbird Desktop Software Analytics which works on Windows/Mac apps.
Checkout Trackerbird桌面软件分析,适用于Windows / Mac应用程序。
Disclaimer: I am affiliated with company.
免责声明:我隶属于公司。
#1
If you are using javascript to create your gadget, it should be possible to include the Google Analytics scripts. You can then call the function _trackPageview
whenever your user does something you want to track.
如果您使用javascript来创建小工具,则应该可以包含Google Analytics脚本。然后,只要用户执行了您想要跟踪的操作,就可以调用函数_trackPageview。
It is also possible to use Google's analytics without javascript.
也可以在没有javascript的情况下使用Google的分析。
The trick is that Google's scripts normally put the image http://www.google-analytics.com/__utm.gif into your web pages. Parameters can be passed to the image via the query string. You can find a list of the parameters you can pass to the query string here. What 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 every time the user does something (after setting up your google analytics account, of course).
诀窍在于Google的脚本通常会将图片http://www.google-analytics.com/__utm.gif放入您的网页。参数可以通过查询字符串传递给图像。您可以在此处找到可以传递给查询字符串的参数列表。您需要做的是弄清楚查询字符串应该是什么,并让您的客户在每次用户执行操作时向Google的图像发出请求(当然,在设置Google分析帐户之后)。
#2
I would suggest you to use Deskmetrics a desktop analytics app, very similar to GA. It's awesome.
我建议您使用Deskmetrics一个桌面分析应用程序,与GA非常相似。这很棒。
#3
Checkout Trackerbird Desktop Software Analytics which works on Windows/Mac apps.
Checkout Trackerbird桌面软件分析,适用于Windows / Mac应用程序。
Disclaimer: I am affiliated with company.
免责声明:我隶属于公司。