diff options
author | Mehedi Sharif Titas <mehedishariftitas@gmail.com> | 2022-08-29 06:04:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 06:04:36 +0300 |
commit | 0423d648b8e7fbb7b00bc0710681ca737c777118 (patch) | |
tree | b9f68c1a2c3a7147731b9a4d0f50e228ad6fb028 | |
parent | 8b556159d7d49da563efdc1e8fca8a7553280233 (diff) | |
parent | aee6e5fe2754e7f1efc1190863de868f19249e03 (diff) |
Merge pull request #20 from sumodirjo/patch-1
Add Support for Google Analytics 4 (GA4)
-rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7dafda3..74b68aa 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -37,6 +37,10 @@ AUTHOR WEBSITE: https://themefisher.com {{ template "_internal/opengraph.html" . }} <!-- google analytics --> - {{ template "_internal/google_analytics.html" . }} + {{ if hasPrefix .Site.GoogleAnalytics "G-" -}} + {{ template "_internal/google_analytics.html" . -}} + {{ else -}} + {{ template "_internal/google_analytics_async.html" . -}} + {{ end -}} -</head>
\ No newline at end of file +</head> |