An embedded script is an HTML or JavaScript fragment that loads in the site page head or body. In Studio Two you add one from the Code tab through the Wix Extension Builder, so the script is part of the site project.
For when to use an embedded script, script types and consent, dynamic parameters, and how embedding works on other development paths, see Embedded Scripts.
An embedded script in a Studio Two project is a configuration file and the HTML fragment that gets injected:
The generated folder also includes logger.ts, a small module the generated HTML loads. You can replace that module, or remove the script tag that loads it.
You generate the files first, then edit the HTML. For that workflow end to end, see Build an Embedded Script in Studio Two.
Last updated: 2 November 2026