title: Is it possible to manipulate the dimension name within the Google Analytics API response in the query itself
body: <p>Here is a sample query that I created to fetch Google Analytics data:</p>
  <pre><code>response = service.reports().batchGet(
  body={
      'reportRequests': [
          {
              'viewId': 'xxxx',  
              'dateRanges': [{'startDate': '2021-01-14', 'endDate': '2021-01-15'}],
              'metrics': [
                  {'expression': 'ga:pageViews'},
                  {'expression': 'ga:sessions'},
                  {'expression': 'ga:itemRevenue'},
                  {'expression': 'ga:hits'},
                  {'expression': 'ga:sessionDuration'},
                  ],
              # Get Pages
              'dimensions': [
                  {&quot;name&quot;: &quot;ga:clientId&quot;},
                  {&quot;name&quot;: &quot;ga:pagePath&quot;},
                  {&quot;name&quot;: &quot;ga:dateHourMinute&quot;},
                  {&quot;name&quot;: &quot;ga:shoppingStage&quot;},
                  {&quot;name&quot;: &quot;ga:source&quot;},
                  {&quot;name&quot;: &quot;ga:campaign&quot;},
                  ],
              # Filter by condition
              &quot;filtersExpression&quot;: &quot;ga:clientId==yyyy.zzzz&quot;,
              'orderBys': [{&quot;fieldName&quot;: &quot;ga:dateHourMinute&quot;, &quot;sortOrder&quot;: &quot;DESCENDING&quot;}],
              'pageSize': 500
          }]
      }
      ).execute()
  </code></pre>
  <p>Sample response:</p>
  <pre><code>{'dimensions': ['yyyy.zzzz',
                  '/products/pants-green?variant=456456456',
                  '202101142347',
                  'ALL_VISITS',
                  'newsletter',
                  '2021_01-pre-sale',
                  '282'],
   'metrics': [{'values': ['0',
                           '0',
                           '0.0',
                           '1',
                           '0.0']}]},
  </code></pre>
  <p>Is it possible to define alternate naming for the dimensions in the response within the query itself, e.g.</p>
  <ul>
  <li>strip the variant part from the page path with regex,</li>
  <li>change the wording for &quot;ga:shoppingStage&quot; from ALL_VISITS to something else?</li>
  </ul>
  <p>Or is this something which needs to be done in post-processing?</p>