Skip to content

Add Google Analytics gtag to _app#191

Closed
fdsafewa wants to merge 1 commit intomainfrom
add-ga-tag
Closed

Add Google Analytics gtag to _app#191
fdsafewa wants to merge 1 commit intomainfrom
add-ga-tag

Conversation

@fdsafewa
Copy link
Collaborator

Import next/script and add Google Analytics (gtag) to src/pages/_app.tsx. The change loads gtag.js with strategy "afterInteractive" and injects an initialization script that sets up window.dataLayer and calls google tag to enable page tracking.

Import next/script and add Google Analytics (gtag) to src/pages/_app.tsx. The change loads gtag.js with strategy "afterInteractive" and injects an initialization script that sets up window.dataLayer and calls google tag to enable page tracking.
@netlify
Copy link

netlify bot commented Feb 11, 2026

Deploy Preview for orcahome ready!

Name Link
🔨 Latest commit 61f5561
🔍 Latest deploy log https://app.netlify.com/projects/orcahome/deploys/698c45eaafab7900081ee8c3
😎 Deploy Preview https://deploy-preview-191--orcahome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fdsafewa fdsafewa closed this Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant