Added Google Analytics
This commit is contained in:
parent
9168b2e38a
commit
7b1aff1e68
2 changed files with 16 additions and 16 deletions
21
.gitignore
vendored
21
.gitignore
vendored
|
@ -1,18 +1,7 @@
|
|||
# Files
|
||||
.DS_Store
|
||||
.directory
|
||||
node_modules/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
|
||||
content/.vuepress/dist
|
||||
|
||||
.env
|
||||
*.log
|
||||
|
||||
# Directories
|
||||
node_modules
|
||||
|
|
|
@ -9,6 +9,7 @@ const local = require("app-root-path").require;
|
|||
|
||||
// V A R I A B L E S
|
||||
|
||||
const config = local("/config");
|
||||
const editLink = local("/views/partials/edit-link");
|
||||
const emailSubscribe = local("/views/partials/email-subscribe");
|
||||
|
||||
|
@ -51,4 +52,14 @@ module.exports = exports = state => html`
|
|||
</footer>
|
||||
|
||||
<script src="/assets/scripts/app.js"></script>
|
||||
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");
|
||||
|
||||
ga("create", ${config.ga}, "auto");
|
||||
ga("send", "pageview");
|
||||
</script>
|
||||
`;
|
||||
|
|
Loading…
Reference in a new issue