Scan Your Site for Cookies and Sort What It Finds with SureCookie and AI
Scan the pages that matter, see every cookie and script by category, and fix the ones filed in the wrong place.
Prerequisites
A site connected to WPVibe running SureCookie 1.9 or newer (tested on 1.9.0, free) on WordPress 6.9 or newer, with an administrator account and SureCookie's Enable MCP switch on (SureCookie, Settings, Tools, MCP).
My WordPress site uses SureCookie. Scan my site for cookies and help me sort what the scan finds. WPVibe does not ask for approval before any SureCookie ability runs, so ask me before every change. 1. Run discover_abilities with category surecookie. If its abilities are not there, stop and tell me to install or update the free SureCookie plugin (1.9 or newer, on WordPress 6.9 or newer), then turn on its AI access: in SureCookie's Settings, open Tools, then MCP, switch on Enable MCP and save. SureCookie hides its abilities until that switch is on. 2. Run surecookie/site-health with action overview. If connection.local_site is true, tell me SureCookie can't scan a localhost or development site and stop. Note scanning.max_pages_per_scan. Run surecookie/site-scanner with action status: if in_progress is true, tell me a scan is already running, do step 3, wait for the scan as in step 6, then go to step 7. 3. Run surecookie/manage-settings with action get and keys scan_pages: these are the pages SureCookie scanned last (each value is a page ID). Run surecookie/script-blocking with action list_resources and keep the result in this chat to compare against later. 4. Start from the saved pages. If there are fewer than max_pages_per_scan, add pages most likely to load outside services: run rest_api GET /wp/v2/settings with fields show_on_front,page_on_front (if show_on_front is page, page_on_front is my home page's ID) and surecookie/content-lookup with action search_posts, context scanner and per_page 50, and pick from the home page, contact, shop, cart and checkout, and pages with a video, map, booking or chat, up to max_pages_per_scan in all, keeping every saved page. [Or name the pages you want scanned.] If I name more than max_pages_per_scan, or the saved pages are already more than that, ask me which to leave out. Show me the list, and tell me that the scan sends these pages' addresses to SureCookie's scanning service, which loads them in a browser and reports the cookies, scripts and iframes it sees; that the site registers with that service on its first scan, without an account; that this list replaces SureCookie's saved scan selection; and that each scan replaces the list of scripts the scan found, so a script from outside SureCookie's built-in catalog that was seen only on a saved page I drop loads before consent again; and that the scan can remove cookies it listed before or move them to another category, though a cookie I moved by hand stays where I put it. Wait for my yes. 5. Run surecookie/site-scanner with action quota and refresh true. If error_code is not_registered, go on: the first scan registers the site. If scan_runs remaining is 0, tell me when it resets (resets_at) and stop. Run surecookie/site-scanner with action start and pages set to the IDs. If it fails, tell me its message and stop. If pages_dropped is above 0, tell me some pages were left out and that I should scan fewer at a time. 6. Run surecookie/site-scanner with action status about every 20 seconds, for up to 5 minutes, until in_progress is false. If last_end is there (the scan failed or was cancelled), or last_outcome is missing or its outcome is blocked_by_host, run surecookie/site-scanner with action logs, tell me its last lines and stop. If the outcome is empty, tell me the scan reached my pages and found no cookies, and go on. If it is still running after 5 minutes, tell me to check SureCookie's scanner screen later and stop. 7. Run surecookie/cookie-categories with action list for the category IDs, then surecookie/cookie-management with action list_scanned and surecookie/script-blocking with action list_resources. Report by category: each cookie with its provider, and each script and iframe with its domain. If scanning_details.changes lists cookies the scan moved or removed, name them. Compare with the list from step 3: name every resource that had source scan and a service_slug that was empty or started with scan_, and is now missing or has another source, tell me it may load before consent again, and suggest scanning the page it was on or a blocking rule for it. Flag every cookie or resource in Uncategorized, anything that tracks visitors but sits in Essential (Essential loads without consent), and any provider or purpose that looks wrong. If blocking_active is false, tell me nothing is held back at all until the banner and script blocking are both on. 8. For each flagged item, suggest the category it belongs in with one line why, and ask me. Move only the ones I approve, one at a time: a cookie with surecookie/cookie-management action recategorize_scanned (cookie_name, current_category, new_category, plus domain when two cookies share a name, and purpose or provider if I want them corrected), a script or iframe with surecookie/script-blocking action recategorize_resource (type, domain, category). Never move anything into Essential unless I name it. Don't delete anything. 9. Run surecookie/known-services with action list and state detected. For each with locked false that is not installed yet, tell me installing it adds that service's cookie descriptions to the preferences window and the cookie policy, and ask. Install only the ones I approve, with action install and its slug. Name the ones with locked true: they need SureCookie Pro. 10. List every change you made so I can spot-check it in SureCookie, and remind me to scan again, with the same pages, after adding a plugin, an embed or a tracking tag.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Scan Your Site for Cookies and Sort What It Finds with SureCookie and AI” recipe from the WPVibe cookbook on my connected site.
A cookie banner only holds back what it knows about. Videos, maps, analytics tags and plugins all set cookies, and the list changes every time you add something. Going through a scan report and deciding where each cookie belongs is tedious, so it gets skipped.
The AI scans the pages SureCookie already watches plus the ones most likely to load outside services, after your yes, and reports what it found by category. It flags anything left uncategorized or filed where it doesn’t belong, suggests the right category for each, and moves only the ones you approve, one at a time. It also offers SureCookie’s ready-made descriptions for the services the scan detected.
The scan sends the chosen pages’ addresses to SureCookie’s scanning service, which loads them in a browser, and the free plan scans 5 pages at a time. Each scan replaces the list of scripts the scan found, so a script from outside SureCookie’s built-in catalog that was seen only on a page you leave out loads before consent again: the AI keeps your saved pages and names anything that dropped off. The AI deletes nothing itself, but a scan can drop or move cookies it listed before, and the AI names each one. To check the rest of your setup afterwards, use this recipe.
Outcome
A fresh scan of your key pages, every cookie and script in the category you approved, and a list of each change.