Skip to content

Add Formbricks Product-Market-Fit widget#467

Merged
joanreyero merged 4 commits into
linuxfoundation:mainfrom
mattinannt:feature/pmf-survey
Feb 15, 2023
Merged

Add Formbricks Product-Market-Fit widget#467
joanreyero merged 4 commits into
linuxfoundation:mainfrom
mattinannt:feature/pmf-survey

Conversation

@mattinannt
Copy link
Copy Markdown
Contributor

@mattinannt mattinannt commented Jan 27, 2023

Changes proposed ✍️

Replace the Typeform Product-Market-Fit-Survey widget with the Formbricks Pmf widget as discussed with Jonathan.

Screenshot 2023-01-27 at 14 36 01

Screenshot 2023-01-27 at 14 36 06

Screenshot 2023-01-27 at 14 37 26

Screenshot 2023-01-27 at 14 37 34

Screenshot 2023-01-27 at 15 34 04

Screenshot 2023-01-27 at 14 37 44

Screenshot 2023-01-27 at 14 37 51

The condition for displaying the banner has been set as follows:

  • formbricks PMF environment variables must be set
  • the user created their account after 01.01.2023
  • The user has been registered for at least 4 weeks
  • The user hasn't closed the banner yet.

You will need to set the following environment variables

VUE_APP_FORMBRICKS_URL=https://app.formbricks.com
VUE_APP_FORMBRICKS_PMF_FORM_ID=<YOUR_FORM_ID>

The Formbricks cloud has moved from xm.formbricks.com to app.formbricks.com. Please create a new account to use the PMF feature.

Todo:

  • Add a check to the Formbricks backend to see if the user has already submitted a pmf survey and hide the banner/widget from them.
  • The formbricksPmf.init() is called when showPmfSurvey is changed. To wait for the rerender to be completed, a setTimeout is used. This can be solved better (but is beyond my vue.js skills 😉)

Copy link
Copy Markdown
Contributor

@joanreyero joanreyero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the contribution! 😊

A couple of files need changes for the deployment to pick up the new environment variable.

  • frontend/scripts/docker-entrypoint.sh: Add "VUE_APP_FORMBRICKS_PMF_FORM_ID" to line 30
  • frontend/src/config.js: Add pmfFormId: 'CROWD_VUE_APP_FORMBRICKS_PMF_FORM_ID' to line 91

Otherwise, it looks great! 🔥

@mattinannt
Copy link
Copy Markdown
Contributor Author

mattinannt commented Feb 13, 2023

@joanreyero thanks for reviewing 🤗
I just updated the config and entrypoint as suggested and also use the updated formbricks package version.

@joanreyero joanreyero merged commit ca7d32f into linuxfoundation:main Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants