> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Script

GraphQL interface

Interface representing scripts that can be added to a storefront

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/interfaces/script

## Fields

- `entityId` — Unique identifier for the script
- `consentCategory` — The consent category this script belongs to (e.g., Essential, Analytics)
- `visibility` — Where this script should be displayed in the storefront
- `integrityHashes` — List of integrity hash values for security verification
- `location` — Location in the page where the script should be placed (e.g., Head, Footer)

## Implemented by

- InlineScript
- SrcScript

## Definition

```graphql
interface Script {
  entityId: UUID!
  consentCategory: ScriptConsentCategory!
  visibility: ScriptVisibility!
  integrityHashes: [ScriptHash!]!
  location: ScriptLocation!
}
```