# Configuring the Google Analytics integration

From the Account settings page, click on the "Integrations" section and then click 'Set up' or 'Edit' on the "Google Analytics" integration.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2For99xDEElfps9uMDY60K%2Fuploads%2FAtfXz6ZuLY4oLHMBYOxK%2Fsetup_google_analytics.mp4?alt=media&token=6d479bc8-4f66-4615-bd28-95ee929878e1>" %}

#### Authenticate with a Service Account or OAuth[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/google-analytics-config#authenticate-with-a-service-account-or-oauth) <a href="#authenticate-with-a-service-account-or-oauth" id="authenticate-with-a-service-account-or-oauth"></a>

See detailed instructions:

* [Service Account](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/service-account)
* [Google Account (OAuth)](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/o-auth)

#### Configure Properties[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/google-analytics-config#configure-properties) <a href="#configure-properties" id="configure-properties"></a>

A property in Google Analytics represents a website, mobile application, or device from which you want to collect data. It's a container for the data collected from your online presence.

Select all properties you want to use with Smaply. Each property will be available to the users that create metrics using the Google Analytics integration. Each property has its own set of dimensions and metrics.

#### Configure Dimensions[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/google-analytics-config#configure-dimensions) <a href="#configure-dimensions" id="configure-dimensions"></a>

Dimensions are attributes of your data that are used to filter and group data in Smaply. They are made available to the users that create metrics using the Google Analytics integration.

{% hint style="info" %}
***Tip:** Keep it lean! Only add dimensions that you need for your metrics. This will minimize the options a user has to consider, reducing confusion and making metrics easier to manage.*
{% endhint %}

<figure><img src="https://geoffbullen.github.io/smaply-knowledge/assets/images/select_dimensions-2dde57163fdbcef7e6cfb1cf1ff92ecc.png" alt=""><figcaption></figcaption></figure>

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2For99xDEElfps9uMDY60K%2Fuploads%2FySp6MfGck4NB6DeEF2IR%2FConfiguring%20GA%20dimensions%20(2).mp4?alt=media&token=ccce7369-1266-4963-8f4b-65633b55475d>" %}

#### Configure Metrics[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/google-analytics-config#configure-metrics) <a href="#configure-metrics" id="configure-metrics"></a>

Metrics are the quantitative measurements of user activity on your site or app, such as the number of sessions, page views, or goal completions.

<figure><img src="/files/i5is8XZ0I3GzK7JH6JTI" alt=""><figcaption></figcaption></figure>

#### Save Your Configuration <a href="#save-your-configuration" id="save-your-configuration"></a>

Click on the "Save" button to finalise your settings.

Congratulations! You have now configured the Google Analytics integration. You can proceed to create metrics with live data from Google Analytics.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdesk.smaply.app/integrations/metrics-tools/google-analytics/configuring-the-google-analytics-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
