Grade POPIA website compliance using homepage and privacy policy HTML

Go to Workflow
0 views
Built by Melina Melina
Created on August 31, 2026

Description

Quick overview
This workflow runs manually to scan a given website for POPIA compliance signals, fetches and validates a privacy policy page, and produces a site score with detected trackers, cookie-consent status, and a keyword-based privacy policy quality grade.

How it works
Runs when you start the workflow manually.
Sends an HTTP request to fetch the target website homepage HTML for the provided website URL.
Analyzes the homepage HTML to detect common trackers (Google Tag Manager, Meta Pixel, Hotjar), the presence of a cookie-consent banner, and an on-site privacy policy link while skipping third-party policy links.
Builds a list of candidate privacy policy URLs (from the detected link or common fallback paths) and fetches each candidate page via HTTP.
Selects the first fetched page that looks like a real privacy policy (sufficient length, not a 404, and contains privacy/POPIA language).
Calculates a site-level compliance score and gap list, and grades the privacy policy against seven POPIA-oriented criteria before outputting the results.

Setup
Update the website URL value in the input step (the website_url field) to the site you want to audit.
Ensure the target site is publicly accessible over HTTP/HTTPS so the HTTP requests can retrieve the homepage and policy pages.
Run the workflow and review the output from the final grading step for the score, detected gaps, and policy quality breakdown.

Nodes Used (2)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest