Ship
Add an embed to a data app
Choose the dashboard or metric your customers see, and get the code for your app.
The video on Create a data app shows these steps from a new data app.
Before you start
- You have a data app.
- Your role has the Data App Create or Edit permission.
Steps
-
Go to Data Studio > Data Apps and open the data app.
-
Select Embeds, then Add embed.

The Embeds tab of a new data app. Add embed is in the empty state, and at the top right once the app has embeds. -
Choose the Workspace. It starts on the workspace you are in, so check it.
-
Choose the Embed type:
- Dashboard: embeds the whole dashboard. Pick the Dashboard.
- Metric: embeds one metric. Pick the Dashboard, then the Metric.
-
Optional: enter a Description, up to 250 characters.
-
Select Create embed.

A dashboard embed: the workspace, the type, the dashboard and a short description.
You see Embed created with the embed’s name, and a Get embed code button. The embed appears in the table with its Key and Type, and the data app changes from Draft to Live.
Get the code
-
On the embed’s row, select Get snippet.

After you create an embed, its row has Get snippet. -
Optional: set Appearance to Use saved theme, Light, Dark or System. Don’t specify leaves the attribute out.

Appearance and Design change the snippet below them. -
Select Copy snippet at the bottom of the dialog and paste it into your app.

Copy snippet is at the bottom, under the options for this embed.
The snippet looks like this:
<dbn-dashboard token="token" dashboard-id="<your-dashboard-id>"></dbn-dashboard>Replace token with a guest token from your backend.
Test it as a customer
-
After you copy the snippet, select Create test guest token under Next: test this embed as a customer.

The test token works for one hour. The test snippet and the preview use it. -
Select Preview as customer.
The embed opens in a new tab, in a sample host app, as your customer sees it.

Control what your customers can do
Select the embed’s row to open Access control. Turn on what end users may do in this embed, such as Create metrics, Schedule email reports or View underlying data. See Data app settings.
If something goes wrong
- Pick a dashboard. Choose a dashboard before you select Create embed.
- Add embed is locked. Embedding needs the Enterprise plan.