# Google Analytics Data API - Module Google::Analytics::Data (v0.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.2.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data/latest/Google-Analytics-Data)
- [0.1.4](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data/0.1.4/Google-Analytics-Data)
Reference documentation and code samples for the Google Analytics Data API module Google::Analytics::Data.

## Methods

### .analytics_data

    def self.analytics_data(version: :v1beta, &block) -> AnalyticsData::Client

Create a new client object for AnalyticsData.


<br />

By default, this returns an instance of
[Google::Analytics::Data::V1beta::AnalyticsData::Client](https://googleapis.dev/ruby/google-analytics-data-v1beta/latest/Google/Analytics/Data/V1beta/AnalyticsData/Client.html)
for version V1beta of the API.
However, you can specify specify a different API version by passing it in the
`version` parameter. If the AnalyticsData service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.

#### About AnalyticsData

<br />

<br />

Google Analytics reporting data service.
**Parameter**

- **version** (::String, ::Symbol) *(defaults to: :v1beta)* --- The API version to connect to. Optional. Defaults to `:v1beta`.
**Returns**

- (AnalyticsData::Client) --- A client object for the specified version.

## Constants

### VERSION

**value:**"0.2.0"