开发者

get unique viewers by page using Google analytics with php

I'm trying to get my visitor by url. Can I do that using PHP? I'm searching docs related to this http://code.google.com/p/gapi-google-analytics-php-interface/, but it seems that there is no docs to do this kind of things.

Example:

www.helloworld.com/users/adamramadhan => have 1082 page unique page view.

How 开发者_如何学编程can I do that? Thanks for looking in. Adam Ramadhan


You just need to request the pagePath dimension and uniquePageviews metric. The line from the example on the link you gave would be:

$ga->requestReportData(145141242,array('pagePath'),array('uniquePageviews'));

A complete list of available dimensions and metrics is available at http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜