我尝试使用PHP从Google Analytics API导入反向链接。我尝试过使用Analytics API,但找不到正确的数据。 在搜索控制台中,我可以找到指向我页面的所有链接,但是从Google Analytics:FullReferrer,我只获得其他人点击的链接来到我的页面。它根本不是同一个列表。
我尝试了https://ga-dev-tools.appspot.com/query-explorer/,找不到正确的列表。我看错了地方吗? Google Search Console还有其他API吗?
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中的列表"链接到您的页面"。
非常感谢任何帮助 - 谢谢。
答案 0 :(得分:0)
来自Google Analytics:FullReferrer,我只获得其他人拥有的链接 点击进入我的页面
Google Analytics仅记录与您网页的互动,因此这是设计使然。搜索控制台也有一个API,但是judging from the documentation这不会为您提供引荐信息。