You can publish your dashboards either in your internal apps or publicly using our embedded dashboards feature. In order to enable the embedding, go to dashboard settings (three dots on the top-top side) and click
Once you enable the embedding, we will create a unique API key for your dashboard and create an example token that allows you to embed the dashboards in a secure way.
By default, all the dashboard filters will be exposed to the users but you can enforce a dashboard filter and hide it in the embedded dashboard by creating a token for the filter.
Let's say that we have the following dashboard with 2 filters:
If you want to enforce the
context_campign_source filter in the embedded dashboard and hide the filter from the user, create the token using JWT the following way:
And embed the following URL using the generated token:
We will only apply your filter automatically to all the reports in the dashboard and hide it from the user as follows:
You can publish your reports either in your internal apps or publicly if you want users to run ad-hoc queries on the data. In order to enable the embedding, go to report settings (three dots on the top-top side) and click
Export and then
If you embed a saved report, your embeds will also be updated automatically. If not, you will be embedding the report definition.
hide/show the query builder
If you would like to let the users modify & execute the queries interacting with the builder, you can generate your token programmatically. Here are the parameters for the token:
report type (required)
date range for event timestamp
The report filter will be hidden from the end user and it will be forced in the backend.
You need to create a JSON blob using the properties above and use your Embed Key as a JWT secret.
Updated almost 2 years ago