Sub topic 2
First-party data: what you observe about your customers
This chapter assumes you know basic digital marketing (email, paid media, website analytics), what a cookie is, and roughly what a CRM or email platform does. It covers what counts as first-party data, where it comes from, how to record it usefully, and the errors that make it less valuable than it looks.
What first-party data is
First-party data is information you collect directly from your own customers and audiences through your own channels. You observe it, or your systems record it, as people interact with your business. The key test is simple: you are the party with the direct relationship, and the data was generated on your properties or in your transactions.
It differs from zero-party data, which customers hand you on purpose (a stated preference, a quiz answer). The next chapter covers that. First-party data is mostly behavioral and transactional. It records what people did, and you infer what they want from it.
Common sources
| Source | Example data | Typical system |
|---|---|---|
| Website | Page views, product views, search terms, cart contents | Web analytics, tag manager, CDP |
| Mobile app | Sessions, screens, in-app purchases, push opt-in status | App analytics SDK, CDP |
| Transactions | Orders, returns, basket value, payment method type | Commerce platform, ERP, CRM |
| Email and SMS | Sends, opens, clicks, unsubscribes, bounces | Email service provider |
| Customer service | Tickets, chat transcripts, satisfaction scores | Help desk, CRM |
| Stores and events | In-store purchases, loyalty card scans, event sign-ups | POS, loyalty system |
| Account and profile | Name, email, address, signup date | CRM, identity database |
Some of these items are identifiers (email, phone, customer ID) and some are events (a click, a purchase). Keep the distinction in mind. Chapter 11 covers how events get tied to identifiers. Here the point is that each record you keep should carry enough context to be usable later.
Observed, declared and inferred fields
Not every field in a customer record has the same reliability. It helps to label each one.
- Observed: you saw it happen. A purchase on 2026-03-04 is a fact.
- Declared: the customer typed it into a form, such as a shipping address. Declared fields can be wrong or stale.
- Inferred: you or a model derived it. "Likely a runner" from browsing running shoes is a guess.
Inferred values are the most common source of errors. If you store "likelyrunner = true" in the same column style as "emailverified = true", downstream users will treat both as equally certain. Keep inferred fields clearly marked, and never present an inference to a customer as something they told you.
What good first-party data looks like
A record is useful when it answers four questions: what happened, to whom, when, and under what permission. The permission part is where many programs fall short. The example below shows an event record that carries its own context.
{
"event_id": "e_90871",
"customer_id": "c_123",
"event_type": "product_viewed",
"product_category": "trail_running",
"channel": "web",
"occurred_at": "2026-03-04T10:12:44Z",
"source_system": "web_tag",
"consent_purpose": "analytics",
"consent_status": "granted"
}Each field has a job:
event_idlets you deduplicate if a tag fires twice.customer_idlinks the event to a profile when the person is known.occurred_atis the time the event happened, not the time it reached your database. Mixing the two skews any time-based analysis.source_systemlets you trace a bad value back to the tag, SDK, or import that produced it.consent_purposeandconsent_statusrecord the permission under which you collected the event, so you can honor it later.
How the data flows
The shape matters more than the tools. Many sources feed one place, and consent is checked before data is used, not only when it is collected. Chapter 10 covers the storage options in detail.
Why it matters now
First-party data is valuable for three reasons.
- You own the relationship. Browsers are restricting third-party cookies, and privacy laws limit how outside data can be bought and used. Data from your own channels remains available, provided you have a lawful basis and consent where it is required.
- It is specific. A purchase history from your store describes your customers' behavior with your products. Purchased audience data describes them in general terms.
- It is checkable. You know where it came from, so you can measure its quality and correct it.
"Owned" does not mean "unrestricted." Collecting data on your own site does not give you the right to use it for any purpose. Laws such as the GDPR (General Data Protection Regulation) tie use to the purpose you stated at collection. Chapters 5 and 6 cover this.
Collecting it without over-collecting
A common error is to log everything and sort it out later. This creates cost, risk, and noise. Use these working rules.
- Start from the decision. For each field, name the campaign, report, or personalization it will support. If you can't, don't collect it yet.
- Minimize. Collect the least data that supports the use. Less data means a smaller breach exposure and less to delete when a customer asks.
- Capture purpose at the point of collection. Retrofitting consent onto old records is hard and often impossible.
- Standardize names and formats. Agree on
product_viewed, not a mix ofProductView,view_product, andpv. Use ISO 8601 timestamps in UTC. - Separate identifiers from events. Store who the person is apart from what they did, and link them by an ID.
Consent-aware use of first-party data
Once data is stored with its purpose and status, you can build segments that respect permission. This query selects customers who have granted email marketing consent and have bought in a category in the last 90 days.
SELECT DISTINCT c.customer_id, c.email
FROM customers AS c
JOIN consents AS k
ON k.customer_id = c.customer_id
JOIN orders AS o
ON o.customer_id = c.customer_id
WHERE k.purpose = 'email_marketing'
AND k.status = 'granted'
AND o.product_category = 'trail_running'
AND o.ordered_at >= CURRENT_DATE - INTERVAL '90 days';The consent filter is part of the query itself. Nobody has to remember to apply it afterward. One caveat: if the consents table holds a history of changes (grant, then withdrawal), this join can match an old "granted" row after the customer withdrew. In that case, join only to the latest consent row per customer and purpose.
Common errors
- Treating clicks as intent. Email opens are unreliable because mail clients can prefetch images and register opens automatically. Weigh clicks and purchases more heavily than opens.
- Duplicate and fragmented profiles. The same person appears under two emails, or as a guest and an account. Counts of "customers" are then inflated, and personalization misfires.
- Stale data. An address or preference from four years ago may no longer be true. Store a collection or last-verified date and decide how old is too old.
- Lost context. Data copied to a spreadsheet or another tool without its consent status and source can no longer be used safely.
- Anonymous data presented as known. Events from a cookie with no login belong to a device, not a person. Don't merge them into a customer profile unless you have a sound basis for linking them.
- Over-inference. Acting on a weak signal in a way that feels invasive, such as hinting at a sensitive circumstance based on browsing. Be careful with health, finances, and other sensitive categories, which many laws treat specially.
Edge cases
- Guest checkout. You have a transaction and an email but no account. You can use the order data to fulfill it. Using the email for marketing needs its own permission.
- Shared devices. One browser may be used by a whole household, so behavioral signals blend several people.
- Consent withdrawn. If a customer withdraws marketing consent, stop marketing use. You may still need to retain transaction records for legal or accounting reasons. Keep those but exclude them from marketing segments.
- Children's data. Many jurisdictions apply stricter rules. Check the rules for your markets before collecting.
This chapter is general information, not legal advice. Confirm requirements for your markets with your privacy or legal team.
Summary
First-party data is what your own channels observe: web and app behavior, transactions, email engagement, service interactions, and store activity. Its strength is that you control the source and can verify it. Its limits are that it is mostly behavioral, can be stale or fragmented, and is usable only within the permission under which you collected it. Label fields as observed, declared, or inferred. Attach source, time, and consent purpose to each record. Collect only what supports a named use.
Exercise
A customer buys running shoes on your site as a guest and enters their email at checkout. Your marketing team wants to add that email to next week's promotional campaign. Is the order data first-party data? Can you use the email for the campaign? What would you check first?
Show answer
Yes, the order and the email are first-party data because your own checkout collected them directly. That does not automatically permit promotional email. The email was provided to complete and confirm the order. Before adding it to the campaign, check whether the customer granted email marketing consent at checkout, or whether a lawful basis for marketing exists in your market (for example, some regions allow limited marketing to existing customers for similar products with an opt-out). If neither applies, exclude the address from the campaign and use order confirmation emails only.
Exercise
Your event table has the columns eventid, customerid, eventtype and occurredat. List two fields you would add so the data stays usable under privacy rules and for debugging, and explain why each is needed.
Show answer
Add consentpurpose with consentstatus (or a link to the consent record), so each event can be filtered by the permission under which it was collected. Add source_system, so a bad value can be traced to the tag, SDK, or import that produced it. Other acceptable answers include a collection or last-verified date for staleness checks.