mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 13:05:52 -04:00
Add site to GA config
This commit is contained in:
parent
e63acb8948
commit
6c8772aad1
@ -5,7 +5,8 @@
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ . }}', {'branch': '{{ getenv "BRANCH" }}'});
|
||||
{{ $site := .Site.BaseURL | replaceRE "^https?://(www\\.)?([^/]+).*" "$2" }}
|
||||
gtag('config', '{{ . }}', {'site': '{{ $site }}', 'branch': '{{ getenv "BRANCH" }}'});
|
||||
|
||||
/**
|
||||
* Function that tracks a click on an outbound link in Analytics.
|
||||
|
Loading…
x
Reference in New Issue
Block a user