Search Atlas Help Center

๐Ÿ› ๏ธ Recover and Safely Publish Studio Sources

Camilo Aponte

Camilo Aponte

Last updated on Nov 20, 2026

๐Ÿ” Understand the source and settings

Studio keeps several things separately: the project's code (the version history and the source ZIP export), Header Embeddings and Footer Embeddings (Settings โ†’ Tracking & Scripts, stored apart from the code and added to the published site when you publish), and the Analytics tab. A discrepancy usually means these are being compared as if they were one version. Check each one on its own before changing anything.

๐Ÿ“Œ Identify the currently published source

  1. Open the relevant project in Studio.
  2. Open the project's version history if your Studio build shows one. Otherwise use the Publish modal to see the current publish state.
  3. Find the version marked "Published", which is the last published version.
  4. Record its version, deployment ID, publication date, and status.
  5. Open the Download menu in the preview toolbar and choose Download ZIP (source) to save a full backup of the project's source. Also copy your Header and Footer Embeddings from Settings โ†’ Tracking & Scripts, because the ZIP doesn't include them.

Do not rely only on the latest draft or an unpublished edit. The published version is the baseline that visitors currently receive.

๐Ÿ’พ Create a recoverable baseline

Save the complete published source outside the editor using a clear name that includes the project, version, and date. Keep the deployment ID with the backup. This lets you compare the live baseline with later drafts and restore the correct version if required.

โœ๏ธ Change only the required file

  1. Restore the version marked "Published" (or the version you trust) from Version History, then make your changes from there.
  2. Open src/lib/useFormSubmission.ts.
  3. Make only the approved change in that file.
  4. Review the file difference against the baseline.
  5. Confirm that no other source files, environment values, routes, or settings changed.
  6. Run the available validation, preview, or test checks before publishing.

If the editor does not provide a file comparison, compare your saved baseline with the proposed source before continuing. Avoid editing the live version directly when a draft workflow is available.

๐Ÿš€ Publish and verify safely

  1. Save your changes and note the new version's short ID (commit SHA) in Version History.
  2. Publish only after the file-level review is complete.
  3. Confirm that the Publish modal shows Published and that the version marked "Published" in Version History is your new version.
  4. Test the form submission flow in a suitable environment.
  5. Check the expected analytics event, property, or conversion after a test submission.
  6. Record the publication time and any observed analytics delay.

Analytics tools may process events after a delay. Compare the event name, trigger, destination, and reporting time rather than assuming an analytics report reflects the source immediately.

โ†ฉ๏ธ Restore the exact previous baseline

Use the deployment or version history to select the recorded previously published version and restore or republish it. If that version is unavailable, use the complete backup you saved and create a new draft from it. Verify the restored version ID and test the form before considering the recovery complete.

๐Ÿงฉ Back up Header Embeddings separately

Header Embeddings should be backed up independently from the source. Copy and securely store their complete contents, along with the project, environment, and backup date. Record whether they are enabled and where they are applied.

Do not assume that publishing or reverting source code also restores Header Embeddings. Unless the Studio version history explicitly includes them, treat these settings as separate. Review the Header Embeddings area after every publish or revert and restore the saved values separately when needed.

๐Ÿ“Š Resolve analytics settings discrepancies

  • Compare the analytics settings currently saved in Studio with the settings included in the confirmed published version.
  • Check whether the setting belongs to source code, project configuration, or Header Embeddings.
  • Verify the active environment and project before comparing values.
  • Confirm that the expected analytics script or event is present only once.
  • Test with a new submission and allow for reporting or processing delays.
  • Document the published version, settings snapshot, test time, and observed result.

Never overwrite a working configuration to match an unverified report. Preserve the live baseline first, then make the smallest change needed to resolve the discrepancy.

๐Ÿ’ฌ Get help

If you need further assistance, open the chat widget in the bottom-right corner of the platform and send your message. A member of our support team will reply in the chat.

Was this article helpful?