Why does Webflow custom code not work in the Designer?

Webflow Designer does not execute every custom script placed in page or site settings. Some code is injected only when the site is published, and third-party scripts may require the public origin, HTTPS, cookies, or resources that the Designer canvas does not provide.
Publish to the Webflow staging subdomain or a test domain, then open browser console and Network tools. Confirm that the code appears in the intended head or before-body location, loads after its dependency, and is not blocked by Content Security Policy, consent, mixed content, or an invalid URL.
Keep editing helpers separate from production scripts and guard initialization against missing elements. Do not judge a script solely by the Designer preview. Test the published page at each breakpoint and after dynamic content loads, then check that the same code does not initialize twice.