About the Embedded Script API

You can use the Embedded Script API to inject custom script tags to the head tag of Wix user's sites.

Before you begin

Important:
The keys in the custom parameters passed in this API must be identical to the keys defined in the app's embedded script component. Using any other keys results in a 400 error: "Parameters map sent to embedded script is not the same as discovered in the script code".

For more information, see About Embedded Scripts.

Did this help?

Setup

@wix/app-management

To use the EmbeddedScripts API, install the @wix/app-management package using npm or Yarn:

Copy

or

Copy

Then import { embeddedScripts } from @wix/app-management:

Copy
Did this help?