diff --git a/examples/index.tpl b/examples/index.tpl index 5b004a04e..15454cfb0 100644 --- a/examples/index.tpl +++ b/examples/index.tpl @@ -19,5 +19,10 @@ ga('create', 'UA-84335471-1', 'auto'); ga('send', 'pageview'); + + window.addEventListener('hashchange', function () { + ga('set', 'page', window.location.href); + ga('send', 'pageview'); + }); <% } %> diff --git a/package.json b/package.json index 75c0b3182..9ac3dfd30 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,8 @@ "bugs": { "url": "https://github.com/ElemeFE/element/issues" }, + "unpkg": "lib/index.js", + "style": "lib/theme-default/index.css", "dependencies": { "async-validator": "^1.6.6", "babel-helper-vue-jsx-merge-props": "^2.0.0",