Skip to content

Commit

Permalink
docs: fix analytics (#4368)
Browse files Browse the repository at this point in the history
  • Loading branch information
moskalakamil authored Jan 13, 2025
1 parent 89ee02b commit 6cc1bff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file modified docs/bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions docs/theme.config.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import {GoogleAnalytics} from '@next/third-parties/google';
import TWGBadge from './components/TWGBadge/TWGBadge';

export default {
Expand Down Expand Up @@ -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: (
Expand Down

0 comments on commit 6cc1bff

Please sign in to comment.