Google Cloud Pub/Sub Connector Setup Guide
This article describes how to set up the Google Cloud Pub/Sub connectors. Tealium offers two Pub/Sub connectors in the Connector Marketplace the Google Could Pub/Sub Connector (3-legged OAuth) and Google Cloud Pub/Sub (Service Account) Connector (2-legged OAuth).
Prerequisites
Google Cloud Pub/Sub Connector
This connector uses a three-legged OAuth flow using a client ID and secret with user input for authentication. Before configuring this connector, complete the following steps:
- Create an OAuth client ID credential in your Google Cloud project with an application type of web application.
- Update the Google Cloud web application settings to whitelist Tealium servers and provide the required callback upon successful connection. In the Google Cloud console, navigate to Credentials and edit the OAuth client ID settings with the following values. For each selection, add one of the values depending on the subdomain used in the URL of your Tealium instance.
- Authorized JavaScript origins:
https://my.tealiumiq.com
https://my.tealiumiq.com
https://[privatecloud subdomain].tealiumiq.com
- Authorized redirect URIs:
https://my.tealiumiq.com/oauth/google/callback.html
https://my.tealiumiq.com/oauth/google/callback.html
https://[private cloud subdomain].tealiumiq.com/oauth/google/callback.html
- Make note of the following configuration settings to use in the connector configuration
- Project ID
- Client ID
- Client Secret
Google Cloud Pub/Sub (Service Account) Connector
This connector uses two-legged OAuth flow, based on a Google Cloud service account for access. Before configuring the connector, create a service account in a Google Cloud project with a role of Pub/Sub Publisher. For more information about creating a service account, see Access Control with IAM in the Google Cloud documenation. After you create your service account, make note of the following configuration settings to use in the connector configuration:
- Project ID
- Service Account Email
- Service Account Key
Configure Settings
Navigate to the Connector Marketplace and add a new connector. For general instructions on how to add a connector, see the About Connectors article.
After adding the connector, configure the following settings based on which connector you added:
Google Cloud Pub/Sub Connector
- Google Cloud Project ID
Required. Your Google Cloud Project ID. - Client ID
Required. The OAuth Client ID in your Google Cloud project with an application type of web application. - Client Secret
Required. Enter the client secret assigned to you in your Google Cloud project.
Google Cloud Pub/Sub (Service Account) Connector
- Google Cloud Project ID
Required. Your Google Cloud Project ID. - Client Email
Required. The service account email address used in your Google Cloud project. - Private Key
Required. The private key generated for your Google Cloud project service account.
Connector Actions
Action Name | AudienceStream | EventStream |
---|---|---|
Send Event Data to Topic | ✗ | ✓ |
Send Visitor Data to Topic | ✓ | ✗ |
Send Customized Data to Topic (Advanced) | ✓ | ✓ |
Action Settings - Parameters and Options
Click Next or go to the Actions tab. This is where you configure connector actions.
This section describes how to set up parameters and options for each action.
If the Pub/Sub topic you are publishing to has a schema attached, use the Send Customized Data to Topic action to specify a strict JSON definition which matches your schema.
Action - Send Event Data to Topic
Parameters
Parameter | Description |
---|---|
Project Topic |
|
Message Attributes |
|
Print Attribute Names |
|
Action - Send Visitor Data to Topic
Parameters
Parameter | Description |
---|---|
Project Topic |
|
Message Attributes |
|
Include Current Visit Data |
|
Print Attribute Names |
|
Action - Send Customized Data to Topic (Advanced)
Parameters
Parameter | Description |
---|---|
Project Topic |
|
Message Attributes |
|
Custom Message Definition |
|
Template Variables |
|
Templates |
|
Vendor Documentation
This page was last updated: October 27, 2022