Easily add the Formbricks App Survey SDK to your app with guides for different frameworks.
appUrl
parameter in all SDK configurations should point to your public domain (PUBLIC_URL environment variable). This is the domain where surveys and public-facing content are served, which may be different from your admin interface domain (WEBAPP_URL).Single Domain Setup: If you are using the single domain setup, the appUrl
parameter in all SDK configurations should point to your admin domain (WEBAPP_URL environment variable).<script>
tag to your HTML head:
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
npm
, pnpm
, or yarn
.
Note that zod
is required as a peer dependency and must also be installed in your project.
App.js/ts
file to initialize Formbricks.
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
app/formbricks.tsx
and call it in app/layout.tsx
.
_app.tsx
.
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
App.js/App.tsx
file to initialize Formbricks:
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
https://github.com/formbricks/ios.git
)
1.0.0
).
Podfile
:
pod install
in your project directory
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
build.gradle.kts
:
Name | Type | Description |
---|---|---|
environment-id | string | Formbricks Environment ID. |
app-url | string | URL of the hosted Formbricks instance. |
?formbricksDebug=true
to your app’s URL (e.g., https://example.com?formbricksDebug=true)
.
F12
or right-click and select “Inspect” > “Console”.
F12
or right-click and select “Inspect Element” > “Console”.
Option + Command + C
to open developer tools and go to the “Console” tab.