Le misurazioni quantitative di un report. Ad esempio, la metrica eventCount è il numero totale di eventi. Per le richieste sono consentite fino a 10 metriche.
Il nome della metrica. Consulta Metriche API per l'elenco dei nomi delle metriche.
Se expression è specificato, name può essere qualsiasi stringa tu voglia. Ad esempio, se expression è screenPageViews/sessions, puoi chiamare questa metrica per il nome = viewsPerSession.
Le metriche fanno riferimento da name in metricFilter, orderBys e nella metrica expression.
expression
string
Un'espressione matematica per le metriche derivate. Ad esempio, la metrica Conteggio eventi per utente è eventCount/totalUsers.
invisible
boolean
Indica se una metrica è invisibile nella risposta del report. Se una metrica non è visibile, non genera una colonna nella risposta, ma può essere utilizzata in metricFilter, orderBys o in una metrica expression.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-26 UTC."],[],["The document defines report metrics, which are quantitative measurements like `eventCount`. Reports can include up to 10 metrics. Each metric has a `name` (string), which can be custom if an `expression` (a mathematical string) is used for derived metrics. An `invisible` boolean property can hide a metric from the report's columns while still allowing its use in filters, ordering, or other expressions.\n"]]