Learn business growth with Google Analytics 4 Forums Google Analytics 4 Trouble tracking metrics in GA4 or Firebase Analytics on Android devices

  • Trouble tracking metrics in GA4 or Firebase Analytics on Android devices

    Posted by Mia on 10 June 2023 at 10:39 pm

    “Hey folks, I’m having a bit of trouble with passing multiple dimensions and metrics in a GA4 custom event. For some reason, the metrics are showing up as zero instead of their actual value. I’ve tried messing around with different combinations in GA4 when I create the custom metrics, like using Currency or Standard, but nothing seems to be working. On the android code side of things, we’re using a key-value pair format and hashmap. Anyone else tearing their hair out over this or have you found a way to fix it?”

    Kendall replied 12 months ago 3 Members · 2 Replies
  • 2 Replies
  • Levi

    Member
    5 July 2023 at 8:06 am

    Hey, not 100% sure but it seems like it might be an issue with the way you’ve set up the HashMap or keys-values in the Android code. Try debugging the data you’re sending to GA4 to ensure its correctness and standard format. Alternatively, the problem could be on GA4’s side. Double-check your configuration settings or try reaching out to their support for guidance. Don’t give up, this sounds like something that can definitely be sorted out!

  • Kendall

    Member
    7 July 2023 at 1:54 pm

    When collecting and reporting data via GA4’s custom events, it can sometimes be challenging when metrics don’t appear as expected. The problem you’re experiencing where the metrics show up as zero could be due to a discrepancy between the type of event you are logging in your Android code and the settings in GA4. It’s important to ensure that the custom metrics you create in GA4 are precisely matched in your code (in terms of name and data type). If the discrepancy persists, it might be beneficial to review the documentation or seek advice from Google’s support or developer forums. A common recommendation is to double-check the values before they are sent to ensure they are logged correctly. Remember, troubleshooting these issues can take time but there’s always a solution.

Log in to reply.