DEV Community

Cover image for πŸ“ƒ πŸ‘€ Run in-app surveys in your web app in 10 minutes with Formbricks πŸ€“β€οΈβ€πŸ”₯
Johannes
Johannes

Posted on

πŸ“ƒ πŸ‘€ Run in-app surveys in your web app in 10 minutes with Formbricks πŸ€“β€οΈβ€πŸ”₯

Did you know that in app surveys have a whopping 6-10x better conversion rate compared to those boring email surveys? If you're eager to know how you can set one up in your web app in a breezy 10-15 minutes, just read on...

TL;DR

I'll show you how you can display any in app survey in your web app with Formbricks (open source). It'll allow you to add a Feedback Box, invite users to interviews, measure feature satisfaction and muuuuuch more 🀍

Look at all of them possibilities with FormbrickLook at all of them possibilities with Formbricks


Formbricks: Open-source Forms and Surveys 🀸

A word about us before we dive in: Formbricks helps you understand how users like your product or service. It helps you ask the right people the right questions to build the most user-friendly product possible. The best part? It"s open-source, pls support us with a ⭐

Can Formbricks has all the stars


4 simple steps

Let's dive right in. This is what we'll be doing:

  1. Create a free Formbricks Cloud account
  2. Create your first survey
  3. Set up the Formbricks Widget in your app
  4. Restart your app and enjoy your brand new in app survey

1. Grab a Formbricks Cloud Account - it's free

You can totally self-host Formbricks if you're into that, but if you're chasing speed, the cloud is your best friend. Just sign up here and breeze through the onboarding steps until you're here:

Formbricks Open Source Experience Management Onboarding

2. Craft Your First Survey πŸ› οΈ

Okay, let's make a survey! Hop into one of the templates, and then swing by the survey settings:

In app micro survey popup

There's a little note in orange that's telling us we haven't connected with our app yet. No sweat, we'll get to that! First, let's set our survey right.

For the "How to ask" setting, make sure you pick "Web App":

Collect in app survey responses in 10 minutes

Now, wander down to the "Survey Trigger" section and choose "New Session". This means that on every new user session this survey will pop:

Survey settings for popup micro surve

In "Recontact Options", set it up in a way that suits your taste. By default, a survey only nudges a user once. For testing, it makes sense to display the survey until a response was provided (or even all the time, ignoring the waiting period):

In app survey trigger for feedback popup micro survey

Once you're happy, slam that Publish button!

You'll be escorted to the Summary Page, which is your magical place for all survey responses. From there, head over to the Setup Checklist:

Options for survey popup in app micro survey

3. Unleash the Formbricks Widget πŸ§™

Now on the Setup Checklist, you'll notice a couple of things. First up, there's the Widget Status Indicator. When your app and Formbricks Cloud do their special handshake, this will light up green:

pop up survey settings for inapp web survey

The manual's got a code snippet which has:

feedback popup in app survey

Let's Bring Formbricks to Life in Your App!

Now, depending on what tech stack you're using for your frontend, the process varies slightly. Here are some guides:

4. Revive Your App & Spy on the Console πŸ‘€

Restart your app and then pop open your browser console. If all's gone to plan, you should spot your survey sitting in the bottom right corner:

In app survey in React app for micro surveys
Annnd that should be it!

πŸ‘ Congrats, you did it! πŸš€


Debugging Support - 'Cause Sometimes Things Get Wonky πŸ›

If your survey's playing hide-and-seek, don't sweat. Here's a mini cheat sheet to help you:

Connectivity Issues

Swing back to app.formbricks.com and check the Setup Checklist. If it's singing the "Not connected" blues, your app hasn't pinged Formbricks Cloud yet.

setup checklist ui of survey popup for in app surveys

The Fix: Double-check your widget's heartbeat in your browser console. For that make sure that debug: true mode is enabled in the Formbricks embedding. If things look off, we've got your back over at our Discord.


Survey not loaded

Your app's talks with Formbricks Cloud, but the widget did not load your survey.

survey logs for in app survey pop up micro

The Fix: Confirm your survey is not a draft anymore and set to "in progress" in Formbricks Cloud's Survey Summary page.


Survey's Being Shy

Your survey's there, but it's just not being triggered:

ui of survey popup for in app micro surveys

The Fix:

  1. Try opening your app incognito-style. Remember, the New Session action is only fired after 60 minutes of user inactivity or if a user gets logged out via formbricks.logout().
  2. See if β€œEvent β€˜New Session” is being tracked in the logs. If it's all good but the survey's still hiding, give us a shout at our Discord πŸ‘‡

Still stuck? No worries! Drop by our Discord and we'll jam together until we get it right. 🀘


Let's look back and learn

Today we've learned how to:

  • Connect Formbricks with your app
  • Create an in app survey
  • Display it in your app
  • Send the data to the analysis backend

From now on, the world of in app surveys is yours!

Check out these best practices for inspiration:

Comment for which you'd like the next tutorial!

Can Formbricks has allll the starsss
To help us keep these articles coming, drop us a twinkelin' ⭐

Thank you for reading!
Johannes

Top comments (14)

Collapse
 
pandeymangg profile image
Anshuman Pandey

Great article! Formbricks to the moon πŸš€

Collapse
 
jobenjada profile image
Johannes

hehe 🌝

Collapse
 
nevodavid profile image
Nevo David

Amazing articles to-point.
Bye bye typeform.

Collapse
 
jobenjada profile image
Johannes

haha byeee

Collapse
 
panayiotisgeorgiou profile image
Panayiotis Georgiou

thanks for sharing!

Collapse
 
jobenjada profile image
Johannes

very welcome!

Collapse
 
dumebii profile image
Dumebi Okolo • Edited

Alright! πŸš€ πŸš€

Collapse
 
jobenjada profile image
Johannes

hehe woop woop!

Collapse
 
matthiasnannt profile image
Matthias Nannt

the puppy meme is just the cutest ever!!!! 🀩🀩🀩

Collapse
 
jobenjada profile image
Johannes

hahahaha

Collapse
 
shubhampalriwala profile image
Shubham Palriwala

woah! to-the-point and exactly what one would needπŸš€

Collapse
 
jobenjada profile image
Johannes

thanks shubham! :)

Collapse
 
dhruwang profile image
Dhruwang Jariwala

That is amazing !!

Collapse
 
jobenjada profile image
Johannes

πŸš€πŸš€πŸš€