A Blazor library for integrating Google Analytics and other analytics services with automatic page view tracking.
Blazor Analytics is a library that simplifies the integration of analytics services like Google Analytics into Blazor applications. It automatically tracks page views as users navigate through the application and provides an interface for tracking custom events with minimal setup required.
Blazor developers who need to implement analytics tracking in their ServerSide or WebAssembly applications without manual JavaScript integration.
Developers choose Blazor Analytics because it provides a native C# API for analytics, automatic page view tracking out of the box, and support for both Blazor hosting models with minimal configuration.
Blazor extensions for Analytics: Google Analytics, GTAG, ...
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically tracks every page view by adding a single NavigationTracker component to App.razor, eliminating manual JavaScript code for navigation changes.
Provides a clean dependency injection method with AddGoogleAnalytics() in Startup/Program, configuring GTAG_ID seamlessly as shown in the README.
Offers an IAnalytics interface with TrackEvent method for logging custom events with structured data in C#, reducing JavaScript interop needs.
Supports both Blazor ServerSide (pre-rendering and runtime) and WebAssembly, as confirmed in the changelog for v3.0.0.
Primarily focused on Google Analytics via GTAG; the README does not mention extensibility for other services, restricting flexibility for diverse needs.
Requires modifications in multiple locations (_Imports.razor, App.razor, and _Host.cshtml or index.html), which can be error-prone and increase initial setup time.
The library is tied to AspNetCore 3.1.8 in the README, which may not be compatible with newer .NET versions without updates, potentially causing integration headaches.