Contextual targeting: how to reach audiences with or without cookies
Contextual targeting matches ads to page content, not the person. Chrome kept third-party cookies while Safari blocks and Firefox isolates them, and a split test checks whether it earns its place.
By Karthik Pattabhiraman, Head, Operations · Updated 20 Nov 2026

Key takeaways
- Contextual targeting matches ads to the content of the page and works whether or not cookies are available.
- As of 17 October 2025, Chrome keeps third-party cookies and leaves the choice to users. Safari blocks them and Firefox isolates them by default. Plan for both.
- Contextual targeting offers only limited control over how often one person sees your ad, cannot retarget, and is only as good as its page classification.
- Judge it by running it against your other audience types in one campaign, with equal budgets, the same inventory, dates and creative, and one metric agreed in advance.
In this article
- 1What is contextual targeting, and what does a buyer control?
- 2How does contextual targeting work?
- 3Page analysis, keywords, URLs and semantic classification
- 4What are the types of contextual targeting?
- 5Keyword targeting
- 6Category targeting
- 7Semantic (AI) targeting
- 8Where should you use contextual targeting first?
- 9Are third-party cookies really gone? What Chrome, Safari and Firefox do
- 10How does contextual targeting compare with behavioural and first-party targeting?
- 11Where does contextual targeting work well, and where does it fall short?
- 12Where it works well
- 13Limits
- 14Suitability and consent
- 15How do privacy-safe cohorts work alongside contextual targeting?
- 16How do you set up contextual targeting in programmatic advertising?
- 17How do you measure contextual targeting against other audience types?
- 18Conclusion: put contextual targeting to the test
- 19Frequently asked questions
Contextual targeting matches an ad to what a page is about: its text, topic and keywords. It is also called contextual advertising, and it needs no personal data about the reader.
Chrome still allows third-party cookies, while Safari and Firefox block or isolate them, so no campaign can rely on cookies alone. Contextual works in both cases, and this guide ends with a test to check it in your own campaign.
Both kinds of browser land in the same campaign. A third-party cookie is a small file that lets an ad system recognise a browser across different sites. On Safari and Firefox, a cookie-based audience cannot follow a person from site to site. On Chrome, the cookie may still work, depending on the user’s settings. The real decision is how to cover both without doubling your work.
Contextual targeting does not depend on a cookie. In a DSP (demand-side platform, the software you buy ad space with), it sits as a layer beside first-party data and privacy-safe cohorts in one workflow.
This guide follows the order of your decisions: what contextual targeting is, how it works, what each browser does, where it falls short and how to test it.
What is contextual targeting, and what does a buyer control?
A buyer controls the subject. You choose the topics, keywords and pages you want, and your ads run where the content matches. The platform reads the pages and makes the match, which the next section explains. The buyer controls the lists and the exclusions.
Take a runner reading a marathon-training article in programmatic advertising, where ad space is bought and sold by software in real time. A running-shoe ad fits that page whoever the reader is, because the page is the signal. The same ad beside a report of a car crash is a poor match. So the buyer's other job is to exclude unsuitable pages before the campaign spends.
How does contextual targeting work?
Contextual targeting works in three steps. A system reads the page and turns what it finds into signals such as topics and keywords. It then matches those signals to the topics you chose, in real time. No identifier for the reader is needed at any step.
PAGE IN SIGNALS OUT AD MATCHED
Article text → Topic: running → Your running-shoe ad
Headings, metadata → Keywords: marathon, → runs on this page
Page address (URL) training, long run (pages that fail your
Meaning: fitness, exclusions are skipped)
endurance
Page analysis, keywords, URLs and semantic classification
- Page analysis reads the visible text, the headings and the metadata, which are the descriptive tags behind the page.
- Keywords are the terms you want a page to contain, or not to contain.
- URLs (web addresses) let you name specific pages or sites to include or exclude. The address itself often signals the topic.
- Semantic classification reads for meaning, not exact words. "Marathon training plan" and "how to build up to long runs" both land in running. AI (artificial intelligence) makes this possible at volume. We recommend a person checks a sample of what it matched.
Google's help page describes this matching on its own ad network. Its system analyses each page to find a central theme and matches it to the keywords or topics you chose. The same page lists other factors on that network, including a visitor's recent browsing history (Google Ads Help). So ask any platform what "contextual" means in its product before you buy.

What are the types of contextual targeting?
There are three types: keyword, category and semantic. They run from literal to flexible, and most campaigns mix them.
Keyword targeting
You list words, and ads run on pages that contain them. Control is precise, but matching is literal. A keyword like "cruise" matches holiday offers and a report on a ship accident alike. Pair keywords with words to exclude.
Category targeting
You pick from ready-made topic categories such as sport or finance. It is quick and broad, and it suits a first test. It is less precise than a tuned keyword list.
Semantic (AI) targeting
Semantic contextual targeting uses AI to classify pages by meaning, so it copes with synonyms and context that keyword lists miss. Its quality depends on the classifier, so review the pages it matches before you scale.
Where should you use contextual targeting first?
Contextual targeting is strongest when the page shows what the reader is doing right now. Five kinds of content give you a starting list of topics.
- Buying guides and comparisons.A reader weighing options is close to a decision.
- How-to and problem-solving articles.Someone fixing a problem is open to a relevant solution.
- Seasonal and event moments.Interest peaks around holidays, deadlines and sporting events. Build these topic lists a few weeks ahead and retire them afterwards.
- Local content.City guides and regional publications signal a place through the page, not the person.
- Neighbouring topics.Pages about the problem your product solves, not only the product, reach people your obvious keywords miss.
Start with two or three of these, not all five, so the split test later in this guide stays readable. Give each its own exclusion list.
How does contextual targeting compare with behavioural and first-party targeting?
Contextual targeting follows the page. Behavioural targeting follows a person's past activity. First-party targeting follows people you already hold data on. Each needs different inputs and gives different control, so they work as partners, not rivals.
| Method | What it needs | What it gives you | What it cannot do |
|---|---|---|---|
| Contextual | Page content, plus your topics, keywords and URLs | Reach on relevant pages in any browser, with no personal data | Fine user-level frequency control, or find past visitors |
| Behavioural | Records of past activity, usually linked by cookies or device IDs, often bought as third-party segments | Interest-based reach on unrelated pages | Reach people where tracking is blocked or opted out |
| First-party | Data you collect yourself, such as customer records and site visits | Known customers, past visitors and retargeting | Reach new people at scale |
First-party data is what you collect yourself. Our first-party audience guide covers it. Bought segments are covered in our third-party audience guide. Contextual is one method among several, and our guide to audience capabilities in programmatic advertising places it among the rest.
Where does contextual targeting work well, and where does it fall short?
Contextual targeting works best for reaching new people while they read about your category, in any browser, with no personal data involved. It falls short on per-person control: it has limited user-level frequency control and cannot retarget. Quality depends on how well pages are classified.
Where it works well
- New customers. Use it when you hold no data on the people you want. The page does the targeting.
- Cookie-restricted browsers. It does not depend on a cookie, so Safari and Firefox views are reachable.
- Learning. You can see which topics and pages work. That tells you where to spend more.
Limits
- Frequency. Contextual signals don't identify individuals, so user-level frequency control is limited. Expect the same person to meet your ad on several matching pages.
- Retargeting. Retargeting means finding people who visited you before. A page cannot tell you that. Use first-party data for it.
- Classification. A match is only as good as the classifier or keyword list behind it. The "cruise" example above shows how a literal match misfires. Check matched pages before you scale.
Suitability and consent
A page can fit your topic and still be unsuitable for your brand. Topic and suitability are separate decisions that use some of the same signals.
Our brand safety guide covers the basics, and how AI helps with brand safety in programmatic advertising explains how page scoring works. Dessy's Brand Safety controls include pre-bid context scoring.
Contextual targeting does not rely on a profile of the reader, but rules on storing or reading information on a device for advertising can still apply to the wider ad set-up, and some personal data processing may remain. Check with your own counsel for your market.
How do privacy-safe cohorts work alongside contextual targeting?
Dessy Audiences offers vertical cohorts, which are privacy-safe groups built from data and pixel signals. They reach groups of people, not pages, so they are a separate method from contextual targeting. Because they are a separate method, give them their own arm in the test (see the section on measuring contextual targeting).
How do you set up contextual targeting in programmatic advertising?
Set it up in six steps: set the goal, choose topics, build keyword and URL lists, give contextual its own line item, check placements early, and review results by topic cluster. Each step ends with a test you can run, with a pass and a fail.
These steps apply in any DSP. Our own platform is Dessy.
- Set the goal.
Write one outcome and one metric, such as cost per completed sign-up. Pass: the goal fits in one sentence. Fail: it says "awareness and sales".
- Choose topics.
List the subjects where reading signals interest in your category. Pass: each topic has a one-line reason. Fail: a topic is on the list only because it is popular.
- Build keyword and URL lists, including words to exclude.
In Dessy Audiences we build around topics, keywords and URLs. Add exclusions for the wrong meanings of your keywords. Pass: in a sample of ten matched pages per keyword, at least nine fit the meaning you intended. Fail: eight or fewer fit, so exclude the wrong meaning or drop the keyword.
- Use a separate line item.
A line item is a budget and targeting unit in a DSP. In your DSP or ad platform, give contextual its own line item, so its results are not mixed with other methods. Pass: spend and results report for contextual alone. Fail: they blend with another audience.
- Check placements early.
Review the pages your ads ran on within the first three days and read a sample. Pass: pages match the topic and your suitability rules. Fail: a cluster of pages that does not, so fix the lists before more budget goes in.
- Review by topic cluster.
Group matched pages by topic and compare results per group. Pass: you can name which clusters to grow and which to cut. Fail: you only have a campaign total.
Have a person check the AI's page classification at step 5. Spot-checking a sample takes minutes and catches the misfires that keyword lists and classifiers produce.
How do you measure contextual targeting against other audience types?
Run contextual targeting as one arm of a split test inside a single campaign, beside your other audience types, and judge every arm on one metric agreed in advance. Otherwise, differences in budget, creative or timing get mistaken for differences in method.
Set the test up like this:

- Equal budget split.Give each arm the same share of spend.
- Same inventory, dates and creative.Buy the same supply, at the same time, with the same ads. Only the audience type should differ.
- Non-overlapping audiences.Where your DSP allows, exclude your first-party list from the contextual arm so the arms do not chase the same people. Contextual cannot identify individuals, so some overlap may remain. Read results as a strong indication, not proof.
- A minimum run length.Fix it before launch. We suggest at least two full weeks, and longer if each arm collects only a handful of results.
- One metric and a pass/fail rule.
Write the rule first: "Contextual passes if its cost per [result] is at or below [target] at the end of [run length]."
Use this template and fill it in before you launch:
| Arm | Audience type | Metric | Result by topic cluster |
|---|---|---|---|
| A | Contextual | e.g. cost per completed sign-up | Cluster 1: ___ / Cluster 2: ___ |
| B | First-party | Same metric | Not applicable: no topic clusters |
| C | Privacy-safe cohort | Same metric | Not applicable: no topic clusters |
Read arm A by topic cluster. A contextual arm that loses overall may win in some clusters. In that case, our recommendation is to move budget into the winning topics and cut the rest, then run the test again.
Conclusion: put contextual targeting to the test
Contextual targeting earns its place when you can show it. Chrome still allows third-party cookies, while Safari and Firefox block or isolate them, so one campaign always contains both kinds of view. Contextual covers both without a cookie, but it cannot control frequency per person or retarget. Treat it as a new-customer layer beside first-party data, not a replacement.
Use a simple rule. If you hold data on the people you want, start with first-party audiences. If you do not, start with a contextual arm, give it its own line item and judge it on one metric agreed before launch. Then move budget towards the topic clusters that win.
Dessy Audiences brings topic, keyword and URL targeting, first-party audiences and privacy-safe cohorts into one workflow, so you can run that split test in one place. Request a demo and our team will help you plan your first test.
Plan your first contextual targeting split test
Frequently asked questions
No. Retargeting means showing ads to people who already visited you, which requires recognising an individual. Contextual signals describe pages, not people, so they cannot do that job. Use first-party data for retargeting and contextual to reach new people. Our first-party audience guide covers that route.
Yes, the same idea carries over to video and connected TV (CTV): see our programmatic video guide and connected TV guide.
Sources
- 1.Update on Plans for Privacy Sandbox Technologies, Google Privacy Sandbox, 17 October 2025
- 2.Next steps for Privacy Sandbox and tracking protections in Chrome, Google Privacy Sandbox, 22 April 2025
- 3.Tracking Prevention
- 4.Firefox rolls out Total Cookie Protection by default to all users worldwide
- 5.Browser market share, worldwide, all platforms
- 6.Contextual targeting



