mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-01 03:30:00 +08:00
GA: Send hash instead of complete href (#147)
On https://docsify.js.org/#/quickstart send "#/quickstart" instead of "https://docsify.js.org/#/quickstart"
This commit is contained in:
parent
9b7e5f5814
commit
c1df94662a
@ -23,7 +23,7 @@ function init (id) {
|
||||
|
||||
function collect () {
|
||||
init(window.$docsify.ga);
|
||||
window.ga('set', 'page', location.href);
|
||||
window.ga('set', 'page', location.hash);
|
||||
window.ga('send', 'pageview');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user