apps-script-samples
apps-script-samples copied to clipboard
Analytics Data Service
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');
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...