wix-cli-embedded-script
Installation
SKILL.md
Wix Embedded Script Builder
Creates embedded script extensions for Wix CLI applications. Embedded scripts are HTML code fragments that get injected into the DOM of Wix sites, enabling integration with third-party services, analytics tracking, advertising, and custom JavaScript functionality.
Quick Start Checklist
Follow these steps in order when creating an embedded script:
- Create script folder:
src/extensions/site/embedded-scripts/<script-name>/ - Create
embedded.htmlwith config element, styles, and script logic - Create
extensions.tswithextensions.embeddedScript()and unique UUID - Create dashboard config page:
src/extensions/dashboard/pages/<script-name>-settings/ - Implement config page with
embeddedScriptsAPI from@wix/app-management - Update
src/extensions.tsto import and use both extensions - Add the
SCOPE.DC-APPS.MANAGE-EMBEDDED-SCRIPTSpermission in the Wix Dev Center (see Enable Embedded Script Permission)
Script Types
Embedded scripts must declare a type for consent management: