Me, three. I'm no stranger to hound dogging the documentation, but I'm also under a deadline. Call me Grateful if anyone out there has answers they're willing to share. My context is I'm building a php-mysql-javascript enhancement to a client's site that will show a GA dashboard for various other customer sites. I've got a basic dashboard up (using the GA EZ Dashboard library), but have identified very few pairs of dimensions and metrics that I'm able to get to work.
The Core Reporting API documentation states "You can
not send a query composed only of
dimensions: you must combine any requested dimensions with at
least one metric." As I look through the listed available dimensions, many of them have "none" listed in the Metrics column. Does this mean they are unavailable for use at this time? I tried sending a query with just multiple dimensions but so far, no success. An example would be a pie chart of a region broken down by city. Perhaps I've missed something obvious in the documentation?
An excerpt from the EZ Dashboard JavaScript lib that I'm trying to use, and how I've loaded it, is below:
<div id='chart-7'>
<script>
var chart7 = new gadash.Chart({
'type': 'PieChart',
'divContainer': 'chart-7',
'last-n-days':14,
'query': {
'ids': TABLE_ID,
'dimensions': 'ga:region', 'ga:city'
},
'chartOptions': {
height:200,
width: 200,
title: 'Cities'
}
}).render();
</script>
</div>
When I run this, the div area just shows up empty. Any insights appreciated.
-Jeff