Skip to main content
Embed components into your own applications to provide seamless integration for your users. The following components can be embedded:
  • dashboards, lite dashboards
  • visual authoring experience
  • source editor
When components are embedded, the way in which users can interact with them is determined by settings established in their user account. See Embedded Self-Service Analytics Component Controls.
insightsoftware recommends using Trusted Access for all embed-related workflows.
The list of options available on an embedded visual’s drop-down menu depends on: When options are shown for a visual in an embedded dashboard, they may be shown in the visual sidebar menu or within the visual drop-down menu itself, depending on the setting of the editor.placement property.
In environments where you use Typescript for your client side code, you can use Embed Manager as an npm package. See https://www.npmjs.com/package/logi-embed.
See the following topics for embedding the source editor:

Embedded Component Prerequisites

To embed a Self-Service Analytics component into your own application, the following prerequisites must be met:

Content Security Policy Support for Embedded Pages

Pages that include embedded Self-Service Analytics content can include content security policies with some restrictions. Some guidelines for creating these policies include:
  • script-src Allow the domain used to serve Self-Service Analytics. unsafe-inline or a nonce is required. unsafe-eval is not required.
  • style-src Allow the domain used to serve Self-Service Analytics. unsafe-inline is required; nonce is not yet supported. unsafe-eval is not required.
  • font-src Allow the domain used to serve Self-Service Analytics. Allow data: for embedded fonts.

Using Nonce

If you want to omit unsafe-inline for script-src, you must use a nonce in the page. The nonce should be a unique string that changes on each new page load. To instruct the page that the nonce is allowed, include it in the script-src portion of your content security policy definition as nonce-<random string>. Next, add the same string as the value of the nonce attribute on the script tag you use to import the Self-Service Analytics embed, as well as any scripts that call those embed functions. When this is included, the embed system will include the nonce on any inline script tags it creates. Example: index.html

Embed Multiple Dashboards On a Single Page

You can embed multiple dashboards on a single page of your application and in a single <div> in your application, including embedding one or more empty dashboards. You can also embed the same dashboard multiple times on a page and each embedded instance can use its own property settings (theme, mode, header, title). Finally, the dashboards can be embedded using different methods: you can embed one dashboard using generated embed code and another dashboard using JavaScript.
When more than one dashboard is embedded in application, the cross-visual filters that are published for a visual on one of the dashboards can be subscribed to by any visual on any of the embedded dashboards. However, this is not true unless the dashboards are embedded in the same application. Visuals in a dashboard open in one window or tab cannot subscribe to cross-visual filters published by visuals in a different window or tab.