我正在嘗試使用 google 的 api v4 獲取個人分析報告analyticsreporting。我有以下幾頁。https://www.example.com/uiqueId1 https://www.example.com/uiqueId2 https://www.example.com/uiqueId3 https://www.example.com/uiqueId4加載的每個頁面我都調用 ga set 方法。例如對于 uiqueId1 頁面,ga('send', 'pageview', uiqueId1);POST https://analyticsreporting.googleapis.com/v4/reports:batchGet現在我正在嘗試使用nodejs 客戶端獲取特定于頁面的數據 。與身體{ "reportRequests": [ { "dateRanges": [ { "endDate": "yesterday", "startDate": "30daysAgo" } ], "viewId": "ga:[viewId]", "metrics": [ { "expression": "ga:uniquePageviews" } ] } ]}這給了我ga:uniquePageviews總體的印象。如何將其傳遞給各個頁面?
如何使用analyticsreporting獲取Google Analytics的頁面特定數據?
慕斯709654
2023-11-12 21:52:09