Nazwa danych. Listę nazw danych obsługiwanych przez podstawowe metody raportowania, np. runReport i batchRunReports, znajdziesz w sekcji Dane interfejsu API. Listę nazw danych obsługiwanych przez metodę runRealtimeReport znajdziesz w sekcji Dane w czasie rzeczywistym. Listę nazw danych obsługiwanych przez metodę runFunnelReport znajdziesz w sekcji Dane ścieżki.
Jeśli parametr expression jest określony, name może być dowolnym ciągiem znaków z zakresu dozwolonego zestawu. Jeśli np. expression to screenPageViews/sessions, możesz nazwać nazwę tego rodzaju danych = viewsPerSession. Wybierane nazwy danych muszą być zgodne z wyrażeniem regularnym ^[a-zA-Z0-9_]$.
Do danych odwołują się name w metricFilter, orderBys i danych expression.
expression
string
Wyrażenie matematyczne na derywowane dane. Na przykład dane Liczba zdarzeń na użytkownika wynoszą eventCount/totalUsers.
invisible
boolean
Wskazuje, czy dane są niewidoczne w odpowiedzi raportu. Jeśli dane są niewidoczne, nie generują kolumny w odpowiedzi, ale można ich użyć w funkcjach metricFilter, orderBys lub expression.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-10 UTC."],[[["Metrics quantify report data, such as the total events with `eventCount`."],["You can request up to 10 metrics in a report."],["Metrics are defined by `name`, `expression` for calculations, and `invisible` to control visibility."],["`name` can be a standard metric or a custom name when `expression` is used."],["`expression` enables creating calculated metrics like \"Event count per user\" (`eventCount/totalUsers`)."]]],["This document outlines the structure for defining quantitative measurements (metrics) within a report. Each metric has a `name` (a string that can be custom when using an `expression`), an optional `expression` (a mathematical formula to derive the metric), and an `invisible` boolean, the metric can be excluded from the report's output but used for filtering, ordering, or in other metrics' `expression` . Up to 10 metrics are allowed per request.\n"]]