Sub topic 8
Collecting first-party data across web, app, email and stores
This chapter covers how to collect first-party data in each channel where customers meet you: your website, your app, email and physical stores. It assumes you know the four data types from earlier chapters and understand how consent and purposes work. It also assumes you have a basic idea of what a cookie is and of how a CRM or email platform stores records.
What you are collecting
First-party data is what you observe about customers through your own properties. In practice it falls into three groups:
- Identity data. Email address, phone number, name, customer ID, loyalty number.
- Behavioral data. Page views, searches, product views, cart actions, app sessions, email opens and clicks, store visits.
- Transactional data. Orders, returns, refunds, subscriptions, support tickets.
Each channel is good at some of these and weak at others. The main design problem is that the same person appears under different keys in each channel: a cookie on the web, a device ID in the app, an email address in your email platform, a loyalty number in a store. This chapter focuses on capturing data well at each source. A later chapter covers how to link these keys into one profile.
Collect only what you will use
Before adding any tracking, write down the decision each data point supports. A field with no planned use costs you storage, privacy risk and review effort, and it makes consent notices harder to write honestly. Most privacy laws also expect data minimization, which means collecting only what is necessary for a stated purpose.
A practical test for each field is to answer three questions:
- Which campaign, report or personalization rule will read this?
- Which consent purpose covers that use?
- How long will we keep it?
If you cannot answer all three, do not collect the field yet.
Web
The website is usually your largest source of behavioral data, and it is the channel most affected by browser changes.
Events and tags
Web collection normally works through a tag manager or an analytics SDK that fires events. An event is a record that something happened, with properties that describe it. A clear event schema matters more than the number of events. Use consistent names and properties across channels so that later analysis does not depend on guesswork.
{
"event": "add_to_cart",
"anonymous_id": "a_88f2",
"customer_id": null,
"properties": {
"product_id": "sku_4471",
"category": "trail_running",
"price": 129.00,
"currency": "EUR"
},
"consent": {
"analytics": "granted",
"advertising": "denied"
},
"timestamp": "2026-03-04T10:12:44Z"
}The event carries the consent state that applied when it fired. That lets downstream systems filter by purpose without looking anything up later.
Identifiers on the web
Cookies you set on your own domain are first-party cookies, but browsers still limit them. Safari's tracking prevention caps the lifetime of cookies written by JavaScript, often to days. Cookies set in a server response can last longer, though browser rules keep changing. Treat any anonymous web ID as short-lived. The durable identifier is the one you get when a visitor signs in or gives an email address, so give visitors reasons to do that (see the value-exchange chapter).
Server-side collection
Server-side tagging sends events from your own server to analytics and ad platforms rather than directly from the browser. Its benefits are better control over what leaves your systems and less dependence on browser scripts. It does not remove the need for consent. If a visitor declined a purpose, the server must not forward data for that purpose.
Common web mistakes
- Firing tags before the consent banner choice is recorded.
- Using different event names on different pages for the same action.
- Storing full email addresses in URLs or analytics properties, which spreads personal data into tools that were never meant to hold it.
- Treating a banner "accept" as consent for every future purpose.
App
An app gives you a steadier identifier than the web. Device IDs persist, and many users stay logged in. Operating systems still impose rules: both iOS and Android require permission for some identifiers and for push notifications, and users can revoke those permissions in system settings.
Collect these app signals:
- Session and screen events to learn which features are used.
- Account events, such as sign-up, login and profile edits.
- Push and in-app message interactions, which are also first-party engagement data.
- Permission state, meaning whether the user allowed notifications, location or tracking.
Store the permission state as data, not just as an operating system setting. When a user turns off push, your campaign tool should know that, and your reports should show opt-in rate by app version and by the screen where you asked.
Timing affects permission rates. Asking for notifications on first launch, before the user has seen any value, usually gets lower acceptance than asking after a moment where the notification clearly helps, such as after placing an order ("Get delivery updates?"). Explain the benefit in your own screen first, then trigger the system prompt.
Email is both a collection channel and an identifier. An address is one of the most stable keys you can hold, because people keep addresses for years and use them across devices.
Capturing addresses
Common capture points are the website footer, checkout, account creation, pop-ups and in-store sign-ups. For each point, record:
- The source (which form or location).
- The purpose the person agreed to.
- The timestamp and the wording they saw.
Where the law or your policy requires it, use double opt-in: send a confirmation email and activate the subscription only after the person clicks. It lowers list size but improves quality, protects sender reputation and gives you a stronger consent record.
Engagement data from email
Opens and clicks are first-party data, but treat them with care:
- Opens are unreliable. Apple Mail Privacy Protection preloads images, which creates opens that no human made. Do not use opens alone for segmentation or send-time decisions.
- Clicks are stronger. They show intent, and you can tag links to connect them to web sessions.
- Replies, unsubscribes and complaints are important signals. Feed them back immediately into suppression lists.
Stores
Physical stores hold much of your purchase data but often lose it at the register, because the sale is not tied to a person.
Ways to attach a customer to an in-store transaction:
| Method | What you capture | Main limit |
|---|---|---|
| Loyalty card or phone number | Customer ID on each purchase | Only members are identified |
| Digital receipt by email | Email address at checkout | Staff must ask consistently |
| App QR code scan | App ID linked to the sale | Requires app adoption |
| Payment-linked programs | Card-based match, where lawful | Needs clear notice and strong legal review |
Store teams need simple scripts and training. A cashier who asks "Would you like your receipt by email?" collects more addresses than a form on a tablet that no one points to. Measure capture rate per store, then compare stores to find where the process works and where it does not.
Consent in stores is easy to get wrong. A signature on a paper form or a tick on a tablet must record the same fields as an online form: purpose, wording, time and location. Paper forms need a defined process for entry into your systems, with a deadline, or consent records get lost.
Make consent travel with the data
A common failure is capturing consent in one tool and data in another, with no link between them. Design your collection so each record can answer "what were we allowed to do with this?"
Use a standard set of fields on every customer record or event:
| Field | Example | Why it matters |
|---|---|---|
| `source` | `checkout_form` | Shows where the data came from |
| `purpose` | `email_marketing` | Limits how it may be used |
| `status` | `granted`, `denied`, `withdrawn` | Controls activation |
| `captured_at` | ISO timestamp | Supports audit and retention |
| `notice_version` | `v3` | Proves what wording the person saw |
SELECT c.customer_id, c.email
FROM customers AS c
JOIN consents AS k
ON k.customer_id = c.customer_id
WHERE k.purpose = 'email_marketing'
AND k.status = 'granted'
AND c.store_signup_source IS NOT NULL;This query pulls the email-marketing audience that signed up through stores and consented. If consent is separate from the profile, a join like this is the safest way to apply it.
Check quality at the point of capture
Bad data is cheapest to stop at entry. Useful controls include:
- Validating email format and flagging common typos (for example
gmial.com). - Using dropdowns or fixed lists for fields such as country and category.
- Standardizing phone numbers to one format.
- Deduplicating on entry when the same email already exists.
- Rejecting events that lack required properties.
Track completeness (the share of records with the fields you need) by channel. A channel with high volume and low completeness may be worth less than a smaller one with clean records.
Choosing where to invest first
Not every channel needs equal effort. Compare them on a few criteria:
| Channel | Identifier stability | Volume | Main risk |
|---|---|---|---|
| Web | Low until sign-in | High | Browser limits, consent gaps |
| App | Medium to high | Medium | Permission refusals |
| High | Medium | List quality, unreliable opens | |
| Stores | High when identified | Varies | Low capture rate, manual entry |
A good first step for most programs is to raise the share of web and store interactions tied to a known email address, because that identifier then supports every other channel.
Exercise
A retailer's web analytics shows many visitors, but only 6% of store purchases have a customer ID attached. Name two collection changes you would make and the consent fields each new capture point must record.
Show answer
Possible changes: ask for a loyalty number or phone number at the register with a short script, and offer digital receipts by email at checkout. Measure capture rate per store. Each capture point must record the source (for example "storeregister"), the purpose the customer agreed to (such as "emailmarketing" or "order_receipts"), the status, the timestamp, and the notice version they saw.
Exercise
Your email team plans to send a win-back campaign to subscribers who "opened" an email in the last 30 days. Why is this a weak segment, and what would you use instead?
Show answer
Apple Mail Privacy Protection preloads images, so many opens are not real human activity. Use clicks, site visits linked to the email, or purchases as engagement signals, and also check that each person's email marketing consent status is "granted" before sending.