Dynamite

How to add custom code to a Wix site

Wix accepts third-party scripts through a Custom Code page in the site dashboard. It is stricter than most builders: the site needs a connected domain before code is allowed, and Wix warns that some snippets get blocked. Read the pitfalls before you promise anyone a launch date.

Before you start

Steps

Check it worked

What goes wrong

Increase conversions on your Wix site by 20%

Dynamite personalizes the page for every visitor. Dynamite is website personalization that installs as a single script tag in a site’s head, added the way this guide describes. The linked page walks through that install on Webflow.

Dynamite for Webflow

Questions

Can I add custom code to a free Wix site?

Wix requires the site to be published and to have a connected domain, and connecting a custom domain needs a paid plan.

Why is my code not running in the Wix editor?

Wix states that custom code doesn’t take effect in the editor. It runs on the published site only.

How do I turn a snippet off?

Each snippet on the Custom Code page has a toggle that disables it.