How to send survey data to your thank you page
- "Send post data to thank you page" is an option that automatically sends the survey data to your thank you page as $_POST data, if selected as shown here:
- "Send name and email to thank you page URL" sends the name and email address of the person submitting the survey to your thank you page URL. In order to use this option you need to have an optin form added as an element to your survey, and you also need to set up a thank you page redirect under the Rules tab.
In order for the $_POST data to be sent to your thank you page, you need to first set up a rule in your survey with a "redirect to thank you page" action.
Then, when someone is redirected to your thank you page, all of the survey data will be included in the $_POST data on that page. Here's an example:
You can then access that data on your thank you page via custom code, that you would need to create to parse the data, and then display it on the page or send it off to another platform.
As an example, if you have this option enabled, and you also have a redirect enabled so that people go to "https://surveyfunnel.io" after the survey is submitted, then your thank you page URL would look like this:
Then you can add custom code to your thank you page to retrieve these GET parameters ( sfname and sfemail).
If you have any questions, please contact us on chat or let us know at email@example.com.