- Trifacta® Enterprise Edition
- Trifacta Professional Edition
- Trifacta Premium
Google Analytics is a web analytics service offered by Google that tracks and reports website traffic. For more information, see https://analytics.google.com/analytics/web/provision/#/provision.
Limitations and Requirements
NOTE: During normal selection or import of an entire table, you may encounter an error indicating a problem with a specific column. Since some tables require filtering based on a particular column, data from them can only be ingested using custom SQL statements. In this case, the problematic column can be used as a filter in the WHERE clause of a custom SQL statement to ingest the table.
- For more information, please consult the CData driver documentation for the specific table.
- For more information on using custom SQL, see Create Dataset with SQL.
NOTE: Most interactions with the Google Analytics datastore are formed as custom SQL queries. More information on syntax and examples is provided below.
OAuth 2.0 authentication is required.
An OAuth 2.0 web client is created for you in the Trifacta application.
- You cannot create OAuth 2.0 connections via API.
Google Analytics allows up to 10 metrics and seven dimensions in a single query.
When issuing a query that selects all columns, only the default Metric columns are selected for tables with more than 10 Metrics.
The default Dimensions are used unless you explicitly select other dimension columns.
All reports in Google Analytics must cover a specific date range.
The default behavior is to pull the last month of data if the StartDate and EndDate inputs are left unset.
To override this behavior, the values can be set directly in the query.
via Trifacta application
When you create the connection, please review the following properties and specify them accordingly:
Unique identifier of the view
Tip: To acquire your View Id, login to Google Analytics and navigate to your site data. Click the name of your site in the top menu bar. The identifiers for the available views are listed as numeric values in the right column.
|Connect String Options|
The following default value sets the connection timeout in seconds:
Setting this value to
The client is displayed.
NOTE: When you create the connection in this window, you must click Authenticate, which authenticates to the app. This step is required.
|Default Column Data Type Inference||Leave this value as |
For more information, see the driver documentation http://cdn.cdata.com/help/DAF/jdbc/default.htm.
Data Type Conversions
For more information, see the driver documentation http://cdn.cdata.com/help/DAF/jdbc/.
To import data from Google Analytics, you typically create a custom SQL SELECT statement. Example:
- Do not apply quotes, double-quotes, or brackets around field or table values.
- Literal values should be in single quotes.
EndDateparameters can be used to specify a date range.
- You can also use date literal functions to specify date ranges. For more information, see http://cdn.cdata.com/help/DAF/jdbc/pg_dateliteralfunctions.htm.
For more information:
This page has no comments.