Embed Visualizations Using Iframes

An iframe is used to display a web content from one website inside another website. You can use iframes to embed your dashboards and Analytical Designer inside your web applications.

Embed Dashboards

To embed a dashboard into your web application, copy the following iframe snippet into your web app and subtitute your own values for <host_url>, <workspace_id> and <dashboard_id>:

<iframe
    title="My Embedded GoodData Dashboard"
    id="embedded-app-frame"
    src="<host_url>/dashboards/embedded/#/workspace/<workspace_id>/dashboard/<dashboard_id>"
    height="500px" 
    width="100%"
    frameborder="0"
></iframe>

For more details on how to embed, configure, authenticate and control embedded dashboards, see Embed Dashboards Using Iframes.

Generate an Iframe Snippet Automatically

You can also generate an iframe code snippet automatically from your dashboard’s web UI.

Steps:

  1. Open the dashboard you want to embed.

  2. Click the </> button in the top right corner.

    Embedding button

    The embedding dialog opens.

  3. Select Iframe.

    Embedding dialog for iframes
  4. Click Copy code to copy the iframe code snippet to your clipboard.

    You can now use the code snippet to embed the dashboard into your web application.

    Dashboard embeded with iframe

Embed Analytical Designer

To eembed a Analytical Designer into your web application, copy the following iframe snippet into your web app and subtitute your own values for <host_url>, <workspace_id> and <visualization_id>:

<iframe
    title="My Embedded GoodData Analytical Designer"
    id="embedded-app-frame"
    src="<host_url>/analyze/embedded/#/<workspace_id>/<visualization_id>"
    height="500px" 
    width="100%" 
    frameborder="0"
></iframe>

For more details on how to embed, configure, authenticate and control embedded Analytical Designer, see Embed Analytical Designer Using Iframes.