Google Analytics Data V1alpha API - Class Google::Analytics::Data::V1alpha::OrderBy::PivotOrderBy::PivotSelection (v0.8.3)
Reference documentation and code samples for the Google Analytics Data V1alpha API class Google::Analytics::Data::V1alpha::OrderBy::PivotOrderBy::PivotSelection.
A pair of dimension names and values. Rows with this dimension pivot pair
are ordered by the metric's value.
For example if pivots = {{"browser", "Chrome"}} and
metric_name = "Sessions",
then the rows will be sorted based on Sessions in Chrome.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Analytics Data V1alpha API - Class Google::Analytics::Data::V1alpha::OrderBy::PivotOrderBy::PivotSelection (v0.8.3)\n\nReference documentation and code samples for the Google Analytics Data V1alpha API class Google::Analytics::Data::V1alpha::OrderBy::PivotOrderBy::PivotSelection.\n\nA pair of dimension names and values. Rows with this dimension pivot pair\nare ordered by the metric's value.\n\nFor example if pivots = {{\"browser\", \"Chrome\"}} and\nmetric_name = \"Sessions\",\nthen the rows will be sorted based on Sessions in Chrome. \n\n ---------|----------|----------------|----------|----------------\n | Chrome | Chrome | Safari | Safari\n ---------|----------|----------------|----------|----------------\n Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions\n ---------|----------|----------------|----------|----------------\n US | 2 | 2 | 3 | 1\n ---------|----------|----------------|----------|----------------\n Canada | 3 | 1 | 4 | 1\n ---------|----------|----------------|----------|----------------\n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #dimension_name\n\n def dimension_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Must be a dimension name from the request.\n\n### #dimension_name=\n\n def dimension_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Must be a dimension name from the request. \n**Returns**\n\n- (::String) --- Must be a dimension name from the request.\n\n### #dimension_value\n\n def dimension_value() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Order by only when the named dimension is this value.\n\n### #dimension_value=\n\n def dimension_value=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Order by only when the named dimension is this value. \n**Returns**\n\n- (::String) --- Order by only when the named dimension is this value."]]