update google analytics configuration
This commit is contained in:
parent
8a919fa4b9
commit
7d6806ad0d
3 changed files with 5 additions and 17 deletions
|
@ -18,7 +18,7 @@ author: Ayo
|
|||
attribution: "AyoCart Online Marketing"
|
||||
attribution-url: "https://AyoAyco.com"
|
||||
bugreport_url: "https://github.com/fullhacker/fullhacker.github.io/issues/new"
|
||||
google_analytics: true
|
||||
google_analytics: 'UA-113797180-1'
|
||||
website: fullhacker.github.io
|
||||
email: fullhackerblog@gmail.com
|
||||
description: >- # this means to ignore newlines until "baseurl:"
|
||||
|
|
|
@ -1,19 +1,8 @@
|
|||
<!--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', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script-->
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113797180-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-113797180-1');
|
||||
gtag('config', '{{ site.google_analytics }}');
|
||||
</script>
|
|
@ -34,14 +34,13 @@
|
|||
<meta property="article:section" content="Article Section" />
|
||||
<meta property="article:tag" content="Article Tag" /-->
|
||||
|
||||
|
||||
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ '/feed.xml' | relative_url }}">
|
||||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" />
|
||||
{% if jekyll.environment == 'production' and site.google_analytics %}
|
||||
{% include google-analytics.html %}
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ '/feed.xml' | relative_url }}">
|
||||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" />
|
||||
<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<script
|
||||
|
|
Loading…
Reference in a new issue