When a Wix user adds an app to a site, they trigger the Wix app install flow. This flow includes selecting the designated site and granting app permissions. You can start the install flow from inside Wix or externally. When started externally, you can extend the flow by redirecting the Wix user after installation and preserving custom state throughout.
The standard install flow is the default installation path when a Wix user adds an app from in the Wix ecosystem. Wix users can add apps to a site from the Wix App Market, editor, or site dashboard. Wix handles the full flow from trigger to installation.
When installing an app:
When completed, Wix redirects the Wix user to the site dashboard or the editor of the site they chose during the install flow.
The external install flow is when a Wix user starts installing your app from outside the App Market, editor, or site dashboard. For example, from a published Wix site or a non-Wix website.
You provide the Wix app installer URL, such as by attaching it to a button on a site. When a site visitor navigates to the URL, the following flow starts:
The external install flow also supports state, custom data you can pass as query parameters in the callback URL. Wix preserves your state throughout the external install flow and returns it in the callback.
Learn more about setting up the external install flow.
Use the external install flow when:
instanceId in the callback and use it to authenticate API calls.To set up the external install flow, you must build and provide a Wix app installer URL. Build the Wix app installer URL by appending query parameters to the base URL using standard query string syntax:
The base URL supports the following query parameters:
| Query parameter | Required | Description |
|---|---|---|
appId | Yes | The app ID of the app you want to install. Triggers the standard install flow for the specified app. |
postInstallationUrl | No | Your callback URL. After the install completes, Wix redirects the Wix user to this URL and appends its own query parameters. Wix also preserves any query parameters you include in this URL. |
Important:
The postInstallationUrl must be an encoded URI component.
To receive and process what Wix sends in the redirect, implement a callback handler at your postInstallationUrl.
Important: Your callback handler endpoint must use HTTPS.
After the install completes, Wix redirects the Wix user to your postInstallationUrl and appends the following parameters:
| Query parameter | Description |
|---|---|
appId | Your Wix app ID. |
tenantId | The ID of the Wix site that installed the app. |
instanceId | A unique ID for this app installation. |
| Custom state | Query parameters you included in the postInstallationUrl. |
To verify that your app installed successfully, confirm that an instanceId exists.
An app is recorded as successfully installed when a Wix user completes the standard install flow. You can view and manage app installations in the app dashboard.
To track Wix users who started but didn't complete the install flow, set up custom events for Google Analytics.