Skip to content

Commit bf050e6

Browse files
committed
Update Google Analytics configuration to prevent automatic page view tracking
1 parent 1daeb92 commit bf050e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
199199
id="ga-init"
200200
strategy="afterInteractive"
201201
dangerouslySetInnerHTML={{
202-
__html: `window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '${gaId}');`,
202+
__html: `window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '${gaId}', {send_page_view: false});`,
203203
}}
204204
/>
205205
)}

0 commit comments

Comments
 (0)