mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 15:57:31 -04:00
Send custom dimensions in GA
This commit is contained in:
parent
55df01a346
commit
25dffe4ac3
@ -6,7 +6,7 @@
|
||||
gtag('js', new Date());
|
||||
|
||||
{{ $site := $.Site.BaseURL | replaceRE "^https?://(www\\.)?([^/]+).*" "$2" }}
|
||||
gtag('config', '{{ . }}', {'site': '{{ $site }}', 'branch': '{{ getenv "BRANCH" }}'});
|
||||
gtag('config', '{{ . }}', {'dimension1': '{{ $site }}', 'dimension2': '{{ getenv "BRANCH" }}'});
|
||||
|
||||
/**
|
||||
* Function that tracks a click on an outbound link in Analytics.
|
||||
|
Loading…
x
Reference in New Issue
Block a user