Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit a9d8b48

Browse files
Update Google Analytics
Update Google Analytics - Use site.google_analytics variable - Fix site in tracking code
1 parent d53610f commit a9d8b48

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

_includes/header.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
{% include favicons.html %}
2121
{% include social.html %}
2222

23-
<script>
24-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
23+
<script type="text/javascript">
24+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2525
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
2626
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
27-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
28-
ga('create', 'UA-146052-10', 'getbootstrap.com');
29-
ga('send', 'pageview');
27+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
28+
29+
ga('create', '{% site.google_analytics %}', 'auto');
30+
ga('send', 'pageview');
3031
</script>

0 commit comments

Comments
 (0)