Skip to content

Commit

Permalink
Add Google Analytics and AdSense
Browse files Browse the repository at this point in the history
  • Loading branch information
picodotdev committed Dec 18, 2021
1 parent 40bbdef commit 5b4d6b7
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
Empty file added site/.hugo_build.lock
Empty file.
43 changes: 40 additions & 3 deletions site/content/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,29 @@ url: "/"
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column is-6 is-offset-3 has-text-centered">
<figure class="image">
<a href="https://www.archlinux.org/"><img src="images/logos/archlinux.svg" alt="Arch Linux"></a>
</figure>
</div>
</div>
</div>
</div>

<div class="container">
<div class="columns is-vcentered">
<div class="column is-6 is-offset-3 has-text-centered">
<figure class="image">
<a href="https://www.archlinux.org/"><img src="images/logos/archlinux.svg" alt="Arch Linux"></a>
</figure>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3533636310991304" crossorigin="anonymous"></script>
<!-- alis-auto-billboard -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3533636310991304"
data-ad-slot="4052324337"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
Expand Down Expand Up @@ -248,3 +267,21 @@ url: "/"
</div>
</div>
</section>

<div class="container">
<div class="columns is-vcentered">
<div class="column is-6 is-offset-3 has-text-centered">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3533636310991304" crossorigin="anonymous"></script>
<!-- alis-auto-billboard -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3533636310991304"
data-ad-slot="4052324337"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
10 changes: 10 additions & 0 deletions site/themes/alis/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
{{ partial "meta.html" . }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ partial "css.html" . }}

<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-12874075-6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-12874075-6');
</script>
</head>
<body>
<a href="{{ .Site.Params.navbarlogo.link }}" style="position: absolute; top: 0px; right: 0px; z-index: 99999;"><img width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_darkblue_121621.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
Expand Down

0 comments on commit 5b4d6b7

Please sign in to comment.