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?
-
You need to use
dimensionFilter
again, rather thanmetricFilter
, 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 thefieldName
value is correct for your user ID.