Originally created by: jonas-hoebenreich
We propose the implementation of frontend-only attributes to enhance user customization and interaction. This feature will empower developers to dynamically set attributes specific to the frontend, enabling targeted survey triggers based on user-defined criteria. Additionally, metadata from these attributes can be added to survey responses from frontend to backend, facilitating a smoother integration between the two.
Introduce a method, perhaps named formbricks.setFrontendAttribute(key, value), to enable the definition of frontend-only attributes. These attributes will be applicable only during the current page view, providing a localized and dynamic user experience.
With frontend-only attributes, developers can leverage these key-value pairs to finely tune survey triggers. For instance, a survey could be triggered based on specific conditions, such as displaying it only when the 'bucket' attribute is equal to '0' and the 'language' attribute equals 'EN'. This granular control enhances the precision of user engagement strategies.
When a user responds to a survey, the current set of frontend attributes should be automatically included as metadata in the survey response. This integration ensures that valuable user context is seamlessly passed from the frontend to the backend, facilitating further analysis and decision-making.
No response
No response
Originally posted by: mattinannt
@jonas-hoebenreich thanks for the issue :-) We have already created a design proposal that is currently under internal review. We will keep you updated.
Hopefully we can start development on this as early as next week, once we have successfully merged Advanced Attribute Filtering, which handles attribute filtering and user segmentation for identified users (non-public websites)
Originally posted by: jobenjada
Hey @jonas-hoebenreich
there is quite some work going on on the targeting side of things. Your request comes at a good time and we want to tackle it once the Advanced User Targeting PR is merged.
I spent some time designing the feature incl. the developer experience. Here is a write up:
https://formbricks.notion.site/Targeting-Redesign-Public-91974e7a133648eaabe4b9a8e7ea6ed9?pvs=4
Would love to get your feedback on it to see if it aligns with what you're requesting and if you have any suggestions re. scalability or developer experience 🤓
Originally posted by: jonas-hoebenreich
Hi @jobenjada,
thank you so much for sharing this, I really appreciate that you want to add website survey attributes and on the fly triggers 💚
From my first read through, I noticed the following points:
Best,
Jonas
Originally posted by: jobenjada
Hey Jonas!
Cheers!