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

Feature/214/add-firebase-analytics #241

Conversation

AmirAgassi
Copy link
Contributor

@AmirAgassi AmirAgassi commented Apr 4, 2024

🔍Add Firebase Analytics to track how the website is used #214

🔍 What's Included (OLD)

  • Implemented Firebase Analytics to gather insights on user interactions within the website.
  • In Analytics.tsx, initialized Firebase Analytics.
  • Updated SocialIcons.tsx to log clicks on social media icons, capturing the specific platform clicked.
  • Updated Contact.section.tsx with analytics event logging for subscription button clicks, tagged with subscribe_button_click.
    - Modified Landing.tsx to track page views on component mount and scroll percentage milestones (every 5%)
  • first_visit, session_start enabled on GA and handled by default.

🗒️TODO

  • Replace 5% milestone scroll tracking with anchor points the website ("seen_faq", "seen_about", etc)
  • Add an analyticsEvent for each sponsor button
  • Add an analyticsEvent for the MLH banner
  • Add an analyticsEvent for the application dashboard button

🗒️ Notes

  • Make sure environment variables for Firebase configuration are added in .env for testing and deployment.
  • We may want to customize our reports on GA to better represent the events collected.

📁 Files Affected:

  • src/components/Analytics.tsx
  • src/components/SocialIcons.tsx
  • src/components/sections/Contact.section.tsx
  • src/pages/Landing.tsx

@AmirAgassi AmirAgassi self-assigned this Apr 4, 2024
@aidantrabs
Copy link
Member

WOOHOO CONFLICTS!!!

@aidantrabs aidantrabs merged commit 72531c7 into main Apr 7, 2024
2 checks passed
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