diff options
| author | Shulhan <m.shulhan@gmail.com> | 2023-06-01 18:27:44 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2023-06-01 18:27:44 +0700 |
| commit | bea18378aaffc18d3559c18f4144811237084234 (patch) | |
| tree | c7af4497037ef2dfd1d14f34c8000256a5c8aa2b | |
| parent | 290df73c14e7111ec43782671ed29a266cc82eab (diff) | |
| download | golang-id-web-bea18378aaffc18d3559c18f4144811237084234.tar.xz | |
content/html: update analytics to use GA4
| -rw-r--r-- | _content/html.tmpl | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/_content/html.tmpl b/_content/html.tmpl index 4ab5989..172e1f2 100644 --- a/_content/html.tmpl +++ b/_content/html.tmpl @@ -15,20 +15,14 @@ <link rel="stylesheet" href="{{.}}" /> {{- end}} - <!-- Global site tag (gtag.js) - Google Analytics --> - <script - async - src="https://www.googletagmanager.com/gtag/js?id=UA-2502278-10" - ></script> - <script> - window.dataLayer = window.dataLayer || [] - function gtag() { - dataLayer.push(arguments) - } - gtag("js", new Date()) - - gtag("config", "UA-2502278-10") - </script> + <!-- Google tag (gtag.js) --> + <script async src="https://www.googletagmanager.com/gtag/js?id=G-0RXEYS3MQ0"></script> + <script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-0RXEYS3MQ0'); + </script> </head> <body> <div class="topbar"> |
