# Analytics tracking plan for a farming game

> A tracking plan for a farming sim: in-game days and seasons, harvests, tasks, friendships, money and co-op farms, with KPIs, a dashboard, code and a CSV.

Canonical URL: https://manalens.dev/tracking-plans/farming

A farming plan follows the calendar: day_end with day, season and money, season_start, crop_harvested, task_completed, relationship_change, farm_loaded with party size, and resource for coins. On Steam, 62.6% of Stardew Valley players earned 15,000g and 22.8% restored the Community Center (read 24 November 2026). Seasons reached show where players stop.

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 farming game?

1. Plant, water and tend crops each in-game day.
2. Harvest, sell and earn money.
3. Spend on tools, buildings and gifts for neighbors.
4. Move through the seasons and years with a bigger farm.

Progress runs on the game's own calendar, so day_end and season_start are the spine of the plan. A farm can belong to several players, so farm_loaded carries farm_id, party_size and is_host when a save loads. Farm work is frequent: send task_completed by task type, and crop_harvested once per crop per day, with the quantity.

## Which events should a farming game send?

Send these 7 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.

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

| Event | When | Properties | Question it answers |
| --- | --- | --- | --- |
| `farm_loaded` | A save loads, alone or with friends. | `farm_id` (string, e.g. f_2b71) `party_size` (number, e.g. 2) `is_host` (boolean, e.g. true) `day` (number, e.g. 28) `season` (string, e.g. spring) | Who plays solo, who plays with friends? |
| `day_end` | An in-game day ends. | `farm_id` (string, e.g. f_2b71) `day` (number, e.g. 28) `season` (string, e.g. spring) `year` (number, e.g. 1) `money` (number, e.g. 3400) | How far do players get, and does money flow? |
| `season_start` | A new season starts. | `farm_id` (string, e.g. f_2b71) `season` (string, e.g. summer) `year` (number, e.g. 1) | In which season do players stop? |
| `crop_harvested` | The player harvests a crop, once per crop per day. | `crop` (string, e.g. parsnip) `quantity` (number, e.g. 15) `day` (number, e.g. 5) | How fast does the first reward come? |
| `task_completed` | The player finishes a daily task type, once per type per day. | `task` (string, e.g. water) `day` (number, e.g. 5) `count` (number, e.g. 40) | Which days feel like chores? |
| `relationship_change` | A neighbor's friendship level changes. | `npc` (string, e.g. abigail) `hearts` (number, e.g. 5) | Do players engage with the town? |
| `resource` | The player earns (source) or spends (sink) coins on something that matters, such as seeds or a building. | `flow` (string, e.g. source) `currency` (string, e.g. coins) `amount` (number, e.g. 450) `item` (string, e.g. parsnip) | Does the economy have a wall or a flood? |

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 farming game?

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

| KPI | How to compute it | Why it matters |
| --- | --- | --- |
| Seasons reached | Players with season_start, by year and season | Finds the season where players stop. |
| Time to first harvest | Play time from the first session_start to the first crop_harvested | Shows how fast the loop pays off, inside Steam's two-hour refund window. |
| D7 and D30 retention | The Game KPIs board, from game_open and session_start | A farming game is built for weeks of play. |
| Money at the end of each season | Median money of the last day_end of each season | Shows whether the economy stalls. |
| Co-op farms | Farms with party_size above 1 in farm_loaded, divided by all farms | Shows whether friends keep a farm alive. |

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 farming dashboard show?

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

| Chart | Kind | Built from | Question |
| --- | --- | --- | --- |
| Players per season | SQL bar | season_start by year and season | Which season loses players? |
| First week funnel | Funnel | game_open, crop_harvested, relationship_change, season_start | Do new players harvest and meet the town? |
| Coin sources and sinks | SQL bar | resource by currency and flow | Do coins pile up or run out? |
| Install cohorts | Retention | Entry game_open, return session_start | Do players come back for weeks? |
| Daily tasks | SQL table | task_completed by task, average count per day | Which task is a chore? |

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: Players per season. How many players reach each season of each year?

```
SELECT JSONExtractInt(properties,'year') AS year, JSONExtractString(properties,'season') AS season, uniqExact(anonymous_id) AS players FROM raw_events WHERE event = 'season_start' 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 year, season ORDER BY year, indexOf(['spring', 'summer', 'fall', 'winter'], season) LIMIT 50
```

## What do public numbers show for farming games?

Stardew Valley shows the long tail of a farming game: most players earn their first 15,000g, fewer upgrade the house, and about one in five restores the Community Center, the main long-term goal.

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 |
| --- | --- | --- | --- |
| Stardew Valley | Greenhorn | Earn 15,000g | 62.6% |
| Stardew Valley | Moving Up | Upgrade your house | 42.7% |
| Stardew Valley | A New Friend | Reach a 5-heart friend level with someone | 40.4% |
| Stardew Valley | Monoculture | Ship 300 of one crop | 33.3% |
| Stardew Valley | Local Legend | Restore the Pelican Town Community Center | 22.8% |

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.

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

1,355 games released on Steam from 2022 to 2025 have Life Sim in their top 7 tags. 37.9% of them had 50 or more reviews on 18 November 2026, and the median game had 24. The median price was $6.99. [See the Life Sim benchmarks](https://manalens.dev/steam/genres/life-sim).

## How do I send the farming 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 farming events. Call each one where the moment happens in your game code.
public static class GenreEvents
{
    public static void Examples()
    {
        Manalens.Track("farm_loaded", new Dictionary<string, object> { ["farm_id"] = "f_2b71", ["party_size"] = 2, ["is_host"] = true, ["day"] = 28, ["season"] = "spring" });
        Manalens.Track("day_end", new Dictionary<string, object> { ["farm_id"] = "f_2b71", ["day"] = 28, ["season"] = "spring", ["year"] = 1, ["money"] = 3400 });
        Manalens.Track("season_start", new Dictionary<string, object> { ["farm_id"] = "f_2b71", ["season"] = "summer", ["year"] = 1 });
        Manalens.Track("crop_harvested", new Dictionary<string, object> { ["crop"] = "parsnip", ["quantity"] = 15, ["day"] = 5 });
        Manalens.Track("task_completed", new Dictionary<string, object> { ["task"] = "water", ["day"] = 5, ["count"] = 40 });
        Manalens.Track("relationship_change", new Dictionary<string, object> { ["npc"] = "abigail", ["hearts"] = 5 });
        Manalens.Track("resource", new Dictionary<string, object> { ["flow"] = "source", ["currency"] = "coins", ["amount"] = 450, ["item"] = "parsnip" });
    }
}
```

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 farming events. Call each one where the moment happens in your game code.
func _track_examples() -> void:
    Manalens.track("farm_loaded", {"farm_id": "f_2b71", "party_size": 2, "is_host": true, "day": 28, "season": "spring"})
    Manalens.track("day_end", {"farm_id": "f_2b71", "day": 28, "season": "spring", "year": 1, "money": 3400})
    Manalens.track("season_start", {"farm_id": "f_2b71", "season": "summer", "year": 1})
    Manalens.track("crop_harvested", {"crop": "parsnip", "quantity": 15, "day": 5})
    Manalens.track("task_completed", {"task": "water", "day": 5, "count": 40})
    Manalens.track("relationship_change", {"npc": "abigail", "hearts": 5})
    Manalens.track("resource", {"flow": "source", "currency": "coins", "amount": 450, "item": "parsnip"})
```

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 farming events:
analytics.track('farm_loaded', { farm_id: 'f_2b71', party_size: 2, is_host: true, day: 28, season: 'spring' });
analytics.track('day_end', { farm_id: 'f_2b71', day: 28, season: 'spring', year: 1, money: 3400 });
analytics.track('season_start', { farm_id: 'f_2b71', season: 'summer', year: 1 });
analytics.track('crop_harvested', { crop: 'parsnip', quantity: 15, day: 5 });
analytics.track('task_completed', { task: 'water', day: 5, count: 40 });
analytics.track('relationship_change', { npc: 'abigail', hearts: 5 });
analytics.track('resource', { flow: 'source', currency: 'coins', amount: 450, item: 'parsnip' });
```

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": "day_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": {"farm_id":"f_2b71","day":28,"season":"spring","year":1,"money":3400}
    }]
  }'
# {"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 7 farming events, in the format of the [Game tracking plan generator](https://manalens.dev/tools/game-tracking-plan-generator).

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

## What should I leave out?

- One event per watering can use or seed planted. Count them in task_completed.
- Gift or chat text. Send the npc and the hearts, not what the player wrote.
- Real-time clocks only. Send the in-game day and season, or you cannot find the season where players stop.

## Frequently asked questions

**Why does a farming plan use in-game days?**

Because real days show whether a player came back, but in-game days show how far they got. A player who plays ten real days and stays in the first season may be stuck. Send day_end with the day, season and year, and season_start, then chart players per season.

**How do I keep farm events from piling up?**

Send work by type and day, not per action. task_completed once per task type per day with a count, and crop_harvested once per crop per day with the quantity. A day of farming then sends a handful of events, not hundreds, and the questions stay answerable.

**How many Stardew Valley players restored the Community Center?**

On Steam, read on 24 November 2026, 22.8% of Stardew Valley players had Local Legend, for restoring the Community Center, and 62.6% had earned 15,000g. 40.4% had reached five hearts with a neighbor. These are shares of players since release.

**How do I track co-op farms?**

Send farm_loaded when a save loads, with farm_id, party_size and is_host. The same farm_id on every player of a shared farm lets you count co-op farms and read retention per farm as well as per player. If farms end when the host stops, guests lose their farm too.

## Related guides and tools

- [Farming sim metrics: long-term retention, days played, seasons and co-op](https://manalens.dev/blog/farming-sim-player-metrics)
- [Farming sims on Steam: market data for developers (2022 to 2025)](https://manalens.dev/blog/farming-sim-steam-market-data)
- [Who plays cozy games and when: session length and retention for calm games](https://manalens.dev/blog/cozy-game-player-retention)
- [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: Stardew Valley global achievements (Valve, read 24 November 2026)](https://steamcommunity.com/stats/413150/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.
