Skip to content

Commit

Permalink
update google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
acousticrobot committed Jul 20, 2022
1 parent b286268 commit c898086
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
14 changes: 6 additions & 8 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-71033132-1"></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-71033132-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-71033132-1');
</script>
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<link rel="stylesheet" href="{{ "/css/main_200814.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
{% include analytics.html %}
</head>
2 changes: 0 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,5 @@
{% include footer.html %}

</section>

{% include analytics.html %}
</body>
</html>
2 changes: 1 addition & 1 deletion _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nav_page: true
layout: page
---

##### About This Site
##### About This Site

This is the website of Jonathan Gabel. This version was initialized on August 25, 2015, and replaces a WordPress site that ran from Jun 11, 2012 until December 2015.The current site is built using [Jekyll](http://jekyllrb.com/) and is committed on [Github](https://github.com/josankapo)

Expand Down

0 comments on commit c898086

Please sign in to comment.