# tGoogleAnalyticsReport

Establishes a connection to Google Analytics to retrieve data reports.

## tGoogleAnalyticsReport Standard properties

These properties are used to configure tGoogleAnalyticsReport running in the Standard Job framework.

Information noteImportant: This component has been removed from Talend Studio 8.0 R2024-12 onwards. Use tGoogleAnalytics4Report instead.

The Standard tGoogleAnalyticsReport component belongs to the Business family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Property Type | Select the way the connection details<br>will be set.<br><br><ul> <li> <p> <span>Built-In</span>: The connection details will be set                                locally for this component. You need to specify the values for all                                related connection properties manually.</p> </li> <li> <p> <span>Repository</span>: The connection details stored                                centrally in <span><span>Repository</span><abbr> &gt; </abbr><span>Metadata</span></span> will be reused by this component. </p> <p>You need to click                                the <span>[...]</span> button next to it and in the pop-up                                    <span>Repository Content</span> dialog box, select the                                connection details to be reused, and all related connection                                properties will be automatically filled in.</p> </li> </ul> |
| Schema and Edit schema | A schema is a row description, and<br>it defines the fields to be processed and passed on to the next component.<br><br><ul> <li> <p> <span>Built-In</span>: You create and store the schema locally for this component                only.</p> </li> <li> <p> <span>Repository</span>: You have already created the schema and stored it in the                Repository. You can reuse it in various projects and Job designs.</p> </li> </ul><br><br>Click Edit schema to make changes to<br>the schema. If you make changes, the schema automatically becomes built-in.<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> |
| Authentication method | Select the mode to be used to authenticate to your project.<br><br><ul> <li> <span>Service account key</span>: authenticate using a Google                        account that is associated with your Google Cloud Platform project. When                        selecting this mode, the parameter to be defined is <span>Google                           credentials</span>.</li> <li> <span>Application Default Credentials</span>: authenticate using                        the Application Default Credentials. When selecting this mode, no additional                        parameters need to be defined as credentials are automatically found based                        on the application environment.</li> </ul><br><br>To know more about the Google Cloud authentication process, read [the Google Cloud documentation](https://cloud.google.com/docs/authentication/). |
| Google credentials | Paste the content of the JSON file that contains your service account key.<br><br>This property is only available when you authenticate using Service<br>account key. |
| View ID | Select or enter the unique View Id for retrieving Analytics data. This<br>identifier can be found in your account under **Admin** &gt; **VIEW** &gt; **View<br>Settings**. |
| Start date/End date | Select or enter the start and end dates corresponding to the report you want to<br>retrieve. |
| Dimensions | Select or enter the name of the dimension you want to use.<br><br>Example: Landing Page(ga:landingPagePath)<br><br>Fore more information, see [the Google Analytics<br>documentation](https://ga-dev-tools.web.app/dimensions-metrics-explorer/). |
| Metrics | Select or enter the name of the metrics you want to use.<br><br>Example: Sessions (ga:sessions)<br><br>Fore more information, see [the Google Analytics<br>documentation](https://ga-dev-tools.web.app/dimensions-metrics-explorer/). |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this checkbox to gather the Job processing metadata at the Job level<br>as well as at each component level. |
| Read timeout | Enter the read timeout value in milliseconds. An exception will occur if the<br>waiting time expires before there is data available to read. |
| Advanced metrics | <ul> <li> <span>Expression</span>: Select or enter the expression                           corresponding to the metrics you want to use.<p>Example:                                 <kbd>ga:sessions*100</kbd> </p> </li> <li> <span>Alias</span>: Specify an alias for the previously defined                           expression. The alias will help you reuse this expression in a filter                              clause.<p>Example: <kbd>custom_session_metrics</kbd> </p> </li> <li> <span>Formatting type</span>: Enter or select the format data                           type of the metrics.<p>Example: <kbd>INTEGER</kbd> </p> </li> </ul> |
| Dimension filter clauses | Define your custom filter clause in JSON format. You can use the alias defined<br>previously in this clause.<br><br>For more information on the syntax of these clauses, see the Google Analytics<br>documentation. |
| Metric filter clauses | Define your custom metric clause in JSON format. You can use the alias defined<br>previously in this clause.<br><br>For more information on the syntax of these clauses, see the Google Analytics<br>documentation. |
| Filter expression | Enter your filter expression. |
| Use resource quotas | Enable this option to enable customers of Analytics 360 accounts to have higher<br>sampling thresholds.<br><br>For more information on the syntax of these clauses, see the [Google Analytics documentation](https://developers.google.com/analytics/devguides/reporting/core/v4/resource-based-quota). |
| Include empty rows | Enable this option to include in the response the rows where all metric values<br>are zero. |

## Global Variables

| Variables | Description |
| --- | --- |
| ERROR\_MESSAGE | The error message generated by the component when an error<br>occurs. This is an After variable and it returns a string. |

## Usage

| Usage guidance | Description |
| --- | --- |
| Usage rule | This component can be used as a standalone component or as a start<br>component of a Job or subJob. |