简体   繁体   中英

Google Analytics API Custom Dimension name

I'm using the Reporting API v4 and collecting information about Custom Dimensions.

https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=detail&group=custom_variables_or_columns&jump=ga_dimensionxx

I am able to get dimensions like ga:dateHour but am unable to find a dimension that I can receive the "name". I want to pull in the names "zcode" and "ztest" described in this picture Custom Dimensions

Am I missing a dimension or metric in this API to achieve this?

Thanks!

The name is used in the reporting interface only. In the API you address custom dimensions by the keyword "dimension" followed by their respective numeric index.

So in your example you would retrieve values for "zcode" by querying "dimension1".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM