1
我試圖從PHP導入谷歌分析API反向鏈接。我曾嘗試使用Analytics API,但找不到正確的數據。 在搜索控制檯中,我可以找到到我的頁面的所有鏈接,但是來自Analytics ga:FullReferrer,我只獲得其他人點擊的鏈接來到我的頁面。這完全不一樣。我試過https://ga-dev-tools.appspot.com/query-explorer/並找不到正確的列表。我看錯了地方嗎? Google Search Console是否還有其他API?從PHP谷歌分析導入反向鏈接
function getResults($analytics, $profileId) {
$optParams = array(
'dimensions' => 'ga:fullReferrer, ga:source',
'max-results' => '50000');
return $analytics->data_ga->get(
'ga:' . $profileId,
'2005-01-01',
'today',
'ga:sessions', $optParams);
}
返回人們點擊的鏈接。但我希望Google Search Console中的列表「鏈接到您的網頁」。
任何幫助非常感謝 - 謝謝。