Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    Back to all articles
    Analytics
    July 21, 2026
    Updated November 24, 2026
    6 min read

    Group Analytics for B2B SaaS: Spot Workspace Expansion

    BillDog Team

    BillDog Team

    Product Growth

    Group analytics attaches each event to a company or workspace as well as to the person who did it, so you can count usage per account. For B2B SaaS expansion, that shows when a workspace as a whole is close to its plan's limit, even if each member is a light user. That is the moment to reach the workspace admin with an upgrade.

    This post is for product and growth teams at B2B SaaS companies whose plans are priced per workspace or per seat. It covers the data model and how to act on it. It doesn't cover sales tooling or account scoring. BillDog publishes it and sells analytics, so the BillDog section describes its own product.

    Why per-user counts hide expansion

    Per-user analytics can't show when an account, rather than a person, has outgrown its plan. That takes account-level analytics.

    An illustrative case: a free plan allows ten document uploads per workspace. Five teammates each upload two documents, so per user nobody looks like a heavy user. Per workspace, the team has used all ten uploads and reached the limit. Only a workspace-level count shows that the account is ready for a paid plan.

    How group analytics tools model accounts

    The idea is the same across tools: you name a group type, such as "company" or "workspace", give each group a key, and link events to it.

    As of November 2026:

    • PostHog lets you create up to 5 group types per project, with unlimited groups in each, and sells group analytics as a paid add-on. Its examples include daily active companies and company churn rate.
    • Mixpanel models groups as group keys such as company and team IDs, available as an add-on on its Growth and Enterprise plans. If a project loses the add-on, group-based analysis stops, and group data is permanently deleted after 45 days.

    Whichever tool you use, decide your group types before you instrument. In BillDog, events captured before you sent a group have no group attached, so a type added later won't cover them automatically.

    Setting it up in BillDog

    In the BillDog analytics SDK (@billdog.io/analytics), associate the user with their workspace once you know it. Events tracked after that carry the group, so you don't tag each event yourself:

    import { analytics } from '@billdog.io/analytics';
    
    analytics.configure({ apiKey: 'bd_public_test_YOUR_KEY' });
    
    // When the user signs in or switches workspace
    analytics.setGroup('workspace', 'ws_8f2c');
    analytics.setGroupProperties('workspace', 'ws_8f2c', {
      plan: 'free',
      upload_limit: 10,
    });
    
    // Events from now on carry the workspace automatically
    analytics.track('document_uploaded', { size_mb: 12 });
    

    The calls shown are from @billdog.io/analytics 1.2.0-beta.1. iOS, Android and React Native have their own group calls; the group analytics guide shows each one.

    A project can define up to five group types of its own. BillDog adds a sixth, the customer's active entitlement, so reports can be broken down by what each customer pays for. It reads only entitlements granted to that customer directly, not ones a member inherits from a BillDog Auth organization, so a member of a paying workspace can show as free. When you measure expansion, carry the workspace plan as a group property, as the example does.

    Group analytics is a metered add-on, billed per identified event with a monthly free allowance, and it bills only from when you turn it on.

    Finding the expansion moment

    Once events carry a workspace, the group becomes a breakdown in reports. Count unique users per workspace to see how many members are active, or count an event per workspace to see how close each account is to a plan limit.

    To act on it, build a cohort of the people to contact. A cohort combines event-frequency rules with person or event property rules. Cohorts are recomputed on a cadence you choose, from manual to realtime, and a cohort can be the audience for a campaign.

    BillDog cohorts match people, not groups, so a cohort can't say "workspaces over their limit" directly. Carry the workspace-level signal onto the person you want to reach: when a workspace hits its limit, set a person property on its admin, for example with analytics.setUserProperty the next time the admin uses the app. Two limits follow: your app has to detect that the workspace reached its limit, and an admin who doesn't come back never gets the property.

    An illustrative cohort: has the person property workspace_at_limit set to true, and the person property role set to admin. Set role when the user signs in, and workspace_at_limit when their workspace reaches the limit.

    // When the admin signs in
    analytics.setUserProperty('role', 'admin');
    
    // Once your app sees the workspace reach its upload limit
    analytics.setUserProperty('workspace_at_limit', true);
    

    Joining account usage with your CRM

    If your sales or success team works from CRM records, you can put workspace usage next to them. BillDog's scheduled warehouse export, which needs a CortX plan, sends raw events and tables such as customers and subscriptions to S3, Google Cloud Storage, Azure Blob or BigQuery, or posts them to an ingest endpoint you run for Snowflake, Redshift or Databricks.

    To join the two, store the same workspace key you pass to setGroup on the CRM account record. The web SDK sends each event's groups inside its properties as a $groups map, and the raw-events export includes each event's properties, so exported events carry that key. Check one export file for it before you build the join.

    For funnel and cohort SQL on raw events, see writing custom funnel and cohort SQL. For mapping event exports into warehouse tables, see mapping event schemas to your warehouse.

    Changelog

    • 24 Nov 2026: Re-checked every claim against @billdog.io/analytics 1.2.0-beta.1 and the current PostHog, Mixpanel and BillDog docs. The CRM section now says where the workspace key appears in exported events, and a FAQ on cohorts versus groups was added. The 17 Nov correction still stands; since then, S3 exports can also use an IAM role that BillDog assumes, so no long-lived key is stored.

    Corrections

    • 17 Nov 2026: This post said S3, GCS and Azure Blob exports arrived "via presigned upload". A presigned URL covers a single object, so it can't serve a schedule. Exports now authenticate with a stored key for S3 and GCS and a container SAS URL for Azure.
    • Same date: The post also quoted a price for a Data Pipelines product that isn't charged today, and showed SDK calls, a database table and a cohort format that don't match the real product. The code example now uses the published SDK's group calls, and the cohort section describes how BillDog cohorts work.

    Sources

    Frequently asked questions

    What is group analytics?

    Group analytics attaches each event to a group, such as a company or workspace, as well as to the user who did it. Reports can then count activity per account, for example counting distinct companies rather than users, instead of only per person.

    Why does group analytics matter for B2B SaaS expansion?

    In B2B SaaS the account pays, but the activity is spread across its members. Per-user counts can show every person as a light user while the workspace as a whole has outgrown its plan. Counting per workspace shows that moment, which is when to reach the admin with an upgrade.

    What is the difference between a cohort and a group?

    A group is an account key, such as a workspace ID, attached to each event so reports can count per account. A cohort in BillDog is a saved rule for which people match, so it lists users, not workspaces. To reach the people in an account, carry the account's signal onto a person property and build the cohort from that.

    How do I find B2B accounts that are ready to expand?

    Count a limited event, such as uploads, per workspace to see how close each account is to its plan limit. When a workspace reaches it, set a person property on its admin, then build a cohort from that property and use it as the audience for an upgrade campaign. Your app has to detect the limit, and an admin who doesn't come back never gets the property.

    How do I add group analytics in BillDog?

    In the web SDK, call setGroup with a group type and key when you know the user's workspace, and setGroupProperties for attributes such as plan. Later events carry the group automatically. Group analytics is a metered add-on billed per identified event, and a project can define up to five group types.

    Topics: #B2BSaaS#GroupAnalytics#ProductAnalytics#SaaSGrowth

    Get the BillDog newsletter

    Practical guides on subscription pricing, paywalls and app growth, about twice a month. No spam.

    Related Articles

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.