Embed Google Docs
Embed a Google Doc, Sheet or Slides presentation in a Confluence page with HTML Macro Pro, using Publish to web or a preview share link.
Embed a Google Doc, Sheet or Slides file
Publish the document to the web
In Google Docs, Sheets or Slides, open File > Share > Publish to web and copy the link. For Slides, Publish to web gives a presentation player URL that advances through your deck.
Insert the macro
On your Confluence page, type /html and choose Embed a URL / link to this page.
Paste the link and set the height
Paste the published URL, set the Block height (800 px or more works well for documents) and click Save.
Publish the page
Publish the Confluence page. The document renders on the page and reflects future edits to the source.
The private alternative: a preview share link
Publish to web makes the document readable by anyone with the link. If that is too open, use a regular share link and replace /edit at the end with /preview. Each viewer then needs to be signed into Google with access to the document, which keeps your sharing rules intact.
Good to know
- Publish to web is public. Anyone with the link can read the published version. Use the preview-link alternative for restricted documents.
- Some Google Workspace organizations disable Publish to web. If the menu item is missing, ask your Workspace admin or use the preview link.
- Restricted CSP mode: ask your Confluence admin to enable the Google Drive template, which covers docs.google.com, drive.google.com and Google’s asset hosts. See Content Security Policy.
- Document refuses to load? See Troubleshooting for the refused-to-embed case.
Where to go next
- Integrations & examples: the same pattern for other tools.
- Embedding websites: the general URL walkthrough.
Add HTML Macro Pro to Confluence
Securely embed websites and custom code in your Confluence pages.