Using google analytics to track hits on an XML web

2019-07-23 19:12发布

问题:

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?