Skip to content

Commit adb922c

Browse files
authored
Merge pull request #10 from pgcodekeeper/fix_analytics
moved analytics to footer
2 parents c331150 + 23a9aa4 commit adb922c

File tree

14 files changed

+120
-4465
lines changed

14 files changed

+120
-4465
lines changed

_src/app/js/vendor/google-analytics.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

_src/app/templates/partials/footer.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@
99
</footer>
1010

1111
<script src="/js/main.min.js"></script>
12+
13+
<!-- Google tag (gtag.js) -->
14+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GEXCEW6LBZ"></script>
15+
<script>
16+
window.dataLayer = window.dataLayer || [];
17+
function gtag(){dataLayer.push(arguments);}
18+
gtag('js', new Date());
19+
20+
gtag('config', 'G-GEXCEW6LBZ');
21+
</script>

0 commit comments

Comments
 (0)