-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
dimension for customEvent is not working #12466
Comments
Hi @temuycro, dimensions should be of type Dimension. Something like
Try the following
Please also see https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#event-scoped_custom_dimensions for more examples. |
Hi @parthea, Nope, it didn't work :(
|
temuycro@, I suggest you try using the API Explorer to call the getMetadata method of the Data API and make sure this dimension is available. Chances are, "click" is not among the custom event parameters available for your property. For further questions, please contact the Google Analytics API Support team, as this question does not seem to be specific to the client library implementation. |
@ikuleshov hi! Thank you! Is there a way to do this using Python? |
The client library was able to send the request to the API however the response from the API was As mentioned in #12466 (comment), please use the |
@parthea hello. I tried using this endpoint Sorry, I'm not a developer. I'm currently using Postman. Would you guide me through this? Also, at least a little bit of code on Python, like the one I used in the first comment? |
@temuycro , Can you try using the |
@parthea Done! Sorry I didn't understand when you mentioned You were right: the |
@temuycro , This is an API specific question rather than a client library question as mentioned in #12466 (comment). You'll get better quality answers from the API team. Please fill out this form to obtain technical support for the API: https://developers.google.com/analytics/devguides/support |
Hello.
Whenever I want to get any Event-Scoped Custom Dimension, the API doesn't recognizes the function.
I followed the syntax as showin in the official documentation, but I still get this error:
ValueError: Protocol message Dimension has no "customEvent" field.
My goal is to get the
eventCount
(number of events) from a custom event I created AND currently measuring and making reports on Looker Studio and Explorations directly on the Google Analytics 4 interface.Does anybody has the same problem?
These are the libraries I'm loading
And this is the request code:
The text was updated successfully, but these errors were encountered: