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(frontend): add plausible analytics #5463

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

roman-nazaruk
Copy link
Contributor

@roman-nazaruk roman-nazaruk commented Mar 26, 2025

Motivation

We aim to track analytics using Plausible. The goal is to ensure that pageviews and custom events are tracked correctly across the app.

Changes

  • Integrated plausible-tracker with initialization logic.

  • Added support for tracking custom events in Plausible

Tests

  • Added unit tests for initPlausibleAnalytics and trackEvent

  • Verified tracker is initialized with the correct config

  • Ensured trackEvent calls Plausible only when initialized

@roman-nazaruk roman-nazaruk marked this pull request as ready for review March 27, 2025 18:31
@roman-nazaruk roman-nazaruk requested a review from a team as a code owner March 27, 2025 18:31
Copy link
Collaborator

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

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

Let's split this PR, please

And most important: how much does plausible-tracker add to the bundle?

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.

2 participants