Commit 96fdcc5 1 parent dcbed3e commit 96fdcc5 Copy full SHA for 96fdcc5
File tree 4 files changed +4
-8
lines changed
exampleSite/config/_default
4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
30
- Removed explicit setting of the ` languageCode ` for the example site to force
31
31
Hugo use ` site.Language.LanguageCode ` as the default language code for the
32
32
site. See ` exampleSite/config/_default/languages.yaml ` for more details.
33
+ - Drop support of AnonymizeIp configuration parameter for Google Analytics as
34
+ it is no longer relevant in Google Analytics >= v4.
33
35
34
36
## [ v0.8.0] ( https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.7.0...v0.8.0 )
35
37
Original file line number Diff line number Diff line change 1
- import { analyticsCode , anonymizeIp } from '@params' ;
1
+ import { analyticsCode } from '@params' ;
2
2
3
3
let dataLayer ;
4
4
@@ -126,7 +126,6 @@ if (isDoNotTrackEnabled()) {
126
126
127
127
// Setup the project analytics code and send a pageview
128
128
gtag ( 'config' , analyticsCode , {
129
- 'anonymize_ip' : anonymizeIp ,
130
129
'cookie_expires' : month
131
130
} ) ;
132
131
Original file line number Diff line number Diff line change 83
83
# The site.Title will be used if empty.
84
84
publisher : Serghei Iakovlev
85
85
86
- # To anonymize the IP addresses of hits sent to Google Analytics
87
- # set this param to true. Please note, to enable Google Analytics
88
- # you have to set `googleAnalytics` param in config.yaml file.
89
- anonymizeIp : true
90
-
91
86
author :
92
87
name : Serghei Iakovlev
93
88
Original file line number Diff line number Diff line change 1
1
{{- if (or (eq (getenv "HUGO_ENV") "production") (eq site.Params.env "production")) -}}
2
2
{{- with site.GoogleAnalytics -}}
3
- {{- $gaParams := dict "analyticsCode" (site.GoogleAnalytics | default "") "anonymizeIp" (site.Params.anonymizeIp | default true) -}}
3
+ {{- $gaParams := dict "analyticsCode" (site.GoogleAnalytics | default "") -}}
4
4
5
5
{{- $gaScript := slice -}}
6
6
{{- $gaScript = $gaScript | append (resources.Get "js/ga.js") -}}
You can’t perform that action at this time.
0 commit comments