Skip to content

Commit

Permalink
Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkadwill committed Dec 1, 2017
1 parent d8b50d9 commit b873180
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Expand Up @@ -21,6 +21,7 @@ baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: tomkadwill
github_username: tomkadwill
google_analytics: UA-110529614-1

# Build settings
markdown: kramdown
Expand Down
9 changes: 9 additions & 0 deletions _includes/google-analytics.html
@@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110529614-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-110529614-1');
</script>

0 comments on commit b873180

Please sign in to comment.