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

feat: add events for algorithms #3477

Merged
merged 1 commit into from
Aug 8, 2023
Merged

feat: add events for algorithms #3477

merged 1 commit into from
Aug 8, 2023

Conversation

bigint
Copy link
Member

@bigint bigint commented Aug 8, 2023

What does this PR do?

🤖 Generated by Copilot at 5f2df8e

This pull request adds and updates tracking events for various features on the home page of the web app. It uses the Leafwatch.track function and the HOME constant from @lenster/data/tracking to track user actions and preferences on the home algorithms modal, the algorithm toggle, the algorithmic feed, the switch feed type, and the see through lens features. It also removes some obsolete tracking events from packages/data/tracking.ts.

Related issues

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

🤖 Generated by Copilot at 5f2df8e

  • Add new tracking events for the home algorithms and feed type features in the HOME constant in packages/data/tracking.ts (link,link)
  • Remove obsolete tracking events from the MISCELLANEOUS constant in packages/data/tracking.ts (link)
  • Track the open algorithms modal event when clicking the SparklesIcon component in apps/web/src/components/Home/Algorithms/index.tsx (link,link)
  • Track the toggle algorithm event with the algorithm name and the enabled state when toggling the Toggle component in apps/web/src/components/Home/Algorithms/List.tsx (link,link)
  • Track the switch algorithmic feed event with the algorithm name when clicking the TabButton component in apps/web/src/components/Home/Algorithms/Tabs.tsx (link,link)
  • Track the switch feed type events when clicking the TabButton components in apps/web/src/components/Home/FeedType.tsx (link,link,link,link)
  • Track the select user feed event with the see through profile id when clicking the ListItem component in apps/web/src/components/Home/SeeThroughLens.tsx (link,link)

Emoji

📊🔧🏠

@vercel
Copy link

vercel bot commented Aug 8, 2023

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

Name Status Preview Updated (UTC)
prerender ✅ Ready (Inspect) Visit Preview Aug 8, 2023 4:17pm
web ✅ Ready (Inspect) Visit Preview Aug 8, 2023 4:17pm

@bigint bigint merged commit 7596bbe into main Aug 8, 2023
6 of 9 checks passed
@bigint bigint deleted the algo-feed-tracking branch August 8, 2023 16:15
@vercel vercel bot temporarily deployed to Preview – prerender August 8, 2023 16:17 Inactive
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.

None yet

1 participant