BUappend

移动端,网页埋点

  •  
  •   BUappend · Dec 9, 2020 · 2810 views
    This topic created in 2163 days ago, the information mentioned may be changed or developed.

    突然发现,移动端木有 mousedown 的事件,只有 click 事件,但是有 300ms,所以移动端网页在 click 发送埋点是不可能的了,在本页面更换路径的时候,肯定会 abort 掉的,但是在 touchstart 发送也不行,因为可能会拖动啊,请问这种情况应该怎么做埋点呢?或者能模拟 mousedown 的效果吗?

    2 replies  •  2020-12-21 14:53:52 +08:00
    buhi
    buhi
    Dec 9, 2020
    1
    用 pointerdown
    手机端 safari 不管用, 需要用 polyfill : https://github.com/jquery/PEP
    tutou
    tutou
    Dec 21, 2020
    2
    不用 fastclick 解决 300ms 延迟?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2087 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:06 · PVG 23:06 · LAX 07:06 · JFK 10:06
    ♥ Do have faith in what you're doing.