is it possible to show the total results from a query in google analytics embed? By all, I mean not just the past X days but all results since it started recording.
var dataChart1 = new gapi.analytics.googleCharts.DataChart({
query: {
'ids': 'ga:xxxxxx',
'start-date': '7daysAgo',
'end-date': 'today',
'metrics' : 'ga:uniqueEvents,ga:totalEvents,ga:users,ga:newUsers',
'dimensions' : '<?php echo $dimensions; ?>',
'filters' : '<?php echo $filter; ?>'
},
chart: {
'container': 'chart-1-container',
'type': 'TABLE',
'options': {
'width': '100%'
}
}
});
dataChart1.execute();
dataChart1.on('success', function(result) {
jQuery('#totals').text(result.response.totalsForAllResults['ga:totalEvents']+' total clicks');
});
But I think this only return the total of the results on the current query not all the result.