wix-cli-embedded-script

Creates embedded script extensions that inject HTML and JavaScript into Wix sites.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/thisisjaymehta/login-with-email-test --skill wix-cli-embedded-script-thisisjaymehta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wix-cli-embedded-script
Source: https://github.com/thisisjaymehta/login-with-email-test/tree/main/.agents/skills/wix-cli-embedded-script
Command: npx skills add https://github.com/thisisjaymehta/login-with-email-test --skill wix-cli-embedded-script-thisisjaymehta

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding tracking pixels, analytics, chat widgets, popups, or other third-party JavaScript to Wix sites requires correctly structured embedded script extensions with consent typing, placement rules, and dashboard configuration, which is error-prone to set up manually. ## Core Features & Use Cases - Embedded Script Generation: Produces embedded.html and extensions.ts files with correct script type (ESSENTIAL, FUNCTIONAL, ANALYTICS, ADVERTISING) and placement (HEAD, BODY_START, BODY_END). - Dynamic Parameter Support: Implements template variables like {{apiKey}} passed from a dashboard configuration page via the embeddedScripts API from @wix/app-management. - Use Case: Add Google Analytics tracking to a Wix site by generating an ANALYTICS script placed in HEAD with a configurable {{trackingId}} parameter managed from a dashboard settings page. ## Quick Start Ask the assistant to add a Google Analytics tracking script or a coupon popup to your Wix CLI app and it will scaffold the embedded script and dashboard configuration page.

Frequently Asked Questions about wix-cli-embedded-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Google Analytics or a tracking pixel to a Wix site?

Create an embedded script extension with scriptType ANALYTICS and placement HEAD, using a template variable like {{trackingId}} for the measurement ID. Site owners configure the value through a companion dashboard page built with the embeddedScripts API.

How do I pass dynamic parameters to a Wix embedded script?

Define parameters in the dashboard page and save them with embeddedScripts.embedScript(), then reference them in the HTML as {{parameterKey}} inside data attributes. JavaScript reads the values via getAttribute() or the dataset property, converting strings to numbers or booleans as needed.

What script type should I choose for a Wix embedded script?

Choose from ESSENTIAL, FUNCTIONAL, ANALYTICS, or ADVERTISING based on the script's purpose for consent management. If a script fits multiple types, select the most restrictive option, so a script with both analytics and advertising aspects should be typed ADVERTISING.

Why is my Wix embedded script not appearing on the site?

Common causes include missing registration in the main src/extensions.ts file, a non-unique or missing UUID in the extension definition, or the SCOPE.DC-APPS.MANAGE-EMBEDDED-SCRIPTS permission not being enabled in the Wix Dev Center.

Does a Wix embedded script require a dashboard page?

Yes, every embedded script requires a companion dashboard configuration page so site owners can set parameter values. The dashboard page needs its own extensions.ts registration file using title, routePath, and component fields.