Please see Formbricks Docs. Specifically, Quickstart/Implementation details.
Formbricks is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out formbricks.com.
- Install the Formbricks package inside your project using npm:
npm install @formbricks/js- Import Formbricks and initialize the widget in your main component (e.g., App.tsx or App.js):
import formbricks from "@formbricks/js";
if (typeof window !== "undefined") {
formbricks.setup({
workspaceId: "your-workspace-id",
appUrl: "https://app.formbricks.com",
});
}Replace your-workspace-id with your actual workspace ID. You can find your workspace ID in the Setup Checklist in the Formbricks settings. If you want to use the user identification feature, please check out our docs for details.
environmentIdis still accepted for backward compatibility but is deprecated and will be removed in a future version. PreferworkspaceId.
For more detailed guides for different frameworks, check out our Framework Guides.