Skip to content

Commit

Permalink
google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
misabegovic committed Jan 2, 2024
1 parent f2e9598 commit 1a39bb3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
{{ content }}

{% include footer.html %}

</div>

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

gtag('config', 'G-RK79VSHG84');
</script>
</body>
</html>
9 changes: 9 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,14 @@

{% include footer.html %}
</div>

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

gtag('config', 'G-RK79VSHG84');
</script>
</body>
</html>
9 changes: 9 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,14 @@ <h3 class="announcement__title">

{% include footer.html %}
</div>

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

gtag('config', 'G-RK79VSHG84');
</script>
</body>
</html>

0 comments on commit 1a39bb3

Please sign in to comment.