aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-05-27 17:29:10 -0400
committerBobby <[email protected]>2023-05-27 17:29:10 -0400
commit3a765998cc2984cf5e38bd77392409446facfeb7 (patch)
tree0e36668dea34340a229c86cce80981641e27a6df
parent1fb8d9590f286112f790bcd4e29fcfece22c7fb3 (diff)
downloadthatcomputerscientist-3a765998cc2984cf5e38bd77392409446facfeb7.tar.xz
thatcomputerscientist-3a765998cc2984cf5e38bd77392409446facfeb7.zip
Added Google Analytics
-rw-r--r--templates/blog/partials/base.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html
index 9660a95d..2ea9ae9b 100644
--- a/templates/blog/partials/base.html
+++ b/templates/blog/partials/base.html
@@ -141,4 +141,13 @@
<script src="{% static 'js/oneko.js' %}"></script>
<script src="{% static 'js/jquery-1.12.4.min.js' %}"></script>
{% block scripts %} {% endblock %}
+ <!-- Google tag (gtag.js) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-72XTC500FR"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-72XTC500FR');
+ </script>
</html>