Google Analytics 4
Google Analytics 4 is an analytics service that enables you to measure traffic and engagement across your websites and apps. You can use Google Analytics 4 custom reports as a data source when landing or replicating data.
-
有关连接 SaaS 应用程序的更多信息,请参阅连接到 SaaS 应用程序。
-
有关 Lite 连接器的更多信息,请参阅 连接器分类。
-
根据您的用例,您可能需要安装 数据移动网关 才能从 SaaS 应用程序中移动数据。有关更多信息,请参阅什么时候需要 数据移动网关?。
Preparing for authentication
To access your Google Analytics 4 custom reports, you need to authenticate the connection with your account credentials.
-
Go to https://console.cloud.google.com/apis/library/analytics.googleapis.com and click Enable.
-
Go to https://console.developers.google.com/apis/api/analyticsdata.googleapis.com/overview and click Enable.
-
Go to https://console.developers.google.com/apis/api/analyticsreporting.googleapis.com/overview and click Enable.
-
Click Credentials.
-
Click Create credentials.
-
Click OAuth client ID, and select Web application.
-
Add https://connector.qlik.com/auth/oauth/v3.htm as an Authorized redirect URI.
-
Click Create.
You can now see Client ID and Client Secret that you need to copy to the connection settings.
Custom reports
You can use up to ten Google Analytics 4 custom reports.
-
Go to https://ga-dev-tools.web.app/query-explorer, and make sure it is set to GA4.
-
Select your metrics and dimensions.
-
Click the copy icon next to Request JSON at the bottom of the page to copy the value.
警告注释Do not try to copy any other way than using the copy icon. -
Paste the copied text to a custom report field in the connection.
Creating the connection
有关更多信息,请参阅连接到 SaaS 应用程序。
-
填写完所需的连接设置后,单击身份验证。
您可能会被要求登录源应用程序。
将显示一个带有身份验证代码的窗口。
-
将代码复制到剪贴板,然后返回到连接对话框。
-
粘贴使用源提供的代码完成身份验证中的代码,然后单击验证。
提示注释您可能需要向下滚动才能查看此字段。在状态为已验证时,身份验证即得到验证。
-
在连接名称中提供连接的名称。
-
选择打开连接元数据以定义创建连接时的元数据。
| Setting | Description |
|---|---|
| Data gateway |
如果您的用例需要,请选择一个 数据移动网关。 信息注释
此字段不适用于 Qlik Talend Cloud Starter 订阅,因为它不支持 数据移动网关。如果您有另一个订阅层并且不想使用 数据移动网关,请选择无。 有关 数据移动网关 的优势和需要它的用例的信息,请参阅Qlik 数据网关 - 数据移动。 |
| Client ID | Client ID for Google Analytics GA4 OAuth authentication. |
| Client Secret |
Client secret for Google Analytics GA4 OAuth authentication. |
| Custom Report One |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Two |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Three |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Four |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Five |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Six |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Seven |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Eight |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Nine |
Custom report JSON. For more information, see Custom reports. |
| Custom Report Ten |
Custom report JSON. For more information, see Custom reports. |
| Start Date |
Start date in the format Example: 2020-10-01 信息注释Start and end dates from the report are not used.
|
| Property ID |
Google Analytics 4 property identifier. For more information, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id. |