Added Google Analytics + Google Adsense.

This commit is contained in:
Chris 2018-01-13 01:02:12 -05:00
parent bbfb0074a6
commit 6b28ab5855

View File

@ -39,6 +39,17 @@
</div>
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112443698-1"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ .Site.Params.GoogleAnalyticsTrackingId }}');
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{{- block "scripts" . }}{{- end }}
</body>