def _get_analytics_page(service, profile_id, date_from, date_to,
                        dimensions, metrics,
                        page=1, batch=10000):
    """
    Retrieve up to 10000 rows of google analytics results in the `page`.

    Args
    ----
    `service`: The google service
    `profile_id`: The id of the google analytics account
    `date_from`: The start date (ex: `2015-01-01`)
    `date_to`: The end date (ex: `2015-01-01`)
    `dimensions`: The dimensions (ex: [`ga:Date`])
    `metrics`: The metrics (ex: [`ga:pageviews`])
    `page`: The result page
    `batch`: The number of records to retrieve by request (should not greater than 10000)
    """

    return service.data().ga().get(
          ids='ga:%s' % str(profile_id),
          start_date=date_from,
          end_date=date_to,
          dimensions=','.join(dimensions),
          metrics=','.join(metrics),
          start_index=page,
          max_results=batch).execute()