feat: googleAnalytics
This commit is contained in:
parent
fc83e3314e
commit
14d0777437
4 changed files with 15 additions and 3 deletions
8
layouts/partials/google_analytics.html
Normal file
8
layouts/partials/google_analytics.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.GoogleAnalytics.gtag }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{ .Site.Params.GoogleAnalytics.gtag }}');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue