Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Trouble obtaining data for device and user gender dimensions in PHP with Analytics Reporting API › Reply To: Trouble obtaining data for device and user gender dimensions in PHP with Analytics Reporting API
-
From the sound of it, it seems like you’ve encountered a common issue in reporting where adding another dimension, in this case, ‘usergender’, to your report can cause the return of an empty response especially if the data source for that dimension doesn’t have usable data. ‘SetIncludeEmptyRows’ should ideally work, but there could be a number of reasons why it’s not. It might be how your database is structured, it might be how you’re calling up the report, or it could even be an error somewhere in your PHP code. Without more specific information, it’s hard to give a more specific answer. However, if you double-check the mentioned areas, you might find the culprit.