File size: 3,604 Bytes
1c88c6e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
language: en
license: cc-by-nc-sa-4.0
tags:
  - privacy
  - web-tracking
  - tracker-detection
  - tabular-classification
  - browser-fingerprinting
  - duckduckgo
  - tracker-radar
size_categories:
  - 10K<n<100K
task_categories:
  - tabular-classification
---

# Tracker Radar ML Dataset

An ML-ready tabular dataset of 16,165 third-party web domains labeled as
tracking or non-tracking, with 295 behavioral and metadata features
extracted from DuckDuckGo's open-source Tracker Radar.

## Dataset Description

Each row represents a third-party domain observed on popular websites
during DuckDuckGo's Tracker Radar crawl (US region). Features capture
how the domain behaves: which browser APIs its scripts call, whether it
sets cookies, how prevalent it is across the web, and metadata about
the entity that owns it.

## Label Construction

Labels are derived from multiple independent sources:

- **Tracking (1)**: Domain has a tracking category in Tracker Radar
  (Advertising, Analytics, Audience Measurement, etc.) or appears in
  the EasyPrivacy filter list
- **Non-tracking (0)**: Domain has only functional categories (CDN,
  Embedded Content, Online Payment) or is uncategorized with no API
  usage and negligible cookie prevalence

5,863 ambiguous domains were excluded from the labeled set.

Labels are independent of the fingerprinting heuristic score (0-3),
which is included as a column but was not used for labeling. This
allows the dataset to be used for evaluating ML models against the
heuristic baseline.

## Features (295 total)

| Group | Count | Description |
|-------|-------|-------------|
| Domain metadata | 9 | Prevalence, site count, subdomain count, owner info, resource types |
| Cookie behavior | 4 | Cookie prevalence, TTL, first-party cookies set and sent |
| API binary | 131 | Whether any resource on the domain uses each browser API |
| API counts | 131 | Raw call counts per API aggregated across resources |
| API aggregates | 20 | Summary stats of API weights, category-level counts (canvas, audio, navigator, etc.) |

## Key Columns

- `domain`: The third-party domain name
- `label`: 0 (non-tracking) or 1 (tracking)
- `label_source`: Which source(s) determined the label
- `fingerprinting_score`: DuckDuckGo's heuristic score (0-3), included for comparison but not used in labeling
- `prevalence`: Fraction of top sites that request this domain
- `weighted_fp_score`: Sum of API fingerprint weights for APIs this domain uses

## Class Distribution

| Label | Count | Percentage |
|-------|-------|------------|
| Non-tracking (0) | 10,356 | 64.1% |
| Tracking (1) | 5,809 | 35.9% |

## Usage
```python
from datasets import load_dataset

ds = load_dataset("olafurjohannsson/tracker-radar-ml")
train = ds["train"]
test = ds["test"]

# Get features and labels
import pandas as pd
df = train.to_pandas()
print(df["label"].value_counts())
print(df.columns.tolist()[:20])
```

## Source Data

Derived from [DuckDuckGo Tracker Radar](https://github.com/duckduckgo/tracker-radar)
(CC-BY-NC-SA 4.0) with additional labels from
[EasyPrivacy](https://easylist.to/easylist/easyprivacy.txt).

## Source Code

Feature extraction, labeling, and training scripts:
[github.com/olafurjohannsson/tracker-ml](https://github.com/olafurjohannsson/tracker-ml)

## Limitations

- Point-in-time snapshot (US region only)
- Labels depend on Tracker Radar categories and EasyPrivacy, both of
  which have known limitations and edge cases
- Some domains (e.g., consent management platforms) are debatable
- Does not include raw JavaScript source code, only aggregate behavioral metadata