Skip to content

Commit e9588fc

Browse files
authored
fix(analytics): load Google tag before hydration (#33)
1 parent 4aef4bc commit e9588fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/app/components/GoogleAnalytics.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function GoogleAnalytics() {
77
<>
88
<Script
99
src={`https://www.googletagmanager.com/gtag/js?id=${measurementId}`}
10-
strategy="afterInteractive"
10+
strategy="beforeInteractive"
1111
/>
1212
<Script id="google-analytics-init" strategy="beforeInteractive">
1313
{`window.dataLayer = window.dataLayer || [];

0 commit comments

Comments
 (0)