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 啟動器 訂閱,因為不支援 資料移動閘道。若您有另一個訂閱層級且不想使用 資料移動閘道,選取無。 如需關於 資料移動閘道 福利的資訊以及需要此項的使用案例,請參閱 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. |