Soenneker.Maui.Firebase.Analytics 4.0.284

Prefix Reserved
dotnet add package Soenneker.Maui.Firebase.Analytics --version 4.0.284
                    
NuGet\Install-Package Soenneker.Maui.Firebase.Analytics -Version 4.0.284
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Maui.Firebase.Analytics" Version="4.0.284" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Maui.Firebase.Analytics" Version="4.0.284" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Maui.Firebase.Analytics" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Maui.Firebase.Analytics --version 4.0.284
                    
#r "nuget: Soenneker.Maui.Firebase.Analytics, 4.0.284"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Maui.Firebase.Analytics@4.0.284
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Maui.Firebase.Analytics&version=4.0.284
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Maui.Firebase.Analytics&version=4.0.284
                    
Install as a Cake Tool

Soenneker.Maui.Firebase.Analytics

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Provides a small Android and iOS abstraction for logging Firebase Analytics events and setting user attributes from a .NET MAUI app.

Installation

dotnet add package Soenneker.Maui.Firebase.Analytics

Configure the native Firebase app first with Soenneker.Maui.Firebase, including the platform's google-services.json or GoogleService-Info.plist.

Registration

Register the analytics service in MauiProgram.CreateMauiApp:

using Soenneker.Maui.Firebase.Analytics.Registrars;
using Soenneker.Maui.Firebase.Dtos;
using Soenneker.Maui.Firebase.Registrars;

builder.UseFirebase(new FirebaseConfig())
       .Build();

builder.Services.AddFirebaseAnalyticsServiceAsSingleton();

The service is registered only for Android and iOS targets.

Usage

Inject IFirebaseAnalyticsService into a page, view model, or application service:

using Soenneker.Maui.Firebase.Analytics.Abstract;

public sealed class CheckoutTracker(IFirebaseAnalyticsService analytics)
{
    public void Completed(string orderType)
    {
        analytics.LogEvent("checkout_completed", new Dictionary<string, string>
        {
            ["order_type"] = orderType
        });
    }

    public void IdentifySignedInUser(string internalUserId)
    {
        analytics.SetUserId(internalUserId);
        analytics.SetUserProperty("account_tier", "pro");
    }
}

Event parameters in this abstraction are string values. Event names, parameter names, and user-property names must satisfy Firebase Analytics naming and quota rules; invalid data is handled by the native SDK.

Use an opaque application identifier for SetUserId. Do not send names, email addresses, or other personally identifiable information, and obtain any consent required by the app's privacy policy before collecting analytics.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.284 0 8/30/2026
4.0.283 0 8/30/2026
4.0.282 37 8/30/2026
4.0.281 36 8/29/2026
4.0.280 32 8/29/2026
4.0.279 41 8/29/2026
4.0.278 40 8/26/2026
4.0.277 46 8/25/2026
4.0.276 87 8/21/2026
4.0.275 83 8/20/2026
4.0.274 106 7/29/2026
4.0.273 106 7/29/2026
4.0.272 99 7/28/2026
4.0.271 92 7/28/2026
4.0.270 94 7/27/2026
4.0.269 88 7/27/2026
4.0.268 93 7/27/2026
4.0.267 102 7/22/2026
4.0.266 102 7/22/2026
4.0.265 105 7/16/2026
Loading failed

Update dependency Soenneker.Maui.Firebase to 4.0.191 (#794)