Embedded analytics SDK - plugins

⚠️ This feature is in beta. Feel free to play around with it, but be aware that things might change (and may not work as expected).

Embedded analytics SDK is only available on Pro and Enterprise plans (both self-hosted and on Metabase Cloud).

The Metabase Embedding SDK supports plugins to customize the behavior of components. These plugins can be used in a global context or on a per-component basis.

Global plugins

To use a plugin globally, add the plugin to the MetabaseProvider’s pluginsConfig prop:


<MetabaseProvider
    config={config}
    theme={theme}
    pluginsConfig={{
        mapQuestionClickActions: [...] // Add your custom actions here
    }}
>
    {children}
</MetabaseProvider>

Component plugins

To use a plugin on a per-component basis, pass the plugin as a prop to the component:


<InteractiveQuestion
    questionId={1}
    plugins={{
        mapQuestionClickActions: [...],
    }}
/>

Further reading

Read docs for other versions of Metabase.

Want to improve these docs? Propose a change.