-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
565-feat: Connect google analytics #676
Conversation
export const Analytics = () => { | ||
return ( | ||
<> | ||
<Script strategy="afterInteractive" src="https://www.googletagmanager.com/gtag/js? id=G-THXM004SPR" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space ? id
@@ -23,6 +23,7 @@ | |||
"node": ">=20.x" | |||
}, | |||
"dependencies": { | |||
"@next/third-parties": "^15.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this package since you're not using GoogleTagManager
, right?
return ( | ||
<> | ||
<Script strategy="afterInteractive" src="https://www.googletagmanager.com/gtag/js? id=G-THXM004SPR" /> | ||
<Script strategy="afterInteractive"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can omit the strategy prop, since it defaults to afterInteractive
Lighthouse Report:
|
Lighthouse Report:
|
What type of PR is this? (select all that apply)
Description
Added custom
Analitics.tsx
component with GA tag.Related Tickets & Documents
Added/updated tests?
[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?