https://ga-dev-tools.appspot.com/embed-api/basic-dashboard/
Need help with the basic implementation of this code
https://ga-dev-tools.appspot.com/embed-api/basic-dashboard/
Need help with the basic implementation of this code
3 div’s provided by google - inserted them in the HTML website landing page where the dashboard is to be displayed.
Am I inserting the right code in the right div or am I going wrong somewhere?
var dataChart = new gapi.analytics.googleCharts.DataChart({
query: {
metrics: ‘ga:sessions’,
dimensions: ‘ga:date’,
‘start-date’: ‘30daysAgo’,
‘end-date’: ‘yesterday’
},
chart: {
container: ‘chart-container’,
type: ‘LINE’,
options: {
width: ‘100%’
}
}
});