feat(plugins): add Google Analytics plugin (#66)

This commit is contained in:
cinwell.li 2017-02-09 22:16:15 +08:00 • committed by GitHub
commit ac61bb0e75
7 changed files with 96 additions and 4 deletions

View file

@ -15,7 +15,8 @@ const OPTIONS = utils.merge({
auto2top: false,
name: '',
themeColor: '',
nameLink: window.location.pathname
nameLink: window.location.pathname,
ga: ''
}, window.$docsify)
const script = document.currentScript || [].slice.call(document.getElementsByTagName('script')).pop()