Skip to content

Commit

Permalink
third-party GA
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Mar 26, 2024
1 parent 9d03c48 commit 8f59601
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"homepage": "https://github.com/betteridea-dev/docs#readme",
"dependencies": {
"@next/third-parties": "^14.1.4",
"next": "^13.0.6",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
Expand Down
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import Image from 'next/image'
import Script from 'next/script'
import { GoogleAnalytics } from '@next/third-parties/google';

const headProp = () => {
return (
Expand All @@ -24,7 +25,7 @@ const headProp = () => {
<meta property="twitter:title" content="BetterIDEa Developer Docs"></meta>
<meta property="twitter:description" content="BetterIDEa Developer Docs"></meta>

<Script
{/* <Script
src="https://www.googletagmanager.com/gtag/js?id=G-V1XZ5N5L48"
strategy="afterInteractive"
/>
Expand All @@ -36,7 +37,7 @@ const headProp = () => {
gtag('config', 'G-V1XZ5N5L48');
`}
</Script>
</Script> */}
</head>
)
}
Expand All @@ -51,6 +52,7 @@ const config: DocsThemeConfig = {
},
docsRepositoryBase: 'https://github.com/betteridea-dev/docs',
head: headProp,
main: ({ children }) => <>{children}<GoogleAnalytics gaId="G-V1XZ5N5L48" /></>,
footer: {
text: 'BetterIDEa Documentation',
},
Expand Down

0 comments on commit 8f59601

Please sign in to comment.