Skip to content

Commit 6cc1bff

Browse files
authored
docs: fix analytics (#4368)
1 parent 89ee02b commit 6cc1bff

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

docs/bun.lockb

-841 Bytes
Binary file not shown.

docs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"build": "bun next build"
99
},
1010
"dependencies": {
11-
"@next/third-parties": "14.2.20",
1211
"next": "14.2.20",
1312
"nextra": "^2.13.2",
1413
"nextra-theme-docs": "^2.13.2",

docs/theme.config.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import {GoogleAnalytics} from '@next/third-parties/google';
32
import TWGBadge from './components/TWGBadge/TWGBadge';
43

54
export default {
@@ -33,7 +32,15 @@ export default {
3332
type="image/png"
3433
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
3534
/>
36-
<GoogleAnalytics gaId="G-4YEWQH5ZHS" />
35+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4YEWQH5ZHS"></script>
36+
<script>
37+
{`
38+
window.dataLayer = window.dataLayer || [];
39+
function gtag(){dataLayer.push(arguments);}
40+
gtag('js', new Date());
41+
gtag('config', 'G-4YEWQH5ZHS');
42+
`}
43+
</script>
3744
</>
3845
),
3946
logo: (

0 commit comments

Comments
 (0)