Embedded analytics SDK - plugins
Embedded analytics SDK is only available on Pro and Enterprise plans (both self-hosted and on Metabase Cloud). You can, however, play around with the SDK on your local machine without a license by using API keys to authenticate your embeds.
The Metabase Embedded analytics 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
authConfig={authConfig}
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.