Skip to content

Commit

Permalink
Remove GA (will use it in Google Tags Manager)
Browse files Browse the repository at this point in the history
  • Loading branch information
runexes committed Jun 6, 2021
1 parent 8383754 commit 8745709
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
title: Aleksandr Slyusarev
description: Mobile App Developer (Flutter/Swift) | Back-End PHP Developer
google_analytics: UA-139440491-1
google_tag_manager: GTM-PZC3C26
theme: jekyll-theme-cayman
12 changes: 0 additions & 12 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,5 @@ <h2 class="project-tagline">{{ site.description }}</h2>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
</footer>
</section>

{% if site.google_analytics %}
<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', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>
</html>

0 comments on commit 8745709

Please sign in to comment.