An embedded script is an HTML fragment injected into the DOM of a Wix site. This reference is the contract for a script you add as an extension: the generated files, the configuration object, and the HTML fragment.
A Studio Two site project and a Wix CLI app both use this configuration object and an HTML fragment. A Studio Two project also generates logger.ts. Self-managed apps declare the script in the App Dashboard instead of these files.
extensions.embeddedScript() configuration fields, dynamic parameters in the HTML, and local script files.When the extension belongs to an app, creating the files only defines the script. Call the Embed Script API to embed it on the site.
Last updated: 2 November 2026