Publish downloadable datasets and control ATP-gated access from the editor.
Create or edit a dataset
- Open a Dataset post (linked to a
datasetstaxonomy term via term-data-store). - In Dataset Options, upload or replace the download file with the media drop zone.
- When replacing data mid-month, confirm the new data uploaded prompt so the stats panel can split before/after counts.
- Toggle ATP when the American Trends Panel terms of service must be accepted before download.
- Publish. Related posts, features, and charts can be tagged with the dataset term when they declare
prc-datasetssupport.
Staff with manage_options also see a Survey questions list in Dataset Options when Roper is active. Each row links to the catalog edit screen. If more than 50 questions match, View all in wp-admin opens the classic survey-question list filtered by this dataset term.
Download stats in the editor
The Dataset Options sidebar includes a download heatmap with year/month selectors and day drill-down. Stats come from GET /prc-api/v3/datasets/download-stats (editors only).
Downloader audience
In Dataset Options, generate or rebuild a Mandrill list of users who downloaded the file. The scan can take several minutes. You can leave the editor; the list is saved when the job finishes. Create a transactional email from Emails → Transactional, or with wp prc datasets build-audience.
Blocks
Dataset Download (prc-platform/dataset-download)
Place on dataset templates or pages that should offer the file. The Interactivity API client calls Firebase-authenticated download endpoints and surfaces the ATP form when required.
Dataset ATP Legal Acceptance (prc-platform/dataset-atp-legal-acceptance)
Not insertable from the inserter. The download block injects it when the dataset is ATP-restricted and the user has not accepted.
Dataset Description (prc-platform/dataset-description)
Editor-only helper that binds related dataset post_content into a paragraph via the prc-platform/dataset-description block bindings source.
Front-end download flow
-
Sign in
The visitor must have a Firebase identity so download requests can send
X-PRC-User-IdandX-PRC-User-Token. -
ATP check
ATP datasets call check-atp / accept-atp before a URL is returned.
-
Download
get-download resolves the file URL, rate-limits by IP, increments counters, and logs against the user record.