Dear fmssr,
if you want to embed an analysis the easiest approach is to use the "copy link" (or HTML to embed) function inside the document execution. (in the toolbar, on the vertical ellipsis button functionality list)

Usually if the document is not public, the authentication will be needed. To use the public document feature, be sure to have the public role availability selected for the desired document.
To be sure just check that inside the generated link there is the "/public" path.
Regards