how to read google analytics api? -
ok lets have return like
0 => object(gapireportentry)[7] private 'metrics' => array 'pageviews' => int 1 'uniquepageviews' => int 1 private 'dimensions' => array 'visitcount' => string '61' (length=2) 'source' => string '(direct)' (length=8) 'city' => string 'jakarta' (length=7) 'pagepath' => string '/netcoid' (length=8) 'date' => string '20110511' (length=8) 1 => object(gapireportentry)[12] private 'metrics' => array 'pageviews' => int 1 'uniquepageviews' => int 1 private 'dimensions' => array 'visitcount' => string '68' (length=2) 'source' => string 'github.com' (length=10) 'city' => string 'jakarta' (length=7) 'pagepath' => string '/netcoid' (length=8) 'date' => string '20110511' (length=8) 2 => object(gapireportentry)[8] private 'metrics' => array 'pageviews' => int 31 'uniquepageviews' => int 1 private 'dimensions' => array 'visitcount' => string '57' (length=2) 'source' => string '(direct)' (length=8) 'city' => string 'jakarta' (length=7) 'pagepath' => string '/netcoid' (length=8) 'date' => string '20110510' (length=8)
i assume can read this,
0 = >
- there 1 page view ( means visitor doenst view page again )
- there 1 uniqpage view
- 61 visitcount ? ok ? ? on day 20110511 there 61 visit count ? /netcod same source ? ( direct ) same city ? there olny 1 uniqpage view? mean?
ok. lets can explain it.
question
1.how can explain going on ? how read ?
2.what diffrence between metrics , dimensions ?
a dimension attribute of you're reporting on. metric statistic relates attribute. example, in report shows pageviews each referral source broken down date, source , date dimensions , pageviews metric.
if you're familiar sql can think of in terms of dimensions being goes in group by
clause while metrics calculations go aggregation functions such sum
.
the extract have ga api showing pageviews
, uniquepageviews
relate each grouping of visitcount
, source
, city
, pagepath
, date
.
Comments
Post a Comment