Skip to content

Commit ba5f14f

Browse files
authored
[SITE] update google analytics (devopsdays#14670)
* this updates the google analytics config * this also stop using the builtin depricated key Signed-off-by: Toshaan Bharvani <[email protected]>
1 parent c972a12 commit ba5f14f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config/_default/hugo.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
theme: devopsdays-theme
22
baseURL: https://www.devopsdays.org/
33
languageCode: en-us
4-
GoogleAnalytics: UA-9713393-1
54
title: DevOpsDays
65
buildDrafts: false
76
canonifyURLs: false
@@ -118,4 +117,8 @@ caches:
118117
maxAge: -1
119118
images:
120119
dir: ":resourceDir/_gen"
121-
maxAge: -1
120+
maxAge: -1
121+
122+
services:
123+
googleanalytics:
124+
ID: UA-9713393-1

themes/devopsdays-theme/layouts/partials/google_analytics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Google Analytics -->
22
<script>
33
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
4-
ga('create', '{{ $.Site.GoogleAnalytics }}', 'auto');
4+
ga('create', '{{ $.Site.Config.Services.GoogleAnalytics.ID }}', 'auto');
55
ga('send', 'pageview');
66
{{ if or (eq .Type "welcome") (eq .Type "event") (eq .Type "speaker") (eq .Type "speakers") (eq .Type "talk") (eq .Type "program")}}
77
{{- $e := partial "functions/get-event-data" . -}}

0 commit comments

Comments
 (0)