Skip to content

Commit

Permalink
Add Google Analytics tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
LeNPaul committed Jan 7, 2018
1 parent 6118d5c commit 75bac5d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _data/settings.yml
Expand Up @@ -25,7 +25,7 @@ seo:

# NOTE: If you want to use Google Analytics for basic web tracking: Just uncomment and enter your UA-Code here.

#google-analytics-ua: UA-XXXXXX-X
google-analytics-ua: 'UA-112060364-3'

#-------------------------------
# Disqus Section
Expand Down
27 changes: 27 additions & 0 deletions _site/index.html
Expand Up @@ -27,6 +27,33 @@
</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','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-112060364-3', 'auto');
ga('send', 'pageview');
</script>



<!-- Use Jekyll SEO plugin -->
<!-- Begin Jekyll SEO tag v2.3.0 -->
<title>Home | Portfolio Jekyll Theme</title>
<meta property="og:title" content="Home" />
<meta name="author" content="Paul Le" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Powered by Jekyll and GitHub Pages" />
<meta property="og:description" content="Powered by Jekyll and GitHub Pages" />
<link rel="canonical" href="http://localhost:4000/" />
<meta property="og:url" content="http://localhost:4000/" />
<meta property="og:site_name" content="Portfolio Jekyll Theme" />
<script type="application/ld+json">
{"mainEntityOfPage":null,"author":{"@type":"Person","name":"Paul Le"},"description":"Powered by Jekyll and GitHub Pages","name":"Portfolio Jekyll Theme","@type":"WebSite","headline":"Home","dateModified":null,"datePublished":null,"sameAs":null,"image":null,"url":"http://localhost:4000/","publisher":null,"@context":"http://schema.org"}</script>
<!-- End Jekyll SEO tag -->


</head>
<body>
Expand Down

0 comments on commit 75bac5d

Please sign in to comment.