界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

geo-device-segmentation

geo-device-segmentation

【效率与协作】Break down user behaviour by country, city, device category, and OS to understand regional patterns and optimise for your key markets.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: geo-device-segmentation description: "Break down user behaviour by country, city, device category, and OS to understand regional patterns and optimise for your key markets."

Geo and Device Segmentation

Break down user behaviour by country, city, device category, and OS to understand regional patterns and optimise for your key markets.

Correct dimension names

ConceptGA4 API name
Countrycountry
Citycity
Regionregion
Device categorydeviceCategory
Operating systemoperatingSystem
OS versionoperatingSystemVersion
Browserbrowser
Screen resolutionscreenResolution
Languagelanguage

Device category values: desktop, mobile, tablet.

Step 1 — Country breakdown

dimensions: ["country"]
metrics: ["totalUsers", "sessions", "userEngagementDuration",
          "screenPageViewsPerSession", "keyEvents"]
date_range: last 30 days
order_by: totalUsers DESC
limit: 20

Step 2 — Device split

dimensions: ["deviceCategory"]
metrics: ["sessions", "totalUsers", "engagementRate",
          "userEngagementDuration", "bounceRate"]
date_range: last 30 days
order_by: sessions DESC

Step 3 — Country + device cross-tab

Understand device preferences by market:

dimensions: ["country", "deviceCategory"]
metrics: ["sessions", "userEngagementDuration", "bounceRate"]
dimension_filter: country IN [your top 5 countries from Step 1]
date_range: last 30 days
order_by: sessions DESC

Note: combining country + deviceCategory + additional dimensions in one query may exceed GA4's cardinality limit. Keep to 2–3 dimensions max.

Step 4 — Single-country deep dive

For a specific country (e.g. Japan):

dimensions: ["city", "deviceCategory"]
metrics: ["sessions", "totalUsers", "userEngagementDuration", "keyEvents"]
dimension_filter: {
  "filter": {
    "fieldName": "country",
    "stringFilter": {"matchType": "EXACT", "value": "Japan"}
  }
}
date_range: last 30 days
order_by: sessions DESC
limit: 20

Step 5 — Browser and OS (for technical optimisation)

dimensions: ["browser", "operatingSystem", "deviceCategory"]
metrics: ["sessions", "bounceRate", "userEngagementDuration"]
date_range: last 30 days
order_by: sessions DESC
limit: 20

What to report

  • Top 10 countries by users and their engagement quality
  • Mobile vs desktop vs tablet split (sessions and engagement rate)
  • Any country where engagement is significantly below average — flagged for investigation
  • Device preferences by your top 3 markets if they differ meaningfully
我的收藏