🛠️ Fix Custom JavaScript Not Appearing After Publishing

Camilo Aponte

Camilo Aponte

Last updated on Sep 30, 2026

🔍 Overview

If you have added custom JavaScript code to your Search Atlas site but it is not appearing in your live site's source, follow the steps below to troubleshoot the issue yourself. If the steps do not resolve it, the final section explains what to have ready when escalating to support.

🧰 Troubleshooting Steps to Try First

  1. Confirm you saved and published after adding the code. Adding code to the platform does not automatically update your live site. After pasting your JavaScript snippet, save your changes and then click Publish to push the update to your live site.
  2. Check that you added the code in the correct location. Search Atlas supports custom code injection at both the site level (applies to all pages) and the individual page level. Verify you placed the snippet in the intended location — a snippet added only to one page will not appear on others.
  3. Clear your browser cache and hard-reload the page. Browsers cache page sources aggressively. After publishing, perform a hard refresh (Ctrl+Shift+R on Windows/Linux, Cmd+Shift+R on Mac) or open the page in an Incognito/Private window before checking View Page Source.
  4. Verify your plan includes custom code features. Access to custom JavaScript injection may depend on your current Search Atlas subscription plan. Check your plan details in your account settings to confirm this feature is available to you.
  5. Check for syntax errors in your snippet. A JavaScript snippet with a syntax error may be stripped or fail silently. Review your code for unclosed brackets, missing semicolons, or other syntax issues before re-saving.
  6. Re-save and re-publish. If the above steps do not resolve the issue, remove the snippet, save, publish, then re-add the snippet, save, and publish again to force a fresh injection.

📋 What to Have Ready If You Need to Escalate

If the steps above do not resolve the issue, please have the following information ready when you contact support:

  • The exact location in the platform where you added the JavaScript (e.g., which menu or settings panel you used)
  • The project or site name where the code was added
  • The URL of the specific page where the code should appear
  • Whether you published the site after adding the code, and approximately when
  • The full JavaScript snippet you are trying to inject (or a description of what it does)
  • Any error messages or unexpected behavior you observed
  • A screenshot of your browser's page source (right-click → View Page Source) showing that the code is absent

If you need further assistance, open the chat widget in the bottom-right corner of the platform and type human teammate to be connected with a member of our team.