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

Add analytics to webapp #121

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Add analytics to webapp #121

merged 1 commit into from
Jun 14, 2024

Conversation

aswallace
Copy link
Contributor

@aswallace aswallace commented Jun 12, 2024

This adds Google Tag Manager to the webapp to collect basic data about user traffic/interaction.
closes #116

Testing

Checked that gtm is showing up with a 200 in the Network tab for all the current routes.
Once these changes are deployed, we'll need to reach out to Thao to verify its presence

Notes

  • Do we need to implement page/event tracking for React Router?
    Edit: It sounds like most things will be configured through the Google Tag Manager interface itself, and then we can chat with the analytics team if we need something more advanced than what it currently will do
  • As is, will get data from everywhere this is deployed, including dev/staging. May need to decide later if we want to keep it that way or narrow down where we collect

@aswallace aswallace linked an issue Jun 12, 2024 that may be closed by this pull request
@@ -4,9 +4,23 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="logo.png" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit but I don't think you need the closing / for link

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm seeing some mixed info about whether that's still the case for html5 (vs html4)

@aswallace aswallace merged commit 6e1361b into main Jun 14, 2024
3 checks passed
@aswallace aswallace deleted the feature/add-analytics branch June 14, 2024 17:44
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.

Add analytics
3 participants