We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题:如题 开启pjax后,页面跳转后不统计的bug
解决
document.addEventListener('pjax:complete', function () { // 百度统计 Pjax if(typeof _hmt !== "undefined" && typeof _hmt.push === "function") { _hmt.push(['_trackPageview',window.location.pathname]); } // 谷歌统计 Pjax if(typeof ga === "function") { ga('send', 'pageview', window.location.href); } if(typeof gtag === "function"){ gtag('event', 'pageview', {page_location: window.location.href}); } })
The text was updated successfully, but these errors were encountered:
fix: 百度統計適配pjax #516
2f3094c
測試了 谷歌分析正常 百度統計沒適配,已更新
Sorry, something went wrong.
No branches or pull requests
问题:如题
开启pjax后,页面跳转后不统计的bug
解决
The text was updated successfully, but these errors were encountered: