The GTM Data Model: Objects, Fields and Joins That Make Reporting Work
A GTM data model is the set of objects, keys and joins that let your CRM answer revenue questions. Here are the objects, the grain of each, the join map, HubSpot payloads and a 10-point scorecard.
A GTM data model is the set of objects your revenue team tracks, the fields on each one and the keys that join them. Accounts, people, leads, deals, activities and campaigns are the usual objects. When the model is right, every report has one clear join path. When it's wrong, every report turns into a debate.
Most CRMs grow by accident. Someone adds a field for a campaign. Someone else adds a second "source" field because the first one was wrong. Two years later you have 600 properties and nobody trusts pipeline by source.
This post is the fix. I'll cover the objects you need, the grain of each one, the keys that join them, how HubSpot associations really work, and a map from common questions to join paths. Then a worked example, a custom object decision rule and a scorecard you can run this week.
Key takeaways
- Grain first. Every object answers "one row per what?" and a field belongs on the object whose grain it shares.
- Keys beat names. Join on domains, emails and system IDs, never on company names typed by hand.
- Stamp what you report on. Copy source and segment onto the deal at creation so reports read one object.
- Primary matters in HubSpot. Activities, lifecycle syncs and most reports follow the primary company only.
- Objects are expensive. Add a custom object only when the thing has its own life, owner or many rows per account.
What is a GTM data model?
A data model is a map of the things you track and how they connect. In GTM, the things are companies, people, deals and the events around them. The map says three things for each one. What one row means. Which fields live on it. Which keys connect it to the rest.
It's not a diagram you draw once. It's the set of rules behind every import, workflow and report. If a rep can create a deal with no company, that's a model decision. If two tools each write "industry" in different formats, that's a model decision too. You made it by not making it.
The CRM is usually the system of record for this model. That's where reps work, where workflows run and where most reports get built. So I design the model inside the CRM first and treat everything else as a feed into it.
A good model passes one test. Pick any question leadership asks every week. You should be able to say which objects it reads, which join it crosses and which field holds the answer. If that takes more than a minute, the model needs work.
Which objects does a GTM data model need?
Most B2B teams need seven objects. Four are core. Three depend on how you sell.
| Object | One row per | Main key | Who owns it | HubSpot home |
|---|---|---|---|---|
| Account | Company you sell to | Root domain | Sales | Company |
| Person | Human at an account | Marketing, then sales | Contact | |
| Lead | Qualification attempt | Record ID | SDR team | Lead |
| Deal | Sales opportunity | Record ID | Account executive | Deal |
| Activity | Call, email, meeting or task | Record ID | Whoever logged it | Activities |
| Campaign | Marketing program | Campaign name and ID | Marketing | Campaign |
| Subscription | Paid plan or contract | Billing ID | Finance or CS | Custom object or synced field set |
The core four are account, person, deal and activity. Every team has them, even on a free plan.
Add a lead object when you qualify before you open a deal. It keeps junk out of the pipeline. The lead holds the qualification attempt, and the deal starts only when a buyer agrees to a real conversation.
Add campaigns when marketing reports on programs, not just forms. Add subscriptions when you sell recurring plans and need renewals, seats or expansion next to pipeline.
What about signals, partners and products?
Signals are events like a job change, a funding round or a pricing page visit. Most teams store the latest signal as a few fields on the account. That's fine until you need history. Then signals become rows in a warehouse table, not CRM fields.
Partners are a judgment call. If partners source deals, a field on the deal ("partner sourced: Acme Consulting") is usually enough. If partners have their own pipeline and payouts, that's a custom object.
Products are line items on deals. Use them only if you price by product. Otherwise the deal amount is enough.
What is grain, and why does it break reports?
Grain is what one row means. One row per company. One row per person. One row per deal. Most reporting bugs are grain bugs.
Here's the classic one. Lead source lives on the contact. Pipeline lives on the deal. A deal has three contacts with three different sources. Which source gets the pipeline? The report picks one, or counts the deal three times. Either way, the number is wrong.
The rule I use: a field belongs on the object whose grain it shares.
- Job title is one value per person, so it's a contact field.
- Employee count is one value per company, so it's a company field.
- Deal source is one value per deal, so it lives on the deal, even if it started on a contact.
- Plan tier is one value per subscription, so it lives there, not on the company.
When a field is needed at two grains, copy it on purpose. Don't let a report guess. Stamp the deal's source from the primary contact at the moment the deal is created. Then freeze it. Now the source is part of the deal's history, and later contact changes can't rewrite it.
Which keys join the objects together?
A key is the value two records share so a system can link them. There are three kinds, and you need all three.
| Key type | Examples | Good for | Weak spot |
|---|---|---|---|
| Natural key | Email, root domain, LinkedIn URL | Matching records from outside tools | Formats vary, people change jobs |
| System ID | HubSpot Record ID | Updates inside one system | Means nothing in other tools |
| External ID | Stripe customer ID, product workspace ID | Syncs between systems | Needs a unique property to hold it |
Natural keys get records in. Domain matches a new contact to its company. That's lead-to-account matching, and the lead-to-account matching guide covers the edge cases, like personal emails and subsidiaries.
System IDs keep records stable once they exist. After a sync creates a record, store its Record ID and update by ID from then on. Matching on email for every update breaks the day someone changes their email.
External IDs connect the CRM to billing and product. Store the billing customer ID on the company as a unique value property. HubSpot's deduplication docs say you can create up to ten custom properties per object that require unique values. Spend them on external IDs.
What does HubSpot deduplicate on its own?
The same docs say contacts are deduplicated by email and companies by the primary company domain. Deals and custom objects get no automatic dedupe. You match them by Record ID or a unique property.
One gap matters a lot for the model. Companies created through the API are not deduplicated by domain, and that includes installed sync apps. So your cleanest key, domain, doesn't protect you from integrations. Run deduplication checks on companies after every new connector goes live, and have each integration search by domain before it creates.
How do associations work in HubSpot?
An association is a link between two records. A contact linked to a company. A deal linked to three contacts. Associations are the joins in your model.
What does the primary company do?
Every contact with a company has a primary company. Per HubSpot's associations docs, the first company you associate becomes primary by default. A contact with several companies must keep one as primary.
That label does more than it looks like. The same page says activities on a timeline associate automatically only with the primary company. Lifecycle stage syncs update only the primary company. Segments, workflows and cross-object reports reference the primary association.
So a wrong primary company quietly moves activity, lifecycle stage and reporting to the wrong account. When a contact switches jobs, update the primary company. Don't just add the new one.
What are association labels for?
Labels describe how two records relate. "Decision maker" on a contact-to-deal link. "Parent" and "Child" between two companies. HubSpot's association labels docs say labels need Professional or Enterprise, and you can create up to 50 labels per object pair. A paired label like Manager and Employee counts as one.
Labels are how you model buying committees and an account hierarchy without new objects. I keep them few. Five contact-to-deal labels cover most teams: decision maker, champion, economic buyer, technical evaluator and blocker.
How many associations can a record have?
HubSpot's technical limits page sets a per-record association limit of 250,000 on paid plans and 10,000 on free. Some pairs have lower caps on every plan: 1,000 contacts per deal, 1,000 companies per deal and 10,000 deals per contact. Each custom object type gets 9 defined associations to other object types.
You won't hit most of these. The one that bites is a "catch-all" company that collects every personal Gmail contact. Don't create one. Leave those contacts unassociated until you know where they work.
What does an association payload look like?
Here's the shape of a labeled association call, based on HubSpot's associations v4 guide. It links a contact to a deal with a custom label.
PUT /crm/objects/2026-09/contact/{contactId}/associations/deal/{dealId}
Content-Type: application/json
[
{ "associationCategory": "USER_DEFINED", "associationTypeId": 36 }
]
The type ID for a custom label comes from your own account. The default ones are fixed. Per the same guide, contact to company is 279, with 1 for the primary company. Deal to contact is 3, contact to deal is 4, and deal to company is 341, with 5 for the primary company. Batch create accepts up to 2,000 inputs per request, and batch read up to 1,000.
Write those IDs into your integration docs. Half of all "the association didn't stick" bugs are a wrong type ID.
Which fields belong on which object?
Field placement follows grain. Field naming follows a convention. Both need to be written down before anyone adds a property.
| Field | Object | Set by | Changes after creation? |
|---|---|---|---|
| Original source | Contact | Tracking | Never |
| Deal source | Deal | Workflow, copied from primary contact | Never |
| Lifecycle stage | Contact and company | Workflow | Forward only, by rule |
| Industry, employee count | Company | Enrichment | On re-enrichment |
| ICP tier | Company | Scoring workflow | Monthly |
| Job function, seniority | Contact | Derived from title | When title changes |
| Amount, close date | Deal | Rep, under stage rules | Yes, with history |
| Billing customer ID | Company | Billing sync | Never |
| Plan, seats, MRR | Subscription | Billing sync | Every sync |
Two patterns from that table matter most. First, "never changes" fields are history. Source, created date and billing ID should be read-only for users. Second, derived fields beat typed fields. Route on job function and seniority, which you control, not on raw titles, which you don't.
Names matter more than people think. A field called "Source" next to "Lead Source" and "Original Source 2" guarantees the wrong one ends up in a report. Use one prefix per owning team and one word order. The free CRM field naming checker flags names that break a convention before they ship.
Lifecycle stage is the one field that lives on two objects on purpose. The lifecycle stages and MQL to SQL guide covers the definitions. The data model rule is simple: one workflow writes it, and nobody edits it by hand.
The question-to-join map
This is the part most teams skip. Before you build reports, write down the questions and the path each one takes through the model. If a path is long or fragile, fix the model, not the report.
| Question | Object counted | Join path | Fragile spot | Fix |
|---|---|---|---|---|
| Pipeline by source | Deal | None, if source is stamped | Deals with no contact | Stamp deal source at creation |
| Win rate by segment | Deal | Deal to primary company | Wrong primary company | Stamp segment on the deal |
| Meetings by rep | Activity | Activity to owner | Meetings logged by the wrong user | Log meetings from the calendar sync |
| Pipeline by campaign | Deal | Deal to contact to campaign | Multi-touch contacts | Pick one rule, then stamp it |
| Accounts in play | Company | Company to open deals and leads | Leads without companies | Match leads to accounts on entry |
| Net revenue retention | Subscription | Subscription to company | Missing billing ID | Make billing ID required on customers |
| Speed to first touch | Lead or contact | Contact to first activity | Activities on the wrong record | Associate activities to the lead too |
Notice the pattern. Every fix moves a value closer to the object the report counts. That's the whole trick. Joins are fine for browsing. Reports should read stamped values.
Attribution is the hardest row. First-touch attribution is easy to stamp. Multi-touch needs campaign membership history, which is a warehouse job for most teams. The B2B attribution guide covers how to decide with imperfect models.
Worked example: pipeline by source at a Series A team
Say a Series A team has 412 deals created in the last two quarters. Leadership wants pipeline by source. The report joins each deal to its contacts and reads original source.


Here's what the audit finds. The numbers are a worked example, not a benchmark.
- 251 deals have one contact with a source. That's 61%.
- 74 deals have two or more contacts with different sources. That's 18%.
- 58 deals have no associated contact at all. That's 14%.
- 29 deals have a contact, but the source is blank. That's 7%.
So 39% of deals, 161 of 412, either drop out of the report or get a source chosen by chance. If average deal size is $24,000, that's about $3.9 million of pipeline with a wrong or missing source. Every budget call based on that report inherits the error.
The fix takes about a day.
- Add a "Deal source" property on deals, read-only for users.
- Build a workflow on deal creation. Copy original source from the primary contact into deal source.
- Make one associated contact required at deal creation, so new deals can't skip it.
- Backfill the 74 multi-contact deals using the contact who was created first.
- Send the 58 orphan deals to their owners to add a contact, then rerun the backfill.
- Rebuild the report on deal source alone. No join.
After the fix, say 380 of 412 deals carry a stamped source, about 92%. The rest are old deals nobody can trace, and you label them "Unknown" instead of guessing.
When do you need a custom object?
Custom objects are powerful and expensive. HubSpot's CRM data limits docs say they require an Enterprise subscription. They also add another grain every report has to respect. So use a decision rule, not a hunch.
Create a custom object only if you answer yes to two or more of these:
- Does the thing have its own life cycle, with stages or a status?
- Does it have its own owner, different from the company owner?
- Can one company have many of them at once?
- Do you need to report on it as its own row, like "count of active workspaces"?
- Does another system already treat it as its own record, with its own ID?
| Thing you track | Yes answers | Model it as |
|---|---|---|
| Product workspace | 1, 3, 4, 5 | Custom object |
| Subscription or contract | 1, 3, 4, 5 | Custom object |
| Office location | 3, 4 | Custom object, or a list field if you never report on it |
| Partner who referred a deal | 2 | Property on the deal |
| Competitor in a deal | 3 | Multi-select property on the deal |
| Event a contact attended | 3, 4 | Campaign membership, not an object |
The HubSpot custom objects guide walks through the build itself: schema, properties, associations and the pipeline. If you're not on Enterprise, the fallback is a set of prefixed properties on the company plus a warehouse table for history.
Where should the model live: CRM or warehouse?
Both, with different jobs. The CRM holds the working model. Reps read it, workflows act on it and most weekly reports run on it. The data warehouse holds history and the joins a CRM handles badly, like product usage by day or every campaign touch.
| Job | CRM | Warehouse |
|---|---|---|
| Routing and assignment | Yes | No |
| Weekly pipeline reports | Yes | Optional |
| Product usage history | Summary fields only | Yes |
| Multi-touch attribution | Hard | Yes |
| Billing and revenue history | Current values | Full history |
| Fields reps act on | Yes | Pushed back with reverse ETL |
The handoff runs both ways. Raw data lands in the warehouse. Modeled values, like a product usage score, go back to the CRM with reverse ETL. The reverse ETL for marketing guide covers that loop. The data warehouse for startups guide covers when to add one.
My rule: under about 50 people with no product data in the loop, run on the CRM alone. Add the warehouse when billing or product usage has to join with pipeline every week.
Whichever side holds a field, write down which system wins when two disagree. That's your golden record rule. Put the field list, types and owners in a data contract so a tool change can't break the model quietly. The data contracts guide has a template.
What mistakes break a GTM data model?
These are the ones I see most. Each has a quiet symptom and a cheap fix.
| Mistake | Symptom | Fix |
|---|---|---|
| Source only on contacts | Pipeline by source never matches | Stamp source on the deal |
| Company names as keys | Duplicate companies after every import | Match on root domain |
| Contacts at the wrong primary company | Activity shows on old employers | Update primary on job change |
| A field per campaign | Hundreds of dead properties | Use campaign membership |
| Deals with no company | Accounts look cold while deals are open | Require a company at creation |
| Two tools writing one field | Values flip back and forth | One writer per field, written down |
| A custom object for everything | Reports need four joins | Use the decision rule above |
Most of these come from field mapping choices made during an integration setup and never revisited. Review the mapping of every connector once a quarter. The CRM data hygiene guide covers the monthly cleanup that catches drift.
If you're moving CRMs, fix the model before you move. Migrating a broken model just moves the mess. The CRM migration checklist has the inventory step for that.
A 10-point data model scorecard
Score each line 0, 1 or 2. Zero means missing, 1 means partly done, 2 means done and enforced. The total is out of 20.
| # | Check | What 2 points looks like |
|---|---|---|
| 1 | Object list written down | Every object has a grain, a key and an owner |
| 2 | Company key | Companies match on root domain, and sync apps search before they create |
| 3 | External IDs | Billing and product IDs stored as unique properties |
| 4 | Deal source stamped | Set at creation from the primary contact, read-only after |
| 5 | Required associations | Every deal has a company and a contact |
| 6 | Primary company rule | Updated on job change, checked monthly |
| 7 | Association labels | A short, defined list for buying roles |
| 8 | One writer per field | Each synced field has one system that writes it |
| 9 | Naming convention | Prefixes and word order enforced on new fields |
| 10 | Question-to-join map | Top 10 questions mapped to objects and paths |
Under 10, stop building new reports and fix the model first. From 10 to 15, fix your two lowest lines this month. Above 15, you have a model most Series B teams would envy, so spend the time on new plays.
What should you do this week?
Five steps, in order. Each takes an hour or two.
- List your top 10 questions. Ask leadership, sales and marketing what they check every week. Write each one down.
- Map each question to a path. Fill in the question-to-join table above for your CRM. Mark every path with more than one hop.
- Stamp the top fragile value. For most teams that's deal source. Build the creation workflow and backfill.
- Lock the keys. Store billing IDs as unique properties. Turn on domain matching. Check which integrations create companies.
- Score the model. Run the scorecard and pick the two lowest lines for next month.
If you want help, our GTM engineering services include a data model review, and the CRM cleanup use case shows what the full rebuild looks like. If you're the one building it, the GTM engineers page has more of the playbooks I use.
The model isn't glamorous. But every dashboard, routing rule and AI agent you build later reads from it. Get the grain, keys and joins right once, and everything on top gets cheaper.
FAQ
What is a GTM data model?
A GTM data model is the set of objects your go-to-market team tracks, the fields on each one, and the keys that join them. Accounts, people, leads, deals, activities, campaigns and subscriptions are the usual objects. A good model lets you answer revenue questions, like pipeline by source, with one clear join path instead of a spreadsheet.
What objects should a B2B CRM have?
Most B2B teams need companies, contacts, deals and activities as the core. Add leads if you qualify before creating deals, campaigns if you report on marketing, and products or subscriptions if you sell recurring plans. Signals and partners are optional. Start with the core four and add objects only when a real question needs one.
What is the difference between a property and an association?
A property is a field that stores one value on one record, like a deal amount or a job title. An association is a link between two records, like a contact tied to a deal. Use a property when the value belongs to the record itself. Use an association when the value is really another record with its own life.
When should I use a HubSpot custom object?
Use a custom object when the thing you track has its own life, its own owner or many rows per company. Examples are subscriptions, workspaces, locations or partner deals. If it is one value per record, use a property instead. Custom objects need an Enterprise subscription in HubSpot, so check the plan before you design around one.
Why do my pipeline by source reports not match?
Usually because source lives on the contact while pipeline lives on the deal, and the join between them is broken. Deals with no associated contact, or with the wrong primary contact, drop out or get the wrong source. Copy the source onto the deal when it is created, so the report reads one object instead of crossing a fragile join.
Should the GTM data model live in the CRM or a data warehouse?
Both, with different jobs. The CRM holds the working model that reps and workflows act on every day. The warehouse holds history, product data and joins the CRM can't do well. Most teams under about 50 people can run on the CRM alone. Add a warehouse when product usage or billing data needs to join with pipeline.