Paragraphs Stats: A Drupal report of which components are used
- Concept, Design, Developer
- < $10,000
- Drupal
- https://www.drupal.org/project/ps
The job
Paragraphs lets editors build pages from components. On a long-running site the list of paragraph types passes twenty, and nobody can say which ones are used. Cleaning up means guessing, or writing a one-off query. We needed that answer on our own client sites, so we built it as a module.
What we built
Paragraphs Stats is a contributed Drupal module, at drupal.org/project/ps. It depends on Paragraphs. Once enabled, Reports includes a Paragraphs Stats report, limited to roles you grant. The report shows how often each paragraph type is used and which content types contain it, which is enough to retire an unused component or to see whether a new one was adopted.
Outcomes
A content lead can answer "is this component used?" without a developer and a SQL window. We use it on client sites. Anyone else on Drupal can install it.