apps-script-samples icon indicating copy to clipboard operation
apps-script-samples copied to clipboard

Analytics Data Service

Open alexxiroma opened this issue 3 years ago • 2 comments

how can i add new dimension or new metric, help me please

const metric = AnalyticsData.newMetric();
metric.name = 'activeUsers';

const dimension = AnalyticsData.newDimension();
dimension.name = ('platform');

alexxiroma avatar Aug 08 '22 10:08 alexxiroma

Hello,

Please check out the following example script.

ikuleshov avatar Aug 09 '22 00:08 ikuleshov

Hello @ikuleshov

The script example from google you shared does not explain how to add multiple metrics/dimensions. Obviously the OP known about this example script otherwise he wouldn't be able to talk about the AnalyticsData. method...

t3hyx avatar Nov 16 '22 14:11 t3hyx