How to Add a Google Doc to a Confluence page using the HTML include macro

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

To add a Google Doc to a Confluence page using the HTML Include Macro perform the following:

In Google Drive/ Google Doc

  1. Navigate to Google Drive

  2. Edit the Doc

  3. Under File choose: Publish to the web

  4. Publish the document by clicking the Start Publishing under the Published content & settings section.

  5. Ensure that the Automatically republish when changes are made is enabled so that the document republishes every-time there is any change in the document.

  6. Click the Link tab and copy the URL.

In Confluence

  1. Ensure that the https://docs.google.com/ is in the Allowlist. This will allow Confluence to accept content from that domain.

  2. Once done, head over to a Confluence page and click Edit

  3. Add a HTML Include Macro

  4. In the macro's setting paste the Google Doc URL from step #6 above

  5. The document will be displayed in Confluence. Updates to the document will also be displayed.

Solution

Related Articles

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.