I have a xml web service which I would like to track using Google Analytics. Since it uses a small client side javascript to do the tracking, this is a problem. Is it possible to workaround this without running a javascript client server side?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Maybe this would be of help
Server Side Google Analytics (PHP)
回答2:
Work around? Of course, this is the web. Hook up an HTTP analyzer and see what that Google JavaScript transmits. Then, have your webservice make those same HTTP requests.
But wouldn't it be easier to just store that data in a database?