---
title: "Script catalog | Mercleo Docs"
description: "The script catalog registers the third-party scripts on your site and assigns each one a consent category, so your consent script can gate them until a visitor grants the matching category."
url: "https://mercleo.com/docs/marketing/script-catalogue"
---

# Script catalog

The script catalog registers the third-party scripts on your site and assigns each one a consent category, so your consent script can gate them until a visitor grants the matching category.

Updated September 24, 2026

The script catalog is where you list the third-party scripts running on a site and tag each one with a consent category. You manage it from a site's Consent settings, on the **Scripts** tab. As the page itself puts it: _"Register 3rd-party scripts and assign them a consent category. Pulse will block registered scripts until the visitor grants the matching category."_

Open the catalog from the **Scripts** tab of a site's Consent settings. You can also reach it from the [Cookie scan](https://mercleo.com/docs/marketing/cookie-scan) results, where any recognized vendor that is not yet in your catalog shows an **Add to catalog** link back to this page.

## Registering a script

Click **Add script** (in the toolbar above the table, or in the empty state). A dialog titled **Add script** opens with these fields:

- **Name**: a label for the script, for example `Google Analytics 4`. Required, up to 255 characters. A blank name returns _"Name is required."_
- **Script URL**: the full URL of the third-party script, for example `https://www.googletagmanager.com/gtag/js?id=G-XXXXX`. Required. It must be an absolute `https://` URL, up to 2048 characters; `http:`, protocol-relative, and other schemes are rejected with _"Script URL must be an absolute https:// URL."_
- **Consent category**: one of **Analytics**, **Marketing**, or **Personalization**. The category is what the visitor's consent choice is matched against. Defaults to **Analytics**.
- **Active** (include in embed payload): the toggle that controls whether this entry is sent to your CMP snippet. On by default.

Click **Add script** in the dialog footer to save, or **Cancel** to discard. The catalog is ordered oldest-first, so a new entry appears at the bottom of the table.

**Tip:** When you paste a URL, Analytics tries to recognize the vendor from its domain and suggest a category: it names the matched vendor and shows its suggested category. If that category differs from your current selection, a **Use it** button applies it. For an https URL on a domain Analytics does not recognize, you see _"Unrecognized vendor domain: double-check you trust this source before adding it."_

## Reading the catalog table

Once you have at least one entry, the catalog renders as a table with five columns: **Name**, **Source URL** (shown in monospace, truncated with the full URL on hover), **Category**, **Active**, and **Actions**. The toolbar above the table shows the script count and the **Add script** button.

The **Active** column shows an **Active** or **Inactive** badge. Each row's **Actions** column holds an edit (pencil) and a delete (trash) button.

Before you register anything, the page shows an empty state titled **No managed scripts yet** with its own **Add script** button.

## Editing and removing entries

The pencil button on a row reopens the same dialog, now titled **Edit script** and pre-filled with the entry's values. Change any field and click **Save changes**.

To stop a script being sent to your snippet without losing the record, edit it and turn off **Active** (include in embed payload). Inactive entries are excluded from the catalog payload your CMP reads, so the script is not injected on the next page load.

The trash button removes an entry. It first asks for confirmation: _"Remove ‘[name]’ from the script catalog? This soft-deletes the entry."_ The removal is a soft delete, so the row leaves the table but the underlying record is retained rather than erased.

**Note:** A given script URL can be registered once per site. Trying to add a URL that already exists returns _"A script with this URL is already registered for this site. Edit the existing entry instead."_

## How the catalog reaches your site

Your CMP snippet (`pulse-cmp.js`) fetches the active catalog for the site it is installed on. Only entries that are active and not removed are included, and each entry carries its name, source URL, and consent category. The snippet then injects each script onto the page only after the visitor grants its category. That payload is cached at the edge for 60 seconds, so a toggle or removal you make in the dashboard takes effect on the next page load within about a minute.

Injection is one-way: once a script has loaded for a visitor, a later consent downgrade or catalog change applies on their next page load rather than mid-session. For the snippet to be present, install the CMP script on the site first. See [Sites](https://mercleo.com/docs/marketing/sites) for the snippet tags, and [Consent banner](https://mercleo.com/docs/marketing/consent-banner) for the banner a visitor uses to grant or decline each category.

**Note:** Catalog injection runs only when Analytics is the consent authority on the page. If you configure the snippet to defer to an external CMP, Analytics does not fetch or inject the script catalog. Confirm gating behavior on your own site before relying on it for compliance.

## Related

[Sites](https://mercleo.com/docs/marketing/sites) [Consent banner](https://mercleo.com/docs/marketing/consent-banner) [Cookie scan](https://mercleo.com/docs/marketing/cookie-scan)
