Google Analytics Embedded Dashboard Filter -
i want filter data being displayed on google analytics dashboard. have dashboard embedded on wordpress page. of data coming through has dimension value of '(not set)' , want remove data view. here code , have labeled think statement go.
device = new gapi.analytics.googlecharts.datachart({ reporttype: 'ga', query: { 'dimensions': 'ga:devicecategory', 'metrics': 'ga:sessions', 'start-date': startdate, 'end-date':enddate, 'max-results': 6, sort: '-ga:sessions', /* filter code here */ }, chart: { type: 'table', container: devicescont, options: {width: '100%'} } });
does have idea how this?
your filter syntax following
filter: 'ga:devicecategory!=(not set)'
you can test query out using query explorer. , future reference, check out filter syntax documentation on google analytics developer site.
Comments
Post a Comment