Metabase
The synergy between Forest Admin and Metabase is perfect. While Forest Admin provides an easy way to manage data, Metabase enables you to analyze and extract insights from that data.
All you have to do to embed your Metabase dashboard into Forest Admin is to create a new chart on Forest Admin and select the Chart type: "Smart Chart"
Then, click on "Edit in builder" to start creating your Smart Chart.
Component
No custom javascript is required to integrate Metabase, so you can leave the Component code by default:
Style
To create a visually attractive look, you can alter the CSS to fit your preferences, but this style should provide a quite good design experience.
Template
The integration is done using an <iframe>
to be included in your template. The src
tag must be modified to specify the correct METABASE_SITE_URL
and JWT_TOKEN
.
METABASE_SITE_URL
This corresponds to the hostname of your Metabase instance. For example, if your Metabase instance is accessible through https://myanalytics.mycompany.com, then you must set your METABASE_SITE_URL
to myanalytics.mycompany.com
.
JWT_TOKEN
The JWT_TOKEN ensures valid authentication when retrieving the Metabase dashboard. The simplest way to do this is to generate it online using https://token.dev. To sign the JWT token, you need to use the METABASE_SECRET_KEY
provided by Metabase.
You must replace METABASE_DASHBOARD_ID
by the the correct dashboard ID provided by Metabase.
JWT Payload:
And voilà! Your Metabase dashboard is now fully integrated into Forest Admin 💚.\
Last updated