Skip to content

Commit

Permalink
fix: support GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
xianmin committed Oct 17, 2022
1 parent 4f1a558 commit e4f2475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否
paginate = 5 # 首页每页显示的文章数
rssLimit = 20 # Limit Entry Count to Rss file # 限制 Rss 文章输出数量
disqusShortname = "xianmin12" # disqus_shortname
googleAnalytics = "UA-34199129-1" # UA-XXXXXXXX-X
googleAnalytics = "G-4SFSR6JRVT" # G-********
copyright = "" # default: author.name ↓ # 默认为下面配置的author.name ↓
enableGitInfo = true # use git commit log to generate lastmod record # 可根据 Git 中的提交生成最近更新记录。
# uglyURLs = true
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<!-- Analytics -->
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{ template "_internal/google_analytics.html" . }}
{{- end -}}

<!-- Custom head -->
Expand Down

0 comments on commit e4f2475

Please sign in to comment.