Skip to content

Commit

Permalink
Revert "Remove Google Analytics"
Browse files Browse the repository at this point in the history
This reverts commit 4e657ee.
  • Loading branch information
domingusj committed Dec 11, 2023
1 parent db52e4a commit 017346a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ images:

plugins:
- jemoji

# Google Analytics
google_analytics: UA-103295514-1
9 changes: 9 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-103295514-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-103295514-1');
</script>
1 change: 1 addition & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
{% include head.html %}
{% include analytics.html %}
</head>

<body class="s-content">
Expand Down
1 change: 1 addition & 0 deletions _layouts/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
{% include head.html %}
{% include analytics.html %}
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions _layouts/lesson.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
{% include head.html %}
{% include analytics.html %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>

Expand Down
1 change: 1 addition & 0 deletions _layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
{% include head.html %}
{% include analytics.html %}
</head>

<body class="s-content">
Expand Down
2 changes: 2 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html>
<head>
{% include head.html %}
{% include analytics.html %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>

Expand All @@ -27,6 +28,7 @@ <h1>
</div>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
{% if jekyll.environment == 'production' %}
{% include analytics.html %}
{% endif %}
<script>
/**
Expand Down
1 change: 1 addition & 0 deletions _layouts/partner_lesson.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
{% include head.html %}
{% include analytics.html %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>

Expand Down

0 comments on commit 017346a

Please sign in to comment.