on 08-16-2023 11:39 AM - edited on 05-08-2024 07:37 AM by Tristan
Have you ever wondered how tweets or YouTube videos are embedded into other web sites? Do you want to do the same with your Incorta dashboards and embed them into other web sites. iframe is an HTML tag supported by many browsers to do this very thing.
Embedding is the ability to render HTML content from one web page into another different web page. Embedding is an excellent features that makes it possible to provide dynamic and interactive third party web pages in the same page. This is similar to what you encounter in Facebook when you see embedded YouTube videos and watch them without having to leave and switch to Youtube.
Similarly, you can embed incorta dashboards within other web sites and put them in appropriate context. Users can even interact with the Incorta dashboards much as they would if they were in the Incorta UI.
There are three main steps that should be followed:
Here is an example of what the code might look like. In this case, the dashboard was embedded with iframe into Confluence:
<iframe data-delayedsrc="https://my-incorta.cloud.incorta.com/incorta/!incortaanalytics/#/dashboard/3517fe27-df88-4f8c-b121-e0adb607abe9/tab/ef8d825d-2b4d-4cda-8f7e-75be1a2c41c1" width="100%" height="900" frameborder="1" sandbox="allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation" class="conf-macro output-block" data-hasbody="false" data-macro-name="iframe" data-macro-id="7c5800170ad4179ae33753f8b20ba285" data-local-id="2b70fa25-fc89-41b9-b615-48223a03ea33">
And here is what the embedded dashboard looks like to end users.
In some cases you won't need to edit any code because the application supports adding iframes directly from the page itself without the need of editing the underlying code.
Performance is always a concern for any application. Tuning is important for user experience with Incorta dashboards, but there are also considerations specific to embedding Incorta content to consider.
Given that a user is allowed to go to the page where Incorta is embedded, security also needs to be considered from an Incorta perspective in order for the user to have the right experience.
Embedding third party content in you web pages could affect the layout of your page, making it a little more unwieldy. Here are some suggestions for managing how the page looks with Incorta content embedded.