Learn business growth with Google Analytics 4 Forums Google Analytics 4 How to track custom event occurrences with specific parameters in GA4 using the API? Reply To: How to track custom event occurrences with specific parameters in GA4 using the API?

  • William

    Member
    16 June 2023 at 8:17 am

    You need to use dimensionFilter again, rather than metricFilter, to filter by the “userId”. The “userId” is a dimension (a characteristic of your users), not a metric (a measurement of their behavior). Also, make sure the fieldName value is correct for your user ID.