Google analytics API list out eventLabels -
im trying learn google analytics + oauth2.
the documentation confusing, figured i'd go ask help.
i want list out event labels ordered visits.
$results = $analytics->data_ga->get($analytics_id, $from, $today, 'ga:visits', array( 'dimensions' => 'ga:source', 'sort' => '-ga:visits', 'filters' => 'ga:medium==organic', 'max-results' => '100')); foreach($results $key => $value) { echo $results['totalsforallresults']['ga:visits']; echo "<br />"; }
i can list out visits far:/ advice appreciated!
here's sample query explorer report should there. replace variables in code above rows in textboxes:
Comments
Post a Comment