This article will walk you through how to publicly embed the visualizations for a Look in an
<iframe>, so it can be displayed in a separate HTML document or as a link by itself in the browser.
- Your Looker Administrator must have enabled Public Access for you to do this.
- You must be in production mode to get the embed URL for a Look as a table or visualization.
How to Embed a Visualization Into an iframe
- If you have already created a visualization for the Look you would like to embed, open Spaces, select the Space your Look is in, and click on the three small dots to the right of your Look, under the Favorite section. In the menu that opens, click Edit Settings. A window will show you the Looker Settings of the look. Skip to step 5 of these directions to continue.
- If you have not yet created the visualization you would like to embed, open Spaces, select a Space, and open the Look you wish to embed.
- Open the Visualization section of your Look, and modify the visualization to your liking. Once your Look is saved with the desired changes, click on the small gear in the upper left, then select Edit Settings.
- Enable Public Access for the Look by checking the Public Access box. Then click Save.
Note: If you do not see the Public Access checkbox, refer to Why Can’t I See the Make Public Option for My Look?
- Copy the link that appears in the Embed Visualization section. You can also embed a table by copying the link in the Embed Data Table section.
- Paste this inline
<iframe>into the HTML code where you would like the visualization to appear.
Viewing an Embedded Visualization Without an iframe
You can also view the embedded visualization without inserting it via an html iframe, by pasting the embed link in your browser. For example, if your iframe link looks like this:
<iframe src="https://learn.looker.com/embed/public/CNdbvTys8ZVgQn423Sf4y2GYhy6b6522" width="600" height="338" frameborder="0"></iframe>
You can view just the embedded visualization by pasting just the URL into your browser:
This will look something like: