Is it possible to have a set of two buttons at the bottom of each collection page in Webflow that ask "Was this helpful?" and track the responses?
Published on
September 22, 2023
Yes, it is possible to have a set of two buttons at the bottom of each collection page in Webflow that ask "Was this helpful?" and track the responses. Here's how you can achieve this:
- Create a new collection in your Webflow project specifically for tracking the helpfulness of the articles. Let's call this collection "Helpful Votes".
- In the "Helpful Votes" collection, add at least two fields: one for the article ID (to identify which article the vote belongs to) and another for the vote response (e.g., "Yes" or "No").
- On each collection page where you want to show the "Was this helpful?" buttons, add two buttons (or any other element of your choice) and label them as "Yes" and "No".
- Create two interactions, one for the "Yes" button and another for the "No" button. Set each interaction to trigger when the respective button is clicked.
- In each interaction, you will need to create a custom code embed for the interaction to work. The code will handle updating the "Helpful Votes" collection with the appropriate vote response.
- In the custom code embed, use JavaScript to make an AJAX request to the Webflow CMS API and update the "Helpful Votes" collection accordingly. You will need to send the article ID and the vote response as parameters in the API request.
- Finally, you may also want to add a thank-you message or a subtle notification to the user indicating that their vote has been recorded.
By following these steps, you can track the responses to the "Was this helpful?" question for each article in your Webflow collection.
Benefits of tracking helpfulness:
- Gain insights into which articles are most useful to users
- Identify areas for improvement in your content
- Make data-driven decisions about which articles to prioritize, update, or remove
Additional suggestions:
- Consider implementing Google Analytics event tracking to get more detailed information about user interactions with the "Was this helpful?" buttons.
- Regularly analyze the data collected to identify trends and patterns that can help you improve your website's content and user experience.
Additional Questions:
- How can I add custom interactions to buttons in Webflow?
- Can I use Google Analytics with Webflow to track user interactions?
- Is it possible to track user feedback on specific sections of a page in Webflow?