# Analytics tracking plan for a city builder game

> A tracking plan for a city builder: cities, population milestones, monthly budget and happiness, unlocks, bankruptcy and scenarios, with code and a CSV.

Canonical URL: https://manalens.dev/tracking-plans/city-builder

A city builder plan tracks each city by in-game month: city_create, month_end with population, money and happiness, population_milestone, building_unlocked, city_bankrupt and scenario_end. On Steam, 74.2% of Cities: Skylines players created a city and 5.8% reached 100,000 people (read 24 November 2026). Milestones show where cities stall.

Last reviewed 24 Nov 2026 · Event names follow the [Manalens event conventions](https://docs.manalens.dev/sdks/app-events)

## What is the core loop of a city builder game?

1. Zone land and place roads and services.
2. Watch the city grow and its needs change.
3. Balance the budget, happiness and traffic.
4. Unlock new buildings at population milestones and expand.

A city runs on a simulation clock, so events follow game months, not ticks. Send month_end once per in-game month with the city's state, and send events for the moments that change the game: a new population milestone, a new building unlocked, a budget that runs out and a scenario that ends.

## Which events should a city builder game send?

Send these 6 events from your game code, on top of the 6 core events every plan shares. Each event fires at one clear moment, and each answers one question.

*City builder events: when to send each one, its properties with example values, and the question it answers.*

| Event | When | Properties | Question it answers |
| --- | --- | --- | --- |
| `city_create` | The player starts a new city or scenario. | `city_id` (string, e.g. c_9a10) `map` (string, e.g. riverside) `scenario` (string, e.g. sandbox) `difficulty` (string, e.g. normal) | Which maps and modes do players pick? |
| `month_end` | An in-game month ends. | `city_id` (string, e.g. c_9a10) `game_month` (number, e.g. 18) `population` (number, e.g. 12400) `money` (number, e.g. 85000) `happiness` (number, e.g. 72) | How do cities grow, and do budgets hold? |
| `population_milestone` | The city reaches a population milestone for the first time. | `city_id` (string, e.g. c_9a10) `population` (number, e.g. 10000) `game_month` (number, e.g. 16) | How far do cities grow? |
| `building_unlocked` | A new building or service unlocks. | `city_id` (string, e.g. c_9a10) `building` (string, e.g. fire_station) `population` (number, e.g. 2500) | Do unlocks arrive at a good pace? |
| `city_bankrupt` | The city's money falls below zero, or the game ends it for debt. | `city_id` (string, e.g. c_9a10) `game_month` (number, e.g. 9) `population` (number, e.g. 4100) | Where do economies fail? |
| `scenario_end` | A scenario is won, lost or abandoned. | `city_id` (string, e.g. c_9a10) `scenario` (string, e.g. flood_valley) `result` (string, e.g. win) `game_month` (number, e.g. 40) | Which scenarios do players finish? |

The core events: game_open, session_start, session_end, tutorial_step, error, game_updated. The Godot, Unity, and Unreal SDKs send game_open, session_start, session_end and errors for you; the rest you send yourself. Property values are strings, numbers, booleans or null, with at most 50 properties per event. Keep names in snake_case and values in properties, never in event names.

## Which KPIs matter for a city builder game?

*City builder KPIs, how to compute each one from the events, and why it matters.*

| KPI | How to compute it | Why it matters |
| --- | --- | --- |
| Cities per milestone | Distinct city_id per population_milestone value | The growth curve; the step with the largest drop is the wall. |
| Bankruptcy rate | Cities with city_bankrupt, divided by city_create | Shows whether the economy is too tight. |
| Months to first milestone | Median game_month of the first population_milestone | Shows how fast the first reward comes. |
| Happiness at stop | happiness of the last month_end of cities with no new month_end in 14 days | Separates bored players from frustrated ones. |
| Scenario completion | scenario_end with result win, divided by city_create of that scenario | Shows which scenarios players finish. |

From the core events alone, the Game KPIs dashboard template shows D1, D7 and D30 retention, DAU, MAU and session length, and the Game health template shows crash-free sessions, with no setup.

## What should the city builder dashboard show?

*A suggested dashboard for a city builder game: each chart, its kind, what it is built from and the question it answers.*

| Chart | Kind | Built from | Question |
| --- | --- | --- | --- |
| Cities by population milestone | SQL bar | population_milestone by population | Where do cities stop growing? |
| First city funnel | Funnel | game_open, city_create, building_unlocked, population_milestone | Does a new player reach the first unlock? |
| Budget health | SQL line | Median money of month_end, by game_month | When do budgets go negative? |
| Return to a city | Retention | Entry city_create, return session_start | Do players come back to their city? |
| Scenarios | SQL table | scenario_end by scenario and result | Which scenario is too hard? |

A funnel has two to five steps of event names, and a retention chart takes an entry event and a return event. For the first chart, add a SQL chart with this query. It follows the dashboard date range, leaves out bots and server events, and counts each event once.

SQL chart: Cities by population milestone. How many cities reach each milestone, and when?

```
SELECT JSONExtractInt(properties,'population') AS milestone, uniqExact(JSONExtractString(properties,'city_id')) AS cities, uniqExact(anonymous_id) AS players, round(median(JSONExtractInt(properties,'game_month')), 1) AS median_game_month FROM raw_events WHERE event = 'population_milestone' AND type = 'track' AND JSONHas(context,'app') AND channel != 'server' AND anonymous_id != '' AND received_at >= toDateTime({{date_from}}) AND received_at < toDateTime({{date_to}}) + INTERVAL 1 DAY AND JSONExtractString(context,'device') != 'bot' GROUP BY milestone ORDER BY milestone LIMIT 50
```

## What do public numbers show for city builder games?

Cities: Skylines shows the gap between starting a city and growing a large one. Three in four players created a city; one in seventeen reached 100,000 people (our arithmetic). Frostpunk, a scenario city builder, shows a scenario finish rate.

These are shares of players over all the years since release.

*Share of players with each achievement on Steam, read on 24 November 2026.*

| Game | Achievement | What it needs | Share of players |
| --- | --- | --- | --- |
| Cities: Skylines | Pioneer | Create your very first city | 74.2% |
| Cities: Skylines | Power at Your Fingertips | Unlock all city services | 50.5% |
| Cities: Skylines | Rolling in Dough | Earn 15,000 per week | 42.0% |
| Cities: Skylines | Metropolis | Have a population of 100,000 in your city | 5.8% |
| Frostpunk | Leader | Finish the New Home scenario | 41.1% |

Steam shows, for each achievement, the share of the game's players who have it. The shares count every year since release, so they are a public outside view, not a target.

886 games released on Steam from 2022 to 2025 have City Builder in their top 7 tags. 40.6% of them had 50 or more reviews on 18 November 2026, and the median game had 27. The median price was $9.99. [See the City Builder benchmarks](https://manalens.dev/steam/genres/city-builder).

398 games released on Steam from 2022 to 2025 have Colony Sim in their top 7 tags. 48% of them had 50 or more reviews on 18 November 2026, and the median game had 45.5. The median price was $9.99. [See the Colony Sim benchmarks](https://manalens.dev/steam/genres/colony-sim).

## How do I send the city builder events?

Use the Unity, Godot, or Unreal SDK in the game, the web SDK in a browser game, and the HTTP events endpoint for any other engine. All of them use the publishable key, which is safe to ship in a build. The SDKs are available on request during early access; the web SDK is public.

Unity (C#)

```
// Unity 2021.3 or later. Add the package with Window > Package Manager > Add package from tarball.
using System.Collections.Generic;
using UnityEngine;
using ManalensSdk;

public class AnalyticsBootstrap : MonoBehaviour
{
    void Awake()
    {
        // Sends session_start and game_open. Editor runs send build "dev", so you can filter them out.
        Manalens.Init(new ManalensOptions
        {
            PublishableKey = "YOUR_PUBLISHABLE_KEY",
            Endpoint = "https://events.manalens.dev",
            Build = Application.isEditor ? "dev" : "571",
            Storefront = "steam",
        });
    }
}

// The city builder events. Call each one where the moment happens in your game code.
public static class GenreEvents
{
    public static void Examples()
    {
        Manalens.Track("city_create", new Dictionary<string, object> { ["city_id"] = "c_9a10", ["map"] = "riverside", ["scenario"] = "sandbox", ["difficulty"] = "normal" });
        Manalens.Track("month_end", new Dictionary<string, object> { ["city_id"] = "c_9a10", ["game_month"] = 18, ["population"] = 12400, ["money"] = 85000, ["happiness"] = 72 });
        Manalens.Track("population_milestone", new Dictionary<string, object> { ["city_id"] = "c_9a10", ["population"] = 10000, ["game_month"] = 16 });
        Manalens.Track("building_unlocked", new Dictionary<string, object> { ["city_id"] = "c_9a10", ["building"] = "fire_station", ["population"] = 2500 });
        Manalens.Track("city_bankrupt", new Dictionary<string, object> { ["city_id"] = "c_9a10", ["game_month"] = 9, ["population"] = 4100 });
        Manalens.Track("scenario_end", new Dictionary<string, object> { ["city_id"] = "c_9a10", ["scenario"] = "flood_valley", ["result"] = "win", ["game_month"] = 40 });
    }
}
```

Godot 4 (GDScript)

```
# Godot 4. Copy addons/manalens into your project and enable the plugin.
func _ready() -> void:
    # Sends session_start and game_open. Editor runs send build "dev", so you can filter them out.
    Manalens.init({
        "publishable_key": "YOUR_PUBLISHABLE_KEY",
        "endpoint": "https://events.manalens.dev",
        "app_version": "1.4.0",
        "build": "dev" if OS.has_feature("editor") else "571",
        "storefront": "steam",
    })

# The city builder events. Call each one where the moment happens in your game code.
func _track_examples() -> void:
    Manalens.track("city_create", {"city_id": "c_9a10", "map": "riverside", "scenario": "sandbox", "difficulty": "normal"})
    Manalens.track("month_end", {"city_id": "c_9a10", "game_month": 18, "population": 12400, "money": 85000, "happiness": 72})
    Manalens.track("population_milestone", {"city_id": "c_9a10", "population": 10000, "game_month": 16})
    Manalens.track("building_unlocked", {"city_id": "c_9a10", "building": "fire_station", "population": 2500})
    Manalens.track("city_bankrupt", {"city_id": "c_9a10", "game_month": 9, "population": 4100})
    Manalens.track("scenario_end", {"city_id": "c_9a10", "scenario": "flood_valley", "result": "win", "game_month": 40})
```

Web or HTML5 (web SDK)

```
import { createAnalytics } from '@manalens/web';

// A browser game on your project domain or an allowed origin (*.itch.zone by default).
const analytics = createAnalytics({
  publishableKey: 'YOUR_PUBLISHABLE_KEY',
  endpoint: 'https://events.manalens.dev',
  app: { platform: 'web', storefront: 'other', app_version: '1.4.0', build: '571', engine: 'other' },
});

// The web SDK does not send game_open, session_start or session_end for you.
// Send them as in the docs (Browser and Electron games), then the city builder events:
analytics.track('city_create', { city_id: 'c_9a10', map: 'riverside', scenario: 'sandbox', difficulty: 'normal' });
analytics.track('month_end', { city_id: 'c_9a10', game_month: 18, population: 12400, money: 85000, happiness: 72 });
analytics.track('population_milestone', { city_id: 'c_9a10', population: 10000, game_month: 16 });
analytics.track('building_unlocked', { city_id: 'c_9a10', building: 'fire_station', population: 2500 });
analytics.track('city_bankrupt', { city_id: 'c_9a10', game_month: 9, population: 4100 });
analytics.track('scenario_end', { city_id: 'c_9a10', scenario: 'flood_valley', result: 'win', game_month: 40 });
```

Any other engine (HTTP)

```
# Any other engine: POST app events with the publishable key.
# Make a new session_id at game start, after 30 minutes without events, and at 24 hours.
curl -sS https://events.manalens.dev/v0/events \
  -H 'x-publishable-key: YOUR_PUBLISHABLE_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "events": [{
      "type": "track",
      "event": "month_end",
      "channel": "app",
      "version": "0.1.0",
      "message_id": "6a0f8e9c-2c36-4c55-9a43-6a5d0f3c2b11",
      "anonymous_id": "3f0c5c1e-8a8e-4c1b-9d7e-2b1f4e6a9c10",
      "session_id": "1762689600000",
      "original_timestamp": "2026-11-09T10:00:00.000Z",
      "context": {
        "app": { "platform": "windows", "storefront": "steam", "app_version": "1.4.0", "build": "571", "engine": "other" },
        "locale": "en"
      },
      "properties": {"city_id":"c_9a10","game_month":18,"population":12400,"money":85000,"happiness":72}
    }]
  }'
# {"accepted":1,"rejected":0,"errors":[]}
```

## Where can I download the plan?

Download the plan as a CSV with one row per property and six columns: event, property, type, example, when and sent_by. It has the 6 core events and the 6 city builder events, in the format of the [Game tracking plan generator](https://manalens.dev/tools/game-tracking-plan-generator).

- [City builder tracking plan for Unity or Godot (CSV)](https://manalens.dev/data/tracking-plans/city-builder-unity-godot.csv)
- [City builder tracking plan for Web SDK or HTTP (CSV)](https://manalens.dev/data/tracking-plans/city-builder-web-http.csv)

## What should I leave out?

- Simulation ticks. One month_end per in-game month is enough, even at the fastest speed.
- Every road or zone placed. Count them in month_end if you need them.
- Exact money values in event names, such as budget_below_1000. Send the money as a property.

## Frequently asked questions

**How often should a city builder send events?**

Once per in-game month for the state of the city, plus one event for each real change: a milestone, an unlock, a bankruptcy or a scenario end. At fast speed a month can pass in seconds, so check the volume in a test build. Never send an event per tick.

**Which KPI shows where cities stall?**

Cities per population milestone. Count the distinct cities that reach each milestone and look for the step with the largest drop. Then read month_end of the cities that stopped there: low money points to the economy, low happiness to services, and both fine points to missing goals.

**How many Cities: Skylines players reached 100,000 people?**

On Steam, read on 24 November 2026, 5.8% of Cities: Skylines players had Metropolis, for a population of 100,000, while 74.2% had created a first city. These are shares of players since release, so they include people who played once and people who played for years.

**Should I track the budget or the happiness?**

Both, in month_end. Money shows whether the economy works, and happiness shows whether the city meets its people's needs. Read them together in the last month before a player stops. A city that is rich and happy when the player leaves may simply have run out of goals.

## Related guides and tools

- [What events to track first in your game](https://manalens.dev/blog/game-tracking-plan-first-events)
- [Event taxonomy for premium PC games](https://manalens.dev/blog/premium-pc-game-event-taxonomy)
- [D1, D7 and D30 retention benchmarks for PC and indie games](https://manalens.dev/blog/pc-indie-game-retention-benchmarks)
- [Game tracking plan generator](https://manalens.dev/tools/game-tracking-plan-generator)
- [All tracking plans by genre](https://manalens.dev/tracking-plans)

## Sources

- [Steam Community: Cities: Skylines global achievements (Valve, read 24 November 2026)](https://steamcommunity.com/stats/255710/achievements/)
- [Steam Community: Frostpunk global achievements (Valve, read 24 November 2026)](https://steamcommunity.com/stats/323190/achievements/)
- [Manalens documentation: App and game events, event conventions](https://docs.manalens.dev/sdks/app-events)
- [Manalens documentation: Unity SDK](https://docs.manalens.dev/sdks/unity)
- [Manalens documentation: Godot SDK](https://docs.manalens.dev/sdks/godot)
- [Manalens documentation: Web SDK](https://docs.manalens.dev/sdks/web)
- [Manalens documentation: Metrics (Game section)](https://docs.manalens.dev/data/metrics)
- [Manalens documentation: Dashboards](https://docs.manalens.dev/features/dashboards)

Last reviewed 2026-11-24. Achievement shares change as more people play, so read them again on Steam before you quote them.
