Use case

Product analytics,
straight from MongoDB

If your app already writes events to MongoDB, you don't need a separate analytics tool to answer most product questions. Ask wuup for active users, funnels or adoption in plain English and get a chart built from the aggregation it ran on your events collection.

Who it's for

Product managers and founders whose app writes events to MongoDB

Sources

  • MongoDB events collection
  • MongoDB users collection

The problem today

  • Every product question becomes a ticket for an engineer to write an aggregation.
  • Analytics tools need extra tracking code and still miss the events you store yourself.
  • Dashboards answer last quarter's questions, not today's.

Six questions,
and what wuup does

Ask in plain English. Here is what happens behind each answer, including the query when there is one.

  1. 01

    How many daily active users did we have in October?

    Filters October events, collects distinct userIds per day and counts them.

    db.events.aggregate([
      {
        $match: {
          ts: {
            $gte: ISODate("2026-10-01T00:00:00Z"),
            $lt: ISODate("2026-11-01T00:00:00Z")
          }
        }
      },
      {
        $group: {
          _id: { $dateToString: { format: "%Y-%m-%d", date: "$ts" } },
          users: { $addToSet: "$userId" }
        }
      },
      { $project: { _id: 0, day: "$_id", activeUsers: { $size: "$users" } } },
      { $sort: { day: 1 } }
    ])
  2. 02

    What does the funnel from page view to purchase look like?

    Counts unique users at each funnel step and charts them as a funnel.

    db.events.aggregate([
      { $match: { event: { $in: ["page_view", "add_to_cart", "purchase"] } } },
      { $group: { _id: "$event", users: { $addToSet: "$userId" } } },
      { $project: { _id: 0, step: "$_id", users: { $size: "$users" } } },
      { $sort: { users: -1 } }
    ])
  3. 03

    Where do signups come from?

    Groups signup events by the referrer stored in event properties.

    db.events.aggregate([
      { $match: { event: "signup" } },
      { $group: { _id: "$properties.referrer", signups: { $sum: 1 } } },
      { $sort: { signups: -1 } }
    ])
  4. 04

    What share of sessions are on mobile?

    Counts distinct sessions per device, then wuup works out the percentages in the answer.

    db.events.aggregate([
      { $group: { _id: "$device", sessions: { $addToSet: "$sessionId" } } },
      {
        $project: { _id: 0, device: "$_id", sessions: { $size: "$sessions" } }
      }
    ])
  5. 05

    Which pages get the most views?

    Uses $sortByCount on page for page_view events and returns the top 10.

    db.events.aggregate([
      { $match: { event: "page_view" } },
      { $sortByCount: "$page" },
      { $limit: 10 }
    ])
  6. 06

    Which users were active in the last 7 days?

    Uses $$NOW for a rolling window and joins to customers for names.

    db.events.aggregate([
      {
        $match: {
          $expr: {
            $gte: [
              "$ts",
              { $dateSubtract: { startDate: "$$NOW", unit: "day", amount: 7 } }
            ]
          }
        }
      },
      { $group: { _id: "$userId", events: { $sum: 1 } } },
      {
        $lookup: {
          from: "customers",
          localField: "_id",
          foreignField: "_id",
          as: "user"
        }
      },
      { $project: { _id: 0, name: { $first: "$user.name" }, events: 1 } },
      { $sort: { events: -1 } }
    ])

From question
to answer

  1. 1

    Connect read-only

    Point wuup at the database with your events and users collections.

  2. 2

    Ask the product question

    "How many users added to cart and then purchased this week?"

  3. 3

    Check the pipeline

    Open the query used to see exactly how users were counted.

Why it works
for this job

Charts from real rows

Every DAU line or funnel bar comes from documents the aggregation returned.

The pipeline is right there

Open "queries used" to see how a user or session was counted, and reuse it.

Clarifies vague metrics

"Active" can mean many things. wuup asks which event counts before it guesses.

What changes

  • Answer product questions in minutes instead of waiting for an engineer.
  • Keep one source of truth: the events you already store.
  • Learn aggregation patterns by reading the pipelines wuup writes.
How the connector works

Questions,
answered

Bring the data.
Ask the question.