exinfinite/gsca
Composer 安装命令:
composer require exinfinite/gsca
包简介
google search console agent
README 文档
README
安裝
composer require exinfinite/gsca
使用
初始化
//需先至google cloud platform申請服務帳戶,並將其加入google search console的資源中 $agent = new \Exinfinite\GSCA\Agent("path of credentials.json", "path of cache dir"); //若為網域資源,則使用sc-domain:site_url $analysis = new Analysis($agent, "site_url"); $start_date = new \DateTime('first day of this month'); $end_date = new \DateTime('last day of this month');
get original data
$analysis->baseData($start_date, $end_date);
成效分析
//group by keyword $analysis->searchWords($start_date, $end_date); //group by page $analysis->pages($start_date, $end_date); //最高曝光的頁面-關鍵字組 $analysis->highImpressionPages($start_date, $end_date, $take = 10); //(高曝光-高點閱率)的頁面-關鍵字組 $analysis->highCtrPages($start_date, $end_date, $take = 10); //(高曝光-低點閱率)的頁面-關鍵字組 $analysis->lowCtrPages($start_date, $end_date, $take = 10);
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-11