Show a discount code on the survey end page

Rewarding people for finishing a survey lifts completion rates—and the simplest reward is a discount code shown on the end page. Using a hidden variable, you can display a different code for each respondent, which is ideal for post-purchase thank-yous, research incentives, and loyalty rewards.

The idea is straightforward: you create the codes in your store or marketing tool, then pass each person’s code into the survey link, and Responsly shows that value on the thank-you screen.

Before you start: Responsly does not generate discount codes for you. Prepare the codes yourself in your e-commerce platform or promotion tool first.

How it works

Responsly displays whatever value you send in the survey URL through a hidden variable:

  1. You define a hidden variable (for example a promo-code field) and place it in the end-page text.
  2. Each survey link carries that respondent’s code as a URL parameter.
  3. When someone submits the survey, Responsly swaps the variable for their code on the end page.

This is the same mechanism used for unique codes for each respondent—here you’re just showing the value back to the respondent instead of only storing it.

Step 1: Add a hidden variable for the code

  1. Open your survey and go to Settings → Hidden variables.
  2. Add a new hidden variable and give it a clear name (for example promo or discount_code).

Hidden variables tab

Add promo code variable

Step 2: Insert the variable on the end page

  1. Open the end page of your survey for editing.
  2. In the text editor, click the $ button to insert a variable into the content.
  3. Select your promo-code variable so it appears inside the thank-you message (for example: “Thanks! Here’s your code: $promo”).

Insert hidden variable on end page

Step 3: Copy the survey URL with the variable

Back in Hidden variables, copy the survey URL that already includes your variable name as a parameter.

URL with variable

The placeholder value in this URL is usually just X—for example ?promo=X.

Step 4: Send each respondent their own code

For every link you send, replace the X placeholder with that person’s real discount code. How you do this depends on how you distribute the survey:

  • Email survey or CRM tool — use a merge field or mail-merge column so each recipient’s code is inserted automatically.
  • Manual sends — paste the individual code into the URL before sharing it.

When the respondent finishes the survey and reaches the end page, they see their personal promo code:

End page with discount code

Test before you launch

Open one of your personalized links yourself, complete the survey, and confirm the correct code appears on the end page. Check on both desktop and mobile so the thank-you message stays readable.

FAQ

Does Responsly generate discount codes automatically?

No. You create codes in your e-commerce or promotion tool, then pass each person’s code into the survey URL using a hidden variable so it appears on the end page.

How do I show a different code per respondent?

Define a hidden variable for the promo field, add it to the end page text with the $ variable picker, then replace the URL placeholder with the real code for each link you send—same pattern as unique respondent codes.

Can I combine a coupon with a personalized greeting?

Yes. Hidden variables can appear on the welcome screen, questions, or end page—see Greeting the respondent for name tokens and End page of the survey for other closing options.

Need help or have more questions?

Talk to us!