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

Firebase Analytics logEvent with custom parameters map issues #691

Open
andreimesina opened this issue Jan 3, 2025 · 0 comments
Open

Firebase Analytics logEvent with custom parameters map issues #691

andreimesina opened this issue Jan 3, 2025 · 0 comments

Comments

@andreimesina
Copy link

Hi there!
I'm using the Firebase Analytics from GitLive version 2.1.0 in a Kotlin with Compose Multiplatform - Kobweb project for a website.

I am trying to log the following event together with a map of custom parameters:

First attempt:

analytics.logEvent(
    "landing_cta_click",
    mapOf(
        "home_variant" to "A",
        "cta_variant" to "B"
    )
)

Second attempt:

analytics.logEvent("landing_cta_click") {
    param("home_variant" to "A")
    param("cta_variant" to "B")
}

Checking the Firebase DebugView, in first attempt they are logged under the v5_1 name:
Screenshot 2025-01-03 at 14 08 08
Screenshot 2025-01-03 at 14 08 35

And for second attempt, they are logged under the internalMap_1 name:
Screenshot 2025-01-03 at 14 52 30
Screenshot 2025-01-03 at 14 41 38

I expected that the home_variant and cta_variant custom parameters would be added directly to the landing_cta_click event log in Firebase as individual parameters, rather than being added under these unexpected container names.

This is a critical issue for my project because it totally breaks the Google Analytics custom parameters tracking, as for example home_variant is not considered a logged parameter even if it is set as a custom dimension. It just appears as (not set), because instead v5_1 is registered as the actual parameter, with a plain text value set to {home_variant=B, cta_variant=A}.

image
@andreimesina andreimesina changed the title Firebase Analytics logEvent with parameters map issues Firebase Analytics logEvent with custom parameters map issues Jan 3, 2025
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

No branches or pull requests

1 participant