Skip to main content
Iframe embedding is available on Premium and Enterprise plans.
Embed any dashboard into your application using an iframe. Dashboards can be embedded with either authentication mode:
  • Private embedding — for internal users with Cube accounts (e.g., embedding in Notion, Salesforce, internal tools)
  • Signed embedding — for external/customer-facing applications using server-generated sessions

Embed with private embedding

To embed a dashboard for internal users:
  1. Open your dashboard in Cube
  2. Click Share → Embed
  3. Copy the generated iframe code
Share dialog on a published dashboard in a folder, with Embed open next to Copy link, showing the iframe code and its Copy buttonShare dialog on a published dashboard in a folder, with Embed open next to Copy link, showing the iframe code and its Copy button
Then paste the iframe code into your application:
Users will be prompted to sign in with their Cube credentials when accessing the embedded dashboard. See Private embedding for details on the auth model and integration examples (Notion, Salesforce).

Embed with signed embedding

Signed embedding must be allowed on the dashboard first: open the dashboard, click Share → Embed, and turn on Allow signed embedding. You can also toggle it without opening the UI using the Cube CLI:
To embed a dashboard for external/customer-facing applications, generate a session on your backend and pass the session ID into the iframe:
See Signed embedding for the full session generation flow, API key setup, and a complete working example. To let viewers present an app’s slide deck full screen, include fullscreen in the iframe’s allow attribute, as in the snippets above. Without it, the deck shows no Full screen button.

Pre-set dashboard filters, granularities, and tabs via URL

You can pre-set the values of a dashboard’s controls — and the tab each tabs container opens on — by adding URL parameters: The semantic view and member must match the internal names (not display titles) configured on the widget — as must the member on the right-hand side of ms_, which is a measure rather than a dimension when the field switcher’s Field Type is Measure. For filters, a value without a type applies under the filter’s own condition. Granularities are lowercase and must be one of the switcher’s allowed granularities — day, week, month, quarter, year, plus second, minute, and hour for time dimensions that expose them. A custom granularity is written by its name in the data model, such as fiscal_year, not by its title. A tab_ parameter is read on a published dashboard only, embedded or not — in the dashboard builder it is ignored. It takes internal ids rather than tab titles, so read them off a link the dashboard writes itself: open it, switch to the tab you want, and copy the URL. One naming a widget the dashboard doesn’t have, or a tab that container doesn’t have, is ignored and the container opens on its own default tab. Example:
The filter’s JSON value is shown unencoded for readability. Percent-encode it before the URL goes anywhere real — pasted as-is into the src="…" of the iframe snippet above, its raw " closes the attribute and truncates the URL. f_, tg_, and ms_ are read in the dashboard builder and on a published dashboard, embedded or not, and are applied to the control for that member on the dashboard. On a published dashboard with tabs, they land on the controls shown on the tabs the link opens, and a control placed in another tab keeps its own default. A tg_ or ms_ with no such control is ignored, and so is an f_ in the dashboard builder. On a published dashboard an f_ with no filter for its member goes to a filter on the same cube dimension in another view, or to a filter the Dynamic controls widget allows; when neither takes it, the dashboard drops it and shows “Unable to filter by” and the field’s title, as for a drill-through. A granularity outside the switcher’s allowed list is ignored, as is a member the field switcher doesn’t offer — its Alternatives, plus the member it replaces. An f_ is also ignored when every filter for its member has its visibility set to Disabled: the filters open on the values they would have without the link, and a published dashboard also shows “Unable to filter by” for it. A switcher set to Disabled still takes its tg_ or ms_. When a member has more than one filter, an f_ with a type applies to the enabled filters with that condition, and one without a type applies to every enabled filter, each under its own condition. When no enabled filter has the link’s condition, the value goes to the first enabled filter. See Several filters on one field. A dashboard that is an app is the exception: it has no controls, so it ignores tg_, ms_, dc_ and tab_, and every f_ applies to every report that the app reads. The {"value":[]} form below clears a control; an app adds no condition for it, but a report on a view without that dimension still fails to load, as with any other filter. To remove a filter from an app, leave its f_ out. A dc_ parameter adds a control to the dashboard’s Dynamic controls widget, as a viewer does with the widget’s add button, and that control then takes the f_, tg_ or ms_ for its field like a placed one. It is read on a published dashboard only, embedded or not, and only for a control type and field the widget allows; its JSON is described in Controls → Sharing the current selection. Viewers of an embedded dashboard can add controls to the widget themselves too. An empty value clears a control instead of setting it: f_ with an empty value and no type ({"value":[]}), or an empty tg_ (tg_orders_transactions.created_at=), opens that control cleared, and its default does not fill it back in. See Controls → Sharing the current selection. The reverse direction is published-only: when a viewer changes a control — or switches a tab — the new value is written back into the dashboard’s own URL, so the state a link carries and the state a viewer reaches by clicking are the same format. See Controls → Sharing the current selection.

Allow chart and dashboard export

By default, embedded dashboards do not expose a download action on individual widgets or on the dashboard as a whole. To let viewers download a chart widget as a CSV, PNG, or PDF file (and a table widget as a print version too), and download the whole dashboard as a PNG, a PDF, or a print version, add the allowExport=true query parameter to the embed URL:
When enabled, each chart widget shows a Download button (the download icon) that opens the chart’s Download settings dialog, offering CSV, PNG, and PDF (see Download a single chart), and a dashboard-level Download button appears — docked in the header in Creator Mode, floating over the dashboard in the published-dashboard embed. It opens the same Download settings dialog as a published dashboard in Cube (see Download as PNG, PDF, or CSV): PNG or PDF, Snapshot or Print version, and the control values the file takes. Print version downloads a PDF laid out for A4 paper rather than a capture of the screen (see Print version). The print version’s summary line states the value of every control, Hidden ones included, so a tenant filter pre-set through f_… or taken from a user attribute appears as text in the file. A table widget’s dialog also offers Print version under Layout with PDF picked, the print version of that table alone, with the same summary line (see Print a single table). allowExport is the single switch that grants all of these — there is no way to allow one format while blocking another. It also grants the Download button in the Creator Mode report builder; see Show and hide features. In an embed with AI features off, a chart’s and a report’s Download settings dialog lists PNG and PDF disabled, with the reason “PNG and PDF are unavailable while AI features are turned off”; CSV stays available. The whole dashboard’s dialog, which offers only PNG and PDF, shows both disabled with the same reason, so nothing downloads from it. Only the exact literal string true opts in: allowExport=1, allowExport=TRUE, a bare ?allowExport, and omitting the parameter (the default) all leave every download action hidden. A widget’s CSV is generated client-side from the data already loaded into the widget, so no additional query is issued. With CSV picked, the dialog’s CSV settings choose the headers and the value format (see Downloading results as CSV). Inside an embed, allowExport — not the viewer’s own Cube role — is the authority on whether the download actions appear. The account-wide Allow data downloads switch outranks it — see Restricting data downloads. To turn on per-widget downloads without the whole-dashboard Download button — for a host that surfaces its own dashboard-level export, for example — add showDashboardExportMenu=false:
Like the header controls below, only the exact literal string false hides the button; it has no effect unless allowExport=true is also set.

Downloads in a sandboxed iframe

Every download is saved from inside the embed’s iframe, so your page needs no extra configuration for it — unless you sandbox the iframe. A sandbox attribute blocks file downloads unless it includes allow-downloads:
  • allow-scripts allow-same-origin are required for the embed to load at all.
  • allow-downloads is required for downloads. Without it, the browser drops the file silently: the viewer clicks Download and nothing happens, with no error shown.
  • A Content-Security-Policy: sandbox … response header on your page applies the same restriction to the iframe, so add allow-downloads there too.
  • Other CSP directives on your page and Permissions-Policy do not affect downloads. frame-src (or its default-src fallback) must still allow your Cube tenant’s origin for the embed to load at all.

Show or hide the AI chat

Embedded dashboards show an AI chat (the agent panel and its launcher bubble) by default. You can control it in two ways:
  • Globally, in the UI. Toggle Show AI chat on embedded dashboards under Embed → Settings in the Cube console. This switch is account-wide — it turns the AI chat on or off for the entire embedded surface, i.e. every embedded dashboard.
  • Per session, via the API. Pass settings.showDashboardChat when you generate the session. A per-session value takes precedence over the global toggle — false hides the chat for that session even when it is enabled account-wide, and true shows it even when it is disabled:
Embedded dashboard with the AI chat panel open, showing an answer about orders by statusEmbedded dashboard with the AI chat panel open, showing an answer about orders by status
This applies to embedded published dashboards; it does not affect the standalone Analytics Chat surface, where embedding the chat is itself the opt-in. To withhold AI from a session entirely — every surface, enforced on the server — use settings.allowAi instead. See Show and hide features. To let viewers dictate messages in the AI chat, include microphone in the iframe’s allow attribute, as in the snippets above. Without it, the chat shows no dictation control. The Analytics Chat embed page lists the other requirements.

Comments

Viewers of an embedded dashboard can discuss it in comment threads, kept separate per embed tenant. The panel is off until the account turns on Allow comments on embedded dashboards under Embed → Settings. Dashboard Comments documents that setting and what it does not gate, how embedTenantName separates one customer’s conversation from another’s, the API behind the panel, and who may edit, delete, and resolve.

Show or hide header controls

A dashboard opened in Creator Mode has a header with its title, a back button, and — when the viewer has permission — the Edit and Duplicate actions. A published dashboard embedded on its own shows no header. Hide any of these controls individually with URL parameters on the embed iframe src:
Dashboard opened in Creator Mode with the back button, the title, Edit and Duplicate in the headerDashboard opened in Creator Mode with the back button, the title, Edit and Duplicate in the header
Every one of these defaults to shown. Only the exact literal string false hides a control — =0, =False, =FALSE, and a bare ?showDashboardTitle (no value) all leave it visible. Note this is the inverse of allowExport above, where only the literal string true opts in.
These parameters are URL-only — they aren’t accepted in the Generate Session settings object, unlike showDashboardChat, and they have no account-wide default under Embed → Settings.
These parameters apply to the dashboard header only. Setting showDashboardHeader=false overrides the other four: the whole bar disappears regardless of their values. showDashboardEditButton can only hide the Edit action; it can never show one to a viewer who lacks edit permission. In Creator Mode, showDashboardEditButton=false also hides the Dynamic controls widget’s Promote to dashboard button, which shows only to viewers Edit is available to. The export menu has its own switch, showDashboardExportMenu=false, covered above under Allow chart and dashboard export — unlike the header controls above, it’s hidden by default. It also isn’t part of the dashboard header the way those controls are: in Creator Mode it’s docked in the header, but on the published-dashboard embed it floats over the dashboard, so showDashboardHeader=false doesn’t hide it there.

Creator Mode workbook header

The Creator Mode workbook header — which carries the workbook name, tabs, Publish, and Share — is a separate surface with its own back-button switch: showWorkbookBackButton is independent of showDashboardBackButton above — the two headers are separate surfaces, so a host that wants neither back button sets both. The rest of the workbook header (name, tabs, Publish, Share) has no equivalent switch, since those actions are part of the authoring flow. The workbook actions menu still offers View all, so hiding the back button never removes a way back to the workspace. It follows the same rules as the parameters above: only the exact literal string false hides it, and it is URL-only — not accepted in the Generate Session settings object, and with no account-wide default under Embed → Settings. These parameters are read from the URL the host loaded the iframe with and stay pinned for the life of the embed, so they survive in-app navigation (for example, from the home-page dashboard card, or after publishing a draft).

Keep the dashboard refreshing

Add autoRefresh to the embed iframe src to refresh the whole dashboard every few minutes while the host page shows it, as live refresh does in Cube:
Without the parameter, or with any other value, the embed doesn’t refresh on its own. It works the same with private and signed embedding, and in Creator Mode dashboards. Like the header parameters above, it is read from the URL the host loaded the iframe with and stays pinned for the life of the embed. An embedded dashboard has no Live refresh or Stop live refresh item: the host’s src decides whether it refreshes.

Set the language

Embedded dashboards render their UI in the account’s default language, which you can override per embed by adding the ?locale= query parameter:
See Localization for the list of supported languages and the other ways to set the language.

Customize appearance

You can style an embedded dashboard — background, padding, widget borders, titles, and fonts — from the Theme tab in the dashboard builder. See Dashboards → Styling for the full list of options.