yanwen
V2EX  ›  问与答

这个页面中的链接旁边的点击统计是怎么实现的??

  •  
  •   yanwen · Jul 4, 2014 · 2863 views
    This topic created in 4422 days ago, the information mentioned may be changed or developed.
    RT

    这个页面 http://forum.projecth.us/t/chrome/1199




    markdown 可以直接写出来不??还是需要插件统计的??
    1 replies    2014-07-04 12:57:08 +08:00
    mornlight
        1
    mornlight  
       Jul 4, 2014   ❤️ 1
    点击链接的时候触发了一个Get请求,应该是js做的吧,通过这个请求能统计到点击次数。

    GET http://forum.projecth.us/clicks/track?url=http%3A%2F%2Fhonx.in%2Fi%2FU6acmoKo102dB7kD&post_id=1985&topic_id=1199 HTTP/1.1
    Host: forum.projecth.us
    Connection: keep-alive
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
    Referer: http://forum.projecth.us/t/chrome/1199
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: zh-CN,zh;q=0.8
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:49 · PVG 13:49 · LAX 22:49 · JFK 01:49
    ♥ Do have faith in what you're doing.