docs: fix analytics (#4368)

This commit is contained in:
Kamil Moskała 2025-01-13 15:01:15 +01:00 committed by GitHub
parent 89ee02bdab
commit 6cc1bff167
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

Binary file not shown.

View File

@ -8,7 +8,6 @@
"build": "bun next build"
},
"dependencies": {
"@next/third-parties": "14.2.20",
"next": "14.2.20",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",

View File

@ -1,5 +1,4 @@
import React from 'react';
import {GoogleAnalytics} from '@next/third-parties/google';
import TWGBadge from './components/TWGBadge/TWGBadge';
export default {
@ -33,7 +32,15 @@ export default {
type="image/png"
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.png"
/>
<GoogleAnalytics gaId="G-4YEWQH5ZHS" />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4YEWQH5ZHS"></script>
<script>
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4YEWQH5ZHS');
`}
</script>
</>
),
logo: (