Skip to content
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

SFR-2449: Add GTM scripts #578

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Conversation

jackiequach
Copy link
Collaborator

Jira Ticket

This PR does the following:

  • Add scripts for Google Tag Manager

Testing requirements & instructions:

Copy link

vercel bot commented Jan 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sfr-bookfinder-front-end ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 9:02pm

@@ -19,6 +19,14 @@ class MyDocument extends Document<DocumentProps> {
<Html lang="en">
<Head>
<script src={appConfig.analytics} async />
{/* Google Tag Manager */}
{/* eslint-disable-next-line @next/next/next-script-for-ga */}
Copy link
Collaborator Author

@jackiequach jackiequach Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next third party scripts is available in Next 14

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Do you think it makes sense to upgrade to Next 15 sometime soon?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should also migrate to the app router to improve load states.

Copy link
Contributor

@kylevillegas93 kylevillegas93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jackiequach jackiequach merged commit ab34e15 into development Jan 7, 2025
8 checks passed
@jackiequach jackiequach deleted the SFR-2449/add-gtm-scripts branch January 7, 2025 21:06
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.

3 participants