GoogleApi.AnalyticsData.V1alpha.Model.Dimension (google_api_analytics_data v0.13.0) View Source

Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, city could be "Paris" or "New York". Requests are allowed up to 9 dimensions.


  • dimensionExpression (type: GoogleApi.AnalyticsData.V1alpha.Model.DimensionExpression.t, default: nil) - One dimension can be the result of an expression of multiple dimensions. For example, dimension "country, city": concatenate(country, ", ", city).
  • name (type: String.t, default: nil) - The name of the dimension. See the API Dimensions for the list of dimension names. If dimensionExpression is specified, name can be any string that you would like. For example if a dimensionExpression concatenates country and city, you could call that dimension countryAndCity. Dimensions are referenced by name in dimensionFilter, orderBys, dimensionExpression, and pivots.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.AnalyticsData.V1alpha.Model.Dimension{
    GoogleApi.AnalyticsData.V1alpha.Model.DimensionExpression.t() | nil,
  name: String.t() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.