Scripts and cookies
The Scripts and cookies page lists everything the scanner found on your site. It has two tabs, Scripts and Cookies. The summary at the top shows how many of each were detected and how many are still unknown.
Known versus unknown
Each item is either known or unknown.
- Known items matched the OptSens library and already have a category. No action is needed.
- Unknown items were detected but are not in the library. They are grouped separately and counted as unknown. Assign a category to tell the banner how to handle them.
Anything left unknown is not managed by the banner. Classify it to keep your consent correct.
Categories and blocking
The category you pick decides when the item is allowed to run. Detected scripts and cookies use these categories:
| Category | When the item runs |
|---|---|
| Necessary | Always loaded, never blocked |
| Functional | After consent to functional |
| Analytics | After consent to analytics |
| Advertising | After consent to advertising |
Scripts are held back by auto-blocking until the visitor consents to the matching category. Cookies are placed in that category in your cookie declaration.
Changing a category
- Open the Scripts or Cookies tab.
- Pick a category from the dropdown next to the item.
- Save changes from the bar at the bottom.
A changed tab shows a marker, and the save bar appears while you have unsaved changes. Saved items move to their new category right away. Your choices are kept across future scans, and an item you overrode is marked Your override to tell it apart from a library match.
Custom script rules
Categorizing covers what the scanner detected. To block or always allow a
script by URL pattern, including scripts the scanner did not find, use the
Script Blocking Rules page in the dashboard. A rule has a URL pattern
with * as a wildcard, an action of Block until consent or
Always allow, and an optional category. For tagging scripts in your own code, see
manual tagging.
When nothing is detected
If both tabs are empty, run a scan. If a scan still finds nothing, it was probably blocked before it could load your pages. See OptSensBot for how to allow the scanner through.