Create a Google Analytics Raw Data connection
Create a Google Analytics Raw Data connection in Catalog Explorer to store authentication credentials for Lakeflow Connect ingestion. Any user with the USE CONNECTION privilege on the connection can then create Google Analytics ingestion pipelines without needing direct access to the credentials.
Alternatively, admin users can create a connection and a pipeline at the same time in the data ingestion UI. See Create an ingestion pipeline.
For privilege requirements, see Connect to managed ingestion sources.
The following authentication methods are supported:
- U2M OAuth (recommended)
- Service account authentication using a JSON key (in the UI, this is called Username and password)
Prerequisites
For service account authentication, complete the source setup. Use the authentication details you obtain to create the connection.
Create a connection
- U2M OAuth
- Service account
- In the Databricks workspace, click Catalog > External locations > Connections > Create connection.
- On the Connection basics page of the Set up connection wizard, specify a unique Connection name.
- In the Connection type drop-down menu, select Google Analytics Raw Data.
- In the Auth type drop-down menu, select OAuth.
- (Optional) Add a comment.
- Click Next.
- On the Authentication page, click Sign in to Google and sign in with your Google account credentials.
- At the prompt to allow Lakeflow Connect to access your Google account, click Allow.
- After you're redirected back to the Databricks workspace, click Create connection.
- In the Databricks workspace, click Catalog > External locations > Connections > Create connection.
- On the Connection basics page of the Set up connection wizard, specify a unique Connection name.
- In the Connection type drop-down menu, select Google Analytics Raw Data.
- In the Auth type drop-down menu, select Username and password.
- (Optional) Add a comment.
- Click Next.
- On the Authentication page, enter the Google service account key from the source setup in JSON format.
- Click Create connection.