Skip to content

Commit

Permalink
feat: add support for Google Analytics 4
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 27, 2022
1 parent d1cc276 commit 2de8649
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/partials/assets/google-analytics.html
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{{ template "_internal/google_analytics_async.html" . }}
{{- if hasPrefix .Site.GoogleAnalytics "G-" -}}
{{- template "_internal/google_analytics.html" . -}}
{{- else -}}
{{- template "_internal/google_analytics_async.html" . -}}
{{- end -}}

0 comments on commit 2de8649

Please sign in to comment.