Generate Google Analytics events (__utm.gif requests) serverside

前端 未结 7 535
萌比男神i
萌比男神i 2020-12-04 11:18

I am willing to use Google Analytics to track stats about usage of my Client/Server application (no Browser on the user computer!).

So I guess if anyone ever tried t

7条回答
  •  执笔经年
    2020-12-04 12:08

    Interesting requirement...

    Your best bet would probably be to attempt to reverse engineer the google analytics javascript a little...

    With firefox, and firebug, go to a web site that uses google analytics then open firebug and look at the GET that is submitted to google analytics. If you can then create an HttpRequest with those same parameters and headers you should be able to fool google analytics into thinking you're coming from a web page.

提交回复
热议问题