Google Analytics: How to track pages in a single page application?

前端 未结 7 2243
鱼传尺愫
鱼传尺愫 2021-01-31 08:44

Currently in my website, I used HTML5\'s pushState() and popState in links to increase the speed. However, this doesn\'t really change the real URL and it

7条回答
  •  情歌与酒
    2021-01-31 09:24

    I also had problems with ga('send','pageview');, after using history.pushState.

    The workaround was simply make the URL explicit. ga('send','pageview','/my-url')

提交回复
热议问题