From 73ee5049b38efd4e506423e3580ff5fed9d3ecaf Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Mon, 28 Oct 2024 17:00:42 -0400 Subject: [PATCH] [Feature] Convert demograhpics reports to be by users instead of sessions --- reports/usa.json | 1270 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 1006 insertions(+), 264 deletions(-) diff --git a/reports/usa.json b/reports/usa.json index ab17fb6..7a579c8 100644 --- a/reports/usa.json +++ b/reports/usa.json @@ -25,6 +25,9 @@ ], "query": { "dimensions": [ + { + "name": "date" + }, { "name": "screenResolution" } @@ -59,7 +62,29 @@ "filter": { "fieldName": "screenResolution", "stringFilter": { - "value": "other", + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "screenResolution", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "screenResolution", + "stringFilter": { + "value": "(not set)", "caseSensitive": false } } @@ -69,6 +94,12 @@ } }, "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, { "metric": { "metricName": "totalUsers" @@ -125,7 +156,29 @@ "filter": { "fieldName": "screenResolution", "stringFilter": { - "value": "other", + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "screenResolution", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "screenResolution", + "stringFilter": { + "value": "(not set)", "caseSensitive": false } } @@ -135,6 +188,12 @@ } }, "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, { "metric": { "metricName": "totalUsers" @@ -152,12 +211,15 @@ "name": "language", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ + "sumUsersByColumns": [ "language", "language_code" ], "query": { "dimensions": [ + { + "name": "date" + }, { "name": "language" }, @@ -167,9 +229,103 @@ ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "language", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "language", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "language", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "language", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "languageCode", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "languageCode", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "languageCode", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "languageCode", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, "dateRanges": [ { "startDate": "90daysAgo", @@ -179,7 +335,13 @@ "orderBys": [ { "dimension": { - "dimensionName": "sessions" + "dimensionName": "date" + }, + "desc": true + }, + { + "metric": { + "metricName": "totalUsers" }, "desc": true } @@ -187,14 +349,14 @@ }, "meta": { "name": "Browser Language", - "description": "90 days of visits by browser language for all sites." + "description": "90 days of browser language demographics by user for all sites." } }, { "name": "devices", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ + "sumUsersByColumns": [ "device" ], "query": { @@ -208,7 +370,7 @@ ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], "dimensionFilter": { @@ -224,6 +386,39 @@ } } } + }, + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } } ] } @@ -240,61 +435,26 @@ "dimensionName": "date" }, "desc": true - } - ] - }, - "meta": { - "name": "Devices", - "description": "30 days of desktop/mobile/tablet visits for all sites." - } - }, - { - "name": "devices-90-days", - "frequency": "daily", - "slim": true, - "sumVisitsByColumns": [ - "device" - ], - "query": { - "dimensions": [ - { - "name": "date" }, { - "name": "deviceCategory" - } - ], - "metrics": [ - { - "name": "sessions" - } - ], - "dateRanges": [ - { - "startDate": "90daysAgo", - "endDate": "yesterday" - } - ], - "orderBys": [ - { - "dimension": { - "dimensionName": "date" + "metric": { + "metricName": "totalUsers" }, "desc": true } ] }, "meta": { - "name": "Devices - 90 days", - "description": "90 days of desktop/mobile/tablet visits for all sites." + "name": "Devices", + "description": "30 days of desktop/mobile/tablet demographics by user for all sites." } }, { - "name": "device-model", + "name": "devices-90-days", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ - "mobile_device" + "sumUsersByColumns": [ + "device" ], "query": { "dimensions": [ @@ -302,18 +462,165 @@ "name": "date" }, { - "name": "mobileDeviceModel" + "name": "deviceCategory" } ], "metrics": [ { - "name": "sessions" - } - ], - "dateRanges": [ - { - "startDate": "90daysAgo", - "endDate": "yesterday" + "name": "totalUsers" + } + ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "deviceCategory", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, + "dateRanges": [ + { + "startDate": "90daysAgo", + "endDate": "yesterday" + } + ], + "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, + { + "metric": { + "metricName": "totalUsers" + }, + "desc": true + } + ] + }, + "meta": { + "name": "Devices - 90 days", + "description": "90 days of desktop/mobile/tablet demographics by user for all sites." + } + }, + { + "name": "device-model", + "frequency": "daily", + "slim": true, + "sumUsersByColumns": [ + "mobile_device" + ], + "query": { + "dimensions": [ + { + "name": "date" + }, + { + "name": "mobileDeviceModel" + } + ], + "metrics": [ + { + "name": "totalUsers" + } + ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "mobileDeviceModel", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "mobileDeviceModel", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "mobileDeviceModel", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "mobileDeviceModel", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, + "dateRanges": [ + { + "startDate": "90daysAgo", + "endDate": "yesterday" } ], "orderBys": [ @@ -322,19 +629,25 @@ "dimensionName": "date" }, "desc": true + }, + { + "metric": { + "metricName": "totalUsers" + }, + "desc": true } ] }, "meta": { "name": "Device Model", - "description": "90 days of visits by Device Model for all sites." + "description": "90 days of mobile device model demographics by user for all sites." } }, { "name": "os", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ + "sumUsersByColumns": [ "os" ], "query": { @@ -348,9 +661,59 @@ ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, "dateRanges": [ { "startDate": "30daysAgo", @@ -363,19 +726,25 @@ "dimensionName": "date" }, "desc": true + }, + { + "metric": { + "metricName": "totalUsers" + }, + "desc": true } ] }, "meta": { "name": "Operating Systems", - "description": "30 days of visits, broken down by operating system and date, for all sites." + "description": "30 days of operating system demographics by user for all sites." } }, { "name": "os-90-days", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ + "sumUsersByColumns": [ "os" ], "query": { @@ -389,9 +758,59 @@ ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, "dateRanges": [ { "startDate": "90daysAgo", @@ -404,19 +823,25 @@ "dimensionName": "date" }, "desc": true + }, + { + "metric": { + "metricName": "totalUsers" + }, + "desc": true } ] }, "meta": { "name": "Operating Systems - 90 Days", - "description": "90 days of visits, broken down by operating system and date, for all sites." + "description": "90 days of operating system demographics by user for all sites." } }, { "name": "windows", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ + "sumUsersByColumns": [ "os_version" ], "query": { @@ -430,9 +855,17 @@ ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "Windows" + } + } + }, "dateRanges": [ { "startDate": "30daysAgo", @@ -440,12 +873,45 @@ } ], "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, { "metric": { - "metricName": "sessions" + "metricName": "totalUsers" }, "desc": true } + ] + }, + "meta": { + "name": "Windows", + "description": "30 days of Windows users, broken down by operating system version and date, for all sites." + } + }, + { + "name": "windows-90-days", + "frequency": "daily", + "slim": true, + "sumUsersByColumns": [ + "os_version" + ], + "query": { + "dimensions": [ + { + "name": "date" + }, + { + "name": "operatingSystemVersion" + } + ], + "metrics": [ + { + "name": "totalUsers" + } ], "dimensionFilter": { "filter": { @@ -454,19 +920,136 @@ "value": "Windows" } } - } + }, + "dateRanges": [ + { + "startDate": "90daysAgo", + "endDate": "yesterday" + } + ], + "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, + { + "metric": { + "metricName": "totalUsers" + }, + "desc": true + } + ] }, "meta": { - "name": "Windows", - "description": "30 days of visits from Windows users, broken down by operating system version and date, for all sites." + "name": "Windows - 90 days", + "description": "90 days of Windows users, broken down by operating system version and date, for all sites." + } + }, + { + "name": "browsers", + "frequency": "daily", + "slim": true, + "sumUsersByColumns": [ + "browser" + ], + "query": { + "dimensions": [ + { + "name": "date" + }, + { + "name": "browser" + } + ], + "metrics": [ + { + "name": "totalUsers" + } + ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, + "dateRanges": [ + { + "startDate": "30daysAgo", + "endDate": "yesterday" + } + ], + "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, + { + "metric": { + "metricName": "totalUsers" + }, + "desc": true + } + ] + }, + "meta": { + "name": "Browsers", + "description": "30 days of browser demographics by user for all sites." } }, { - "name": "windows-90-days", + "name": "browsers-90-days", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ - "os_version" + "sumUsersByColumns": [ + "browser" ], "query": { "dimensions": [ @@ -474,14 +1057,64 @@ "name": "date" }, { - "name": "operatingSystemVersion" + "name": "browser" } ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, "dateRanges": [ { "startDate": "90daysAgo", @@ -489,34 +1122,29 @@ } ], "orderBys": [ + { + "dimension": { + "dimensionName": "date" + }, + "desc": true + }, { "metric": { - "metricName": "sessions" + "metricName": "totalUsers" }, "desc": true } - ], - "dimensionFilter": { - "filter": { - "fieldName": "operatingSystem", - "stringFilter": { - "value": "Windows" - } - } - } + ] }, "meta": { - "name": "Windows - 90 days", - "description": "90 days of visits from Windows users, broken down by operating system version and date, for all sites." + "name": "Browsers - 90 days", + "description": "90 days of browser demographics by user for all sites." } }, { - "name": "browsers", + "name": "os-browsers", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ - "browser" - ], "query": { "dimensions": [ { @@ -524,16 +1152,113 @@ }, { "name": "browser" + }, + { + "name": "operatingSystem" } ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] + } + }, "dateRanges": [ { - "startDate": "30daysAgo", + "startDate": "90daysAgo", "endDate": "yesterday" } ], @@ -546,24 +1271,21 @@ }, { "metric": { - "metricName": "sessions" + "metricName": "totalUsers" }, "desc": true } ] }, "meta": { - "name": "Browsers", - "description": "30 days of visits broken down by browser for all sites." + "name": "OS-browser combinations", + "description": "90 days of browser and OS demographics by user for all sites." } }, { - "name": "browsers-90-days", + "name": "windows-browsers", "frequency": "daily", "slim": true, - "sumVisitsByColumns": [ - "browser" - ], "query": { "dimensions": [ { @@ -571,13 +1293,74 @@ }, { "name": "browser" + }, + { + "name": "operatingSystemVersion" } ], "metrics": [ { - "name": "sessions" + "name": "totalUsers" } ], + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "browser", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + }, + { + "filter": { + "fieldName": "operatingSystem", + "stringFilter": { + "value": "Windows" + } + } + } + ] + } + }, "dateRanges": [ { "startDate": "90daysAgo", @@ -593,117 +1376,173 @@ }, { "metric": { - "metricName": "sessions" + "metricName": "totalUsers" }, "desc": true } ] }, "meta": { - "name": "Browsers - 90 days", - "description": "90 days of visits broken down by browser for all sites." + "name": "Windows-browser combinations", + "description": "90 days of Windows versions and browser demographics by user for all sites." } }, { - "name": "os-browsers", - "frequency": "daily", - "slim": true, - "query": { - "dimensions": [ - { - "name": "date" - }, - { - "name": "browser" - }, + "name": "top-cities-realtime", + "frequency": "realtime", + "realtime": true, + "query": { + "dimensions": [ { - "name": "operatingSystem" + "name": "city" } ], "metrics": [ { - "name": "sessions" + "name": "activeUsers" } ], - "dateRanges": [ - { - "startDate": "90daysAgo", - "endDate": "yesterday" + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "city", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "city", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "city", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "city", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] } - ], + }, "orderBys": [ - { - "dimension": { - "dimensionName": "date" - }, - "desc": true - }, { "metric": { - "metricName": "sessions" + "metricName": "activeUsers" }, "desc": true } - ] + ], }, "meta": { - "name": "OS-browser combinations", - "description": "90 days of visits broken down by browser and OS for all sites." + "name": "Top Cities (Live)", + "description": "Top cities for active onsite users." } }, { - "name": "windows-browsers", - "frequency": "daily", - "slim": true, + "name": "top-countries-realtime", + "frequency": "realtime", + "realtime": true, "query": { "dimensions": [ { - "name": "date" - }, - { - "name": "browser" - }, - { - "name": "operatingSystemVersion" + "name": "country" } ], "metrics": [ { - "name": "sessions" + "name": "activeUsers" } ], - "dateRanges": [ - { - "startDate": "90daysAgo", - "endDate": "yesterday" + "dimensionFilter": { + "andGroup": { + "expressions": [ + { + "notExpression": { + "filter": { + "fieldName": "country", + "stringFilter": { + "value": "(other)", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "country", + "stringFilter": { + "value": "null", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "country", + "stringFilter": { + "value": "", + "caseSensitive": false + } + } + } + }, + { + "notExpression": { + "filter": { + "fieldName": "country", + "stringFilter": { + "value": "(not set)", + "caseSensitive": false + } + } + } + } + ] } - ], + }, "orderBys": [ - { - "dimension": { - "dimensionName": "date" - }, - "desc": true - }, { "metric": { - "metricName": "sessions" + "metricName": "activeUsers" }, "desc": true } - ], - "dimensionFilter": { - "filter": { - "fieldName": "operatingSystem", - "stringFilter": { - "value": "Windows" - } - } - } + ] }, "meta": { - "name": "Windows-browser combinations", - "description": "90 days of visits broken down by Windows versions and browser for all sites." + "name": "Top Countries (Live)", + "description": "Top countries for active onsite users." } }, { @@ -1784,103 +2623,6 @@ "description": "Count of total users with file download events in the last 30 days." } }, - { - "name": "top-cities-realtime", - "frequency": "realtime", - "realtime": true, - "query": { - "dimensions": [ - { - "name": "city" - } - ], - "metrics": [ - { - "name": "activeUsers" - } - ], - "orderBys": [ - { - "metric": { - "metricName": "activeUsers" - }, - "desc": true - } - ], - "dimensionFilter": { - "andGroup": { - "expressions": [ - { - "notExpression": { - "filter": { - "fieldName": "city", - "stringFilter": { - "value": "(other)", - "caseSensitive": false - } - } - } - }, - { - "notExpression": { - "filter": { - "fieldName": "city", - "stringFilter": { - "value": "null", - "caseSensitive": false - } - } - } - }, - { - "notExpression": { - "filter": { - "fieldName": "city", - "stringFilter": { - "value": "", - "caseSensitive": false - } - } - } - } - ] - } - } - }, - "meta": { - "name": "Top Cities (Live)", - "description": "Top cities for active onsite users." - } - }, - { - "name": "top-countries-realtime", - "frequency": "realtime", - "realtime": true, - "query": { - "dimensions": [ - { - "name": "country" - } - ], - "metrics": [ - { - "name": "activeUsers" - } - ], - "orderBys": [ - { - "metric": { - "metricName": "activeUsers" - }, - "desc": true - } - ] - }, - "meta": { - "name": "Top Countries", - "description": "Top countries for active onsite users." - } - }, { "name": "all-pages-realtime", "frequency": "realtime",