scriptmonitoring.comdocs

Every page of the Script Monitoring docs on one page, grouped by tab and section, with a one-line summary of what each page covers.

Updated

Every page of these docs, in the same order as the sidebar. Start at the docs home or the Quickstart if you are new.

Get started#

Get started

  • QuickstartThe shortest path to a working install: answer Setup steps 1 and 2, add the tag from step 3, load a page and confirm it reports in step 5.
  • Install the script tagAdd the Script Monitoring tag to your site. Copy your snippet from Setup step 3, pick a method and place the tag first in the head.
    • Install with an HTML script tagPaste the Script Monitoring script tag at the top of your site's head. Copy the snippet from Setup step 3, keep it synchronous, and add it to every page.
    • Install with Google Tag ManagerAdd the Script Monitoring tag as a GTM Custom HTML tag on All Pages to test it quickly. For production, install the tag directly in the head.
    • Install with a coding agentPaste one prompt into Claude Code, Cursor or GitHub Copilot. It fetches the Script Monitoring setup guide and installs the tag with your script URL.
    • Install with NPMRun npx @scriptmonitoring/cli after your build to inject the Script Monitoring tag into every static HTML file. Works for dist and .next output and in CI.
  • Verify it's workingCheck that the Script Monitoring tag is delivered and reporting: read Setup step 5, Verify, its tiles, per-domain list and status notes.
  • Payment pagesTell Script Monitoring which pages take payment with selectors in Setup step 4, test a real checkout URL, and choose whether only payment pages report.
  • CSP reportingSend Content Security Policy violation reports to Script Monitoring. Add the headers from the CSP setup sheet, then run the header check.
  • GlossaryShort definitions of the client-side security and PCI DSS terms used in these docs, from Magecart and CSP to requirements 6.4.3 and 11.6.1.

For agents

  • Install with a coding agentPaste one prompt into Claude Code, Cursor or GitHub Copilot. It fetches the Script Monitoring setup guide and installs the tag with your script URL.
  • Connect an AI assistant (MCP)Connect Claude, Cursor, VS Code, Codex or ChatGPT to Script Monitoring with one URL, sign in, and ask about your alerts, scripts and vendors.
  • What you can ask through MCPWhat an AI assistant can read and do in Script Monitoring through MCP, grouped by task, with example prompts you can copy into Claude, Cursor or ChatGPT.
  • MCP access and limitsWhat an AI assistant connected through MCP can see and change in Script Monitoring, how to turn on changes, how to disconnect it, and the rate limits.
  • MCP guide for AI agentsInstructions an AI agent can follow to connect to the Script Monitoring MCP server, sign in with its user, find ids, read data and make changes safely.
  • MCP REST APICall the Script Monitoring MCP tools over plain REST for scripts and CI. Same sign-in, limits and audit log as MCP, with an OpenAPI document.

Guides#

Get value

  • Your first weekA day-by-day plan after install: set payment pages and CSP, clear the alert queue, decide on every vendor, then set up destinations and invite your team.
  • Triage alertsClear the Alerts queue one vendor at a time: start with Needs action and Reachable, then Allow, Remediate… or Block each decision. Keyboard shortcuts included.

Stop attacks

  • Respond to a malicious scriptWhat to do when Script Monitoring flags a malicious script: block it in the browser, check which pages it ran on, confirm the block and remove the source.

Govern vendors

  • Approve or block a vendorReview a vendor on the Vendors page, read its score, pages and PCI DSS status, then Allow it, Limit what it may do, or Block every resource it serves.

Prove PCI DSS

  • Prepare PCI DSS evidenceGet assessor-ready evidence from Script Monitoring: justify payment-page vendors, check header changes and generate the weekly report.

Stay informed

  • Set up destinationsEdit or add a notification rule, choose its trigger, domains and destinations (email, webhook or S3), then send a test to check it arrives.

Dashboard#

Overview

  • HomeReference for the dashboard Home page: the alert banner, the six tiles, Top risks, Action needed, What changed and what each one links to.

Security

  • DomainsSecurity > Domains: columns and statuses, the Add domain sheet, Script tag or Agentic Web Scanner, AI automations and Record steps, and who can manage them.
  • AlertsReference for Security > Alerts: how decisions are grouped, priority and rule score, reachability, what Allow, Remediate… and Block do, and who can act.
  • BlocksStop a script on every domain in your team, check the rule is enforced, and respond to a malicious script step by step.
  • VendorsReference for Security > Vendors: the guardrail policy, statuses, the details sheet, what Allow, Limit and Block do, the tabs and the Pro features.
  • GTM containersReference for Vendors > GTM containers: approve the Google Tag Manager containers your site may load, and every other container is blocked before it runs.
  • CSP violationsReference for Security > CSP violations: the weekly violation table and its columns, the directive filters and monthly report limits.

Compliance

  • PCI DSS 6.4.3 & 11.6.1Reference for Compliance > PCI DSS 6.4.3 & 11.6.1: the Vendors, Headers, Reports and Payment pages tabs, their statuses and the evidence pack.

Developers

  • SetupReference for Developers > Setup: the five steps (Use case, Site type, Install, Scope, Verify), what each asks and why, and who can change them.
  • DiagnosticsUse Diagnostics to see whether each domain's Scripts, CSP violations and Security headers streams are receiving data, and stop false alarms on quiet sites.
  • API keysReference for Developers > API keys: sm_org_ and sm_team_ key formats, the scopes each key can carry, creating and revoking keys, and who manages them.
  • Emergency stopReference for Developers > Emergency stop: pause or resume Script Monitoring for a team, who can do it, and what keeps running while it is on.

Account

  • UsageReference for Account > Usage: page views this month, plan utilization, the month-end projection, daily page views and the split by domain.
  • Plans and upgradesWhat Free, Pro and Enterprise include, how page views are metered, the 14-day Pro trial, the plan sheet, and how to request an Enterprise proof of concept.

Settings

  • OrganizationReference for Settings > Organization: the name, ID, primary contact and data retention, plus single sign-on, required MFA and the audit log.
  • TeamsReference for Settings > Teams: every team in the organization with your role, its domains and open alerts, how to switch teams, and who can add one.
  • UsersReference for Settings > Users: the Super admin, Admin and Viewer roles, team access, MFA status, invitations, and who can change access.
  • Single sign-on (SSO)Reference for single sign-on: where to configure it, the Okta, Duo, Microsoft Entra ID and SAML 2.0 fields, how people sign in, and who can change it.
  • Multi-factor authentication (MFA)Reference for MFA: authenticator apps, passkeys and backup codes in Profile, and requiring MFA for the organization or single teams, with Banner or Lockout.
  • Audit logsReference for Settings > Audit logs: the columns, the scope, kind of change and person filters, which changes are recorded, and who sees which entries.
  • DestinationsReference for Settings > Destinations: every alert rule and when it fires, the defaults per use case, where alerts are sent, plan limits and email preferences.
  • BillingReference for Settings > Billing: the team's plan card and its statuses, the organization's payment method, invoices, and who can change each.
  • ProfileReference for Settings > Profile: your name, email, role, password, two-factor methods, active sessions, and how to delete your account.
  • AppearanceReference for Settings > Appearance: the Light, Dark and System themes and the Comfortable and Compact row densities, saved for this browser only.

API#

REST API

  • REST APIManage teams, domains and payment pages from your backend with the Script Monitoring REST API: base URL, API keys and scopes, rate limit, paging and errors.

Teams

  • List teamsGET /v1/teams lists the teams in your organization with their ID, name, creation date and suspension state. Needs an organization API key.
  • Create a teamPOST /v1/teams creates a team in your organization and returns its ID. Needs an organization key with teams:create, on Pro or Enterprise.
  • Delete a teamDELETE /v1/teams deletes a team and its domains by team ID. Needs an organization key with teams:delete; a team with a subscription can't be deleted.

Domains

  • List domainsGET /v1/domains returns your registered domains with their team, Script tag or Agentic Web Scanner mode, wildcard and suspension state, page by page.
  • Register domainsPOST /v1/domains registers up to 100 domains in a team in one call and reports, per domain, whether it was created, already existed or was invalid.
  • Delete domainsDELETE /v1/domains removes up to 100 domains from a team by domain ID and reports, per ID, whether it was deleted or not found.

Payment pages

  • List payment pagesGET /v1/payment-pages returns your payment page selectors, one per team and selector, with the domains each one applies to, page by page.
  • Add a payment pagePOST /v1/payment-pages adds one payment page selector to a team, the same selectors you manage in Setup step 4, and says whether it was new.
  • Delete payment pagesDELETE /v1/payment-pages removes up to 100 payment page selectors from a team and reports, per selector, whether it was deleted or not found.

Events

  • WebhooksReceive Script Monitoring alerts on your own URL. Verify the x-scriptmonitoring-signature HMAC-SHA256 header and read the alert.created JSON payload.
  • S3 exportWrite every Script Monitoring alert to your own Amazon S3 bucket as a JSON Lines file: the write-only bucket policy, the file format, and fixes.

For machines#

  • sitemap.xml: every page with its last change date, screenshots and flow videos, for search engines.
  • llms.txt: a short index of every page for AI assistants, linking each page's Markdown copy.
  • llms-full.txt: the full text of every page in one file.
  • Any page as Markdown: add .md to its address, for example /quickstart.md.
Questions? Ask in the chat, or in the dashboard.View as Markdown
HomeSitemap