Skip to content

Commit 9b70908

Browse files
committed
fix: apply ga4
1 parent ab220f0 commit 9b70908

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
work correctly both with client-side routing and a non-root public URL.
3030
Learn how to configure a non-root public URL by running `npm run build`.
3131
-->
32-
<!-- Global site tag (gtag.js) - Google Analytics -->
33-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-125599395-1"></script>
32+
<!-- Google tag (gtag.js) -->
33+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8D0MD2S4PK"></script>
3434
<script>
3535
window.dataLayer = window.dataLayer || [];
3636
function gtag(){dataLayer.push(arguments);}
3737
gtag('js', new Date());
3838

39-
gtag('config', 'UA-125599395-1');
39+
gtag('config', 'G-8D0MD2S4PK');
4040
</script>
4141

4242

src/containers/base/Core.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Core: React.FC<CoreProps> = ({ layer }) => {
3131
// adds setTimeout for page title sync
3232
// is there any better solution?
3333
setTimeout(() => {
34-
gtag('config', 'UA-125599395-1', {
34+
gtag('config', 'G-8D0MD2S4PK', {
3535
page_path: location.pathname + location.search,
3636
});
3737
}, 1000);

src/server/Html.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ function Html({
7979
></script>
8080
<script
8181
async
82-
src="https://www.googletagmanager.com/gtag/js?id=%3Cspan%20class="x x-first x-last">UA-125599395-1"
82+
src="https://www.googletagmanager.com/gtag/js?id=%3Cspan%20class="x x-first x-last">G-8D0MD2S4PK"
8383
></script>
8484
<script
8585
dangerouslySetInnerHTML={{
8686
__html: `window.dataLayer = window.dataLayer || [];
87-
function gtag(){dataLayer.push(arguments);}
88-
gtag('js', new Date());
89-
90-
gtag('config', 'UA-125599395-1');`,
87+
function gtag(){dataLayer.push(arguments);}
88+
gtag('js', new Date());
89+
90+
gtag('config', 'G-8D0MD2S4PK');`,
9191
}}
9292
></script>
9393
</head>

0 commit comments

Comments
 (0)