docs: fix analytics (#4368)
This commit is contained in:
parent
89ee02bdab
commit
6cc1bff167
BIN
docs/bun.lockb
BIN
docs/bun.lockb
Binary file not shown.
@ -8,7 +8,6 @@
|
|||||||
"build": "bun next build"
|
"build": "bun next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@next/third-parties": "14.2.20",
|
|
||||||
"next": "14.2.20",
|
"next": "14.2.20",
|
||||||
"nextra": "^2.13.2",
|
"nextra": "^2.13.2",
|
||||||
"nextra-theme-docs": "^2.13.2",
|
"nextra-theme-docs": "^2.13.2",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {GoogleAnalytics} from '@next/third-parties/google';
|
|
||||||
import TWGBadge from './components/TWGBadge/TWGBadge';
|
import TWGBadge from './components/TWGBadge/TWGBadge';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -33,7 +32,15 @@ export default {
|
|||||||
type="image/png"
|
type="image/png"
|
||||||
href="https://docs.thewidlarzgroup.com/react-native-video/favicon.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: (
|
logo: (
|
||||||
|
Loading…
Reference in New Issue
Block a user