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:
Mehdy Dara 2017-04-12 17:45:58 +02:00 committed by cinwell.li
parent 9b7e5f5814
commit c1df94662a

View File

@ -23,7 +23,7 @@ function init (id) {
function collect () { function collect () {
init(window.$docsify.ga); init(window.$docsify.ga);
window.ga('set', 'page', location.href); window.ga('set', 'page', location.hash);
window.ga('send', 'pageview'); window.ga('send', 'pageview');
} }