Skip to main content

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:

CategoryWhen the item runs
NecessaryAlways loaded, never blocked
FunctionalAfter consent to functional
AnalyticsAfter consent to analytics
AdvertisingAfter 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

  1. Open the Scripts or Cookies tab.
  2. Pick a category from the dropdown next to the item.
  3. 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.