使用Google analytics和php按页面获取唯一的查看器

使用Google analytics和php按页面获取唯一的查看器,php,google-analytics,Php,Google Analytics,我正在尝试通过url获取我的访问者。我可以用PHP来做吗? 我正在搜索与此相关的文档,但似乎没有文档可以做这种事情 例如: www.helloworld.com/users/adamramadhan=>拥有1082页的独特页面视图 我该怎么做? 谢谢你的光临。 Adam Ramadhan您只需要请求pagePath维度和uniquePageviews度量。您给出的链接示例中的行是: $ga->requestReportData(145141242,array('pagePath'),arr

我正在尝试通过url获取我的访问者。我可以用PHP来做吗? 我正在搜索与此相关的文档,但似乎没有文档可以做这种事情

例如:

www.helloworld.com/users/adamramadhan=>拥有1082页的独特页面视图

我该怎么做? 谢谢你的光临。
Adam Ramadhan

您只需要请求
pagePath
维度和
uniquePageviews
度量。您给出的链接示例中的行是:

$ga->requestReportData(145141242,array('pagePath'),array('uniquePageviews'));
有关可用维度和指标的完整列表,请访问