How to add a survey to your Shopify order confirmation email
Edit the Order confirmation notification to add a survey link, or ask on the Thank you page instead. What each option costs in effort and timing.
You can put a survey in your order confirmation email by editing the Order confirmation notification template and pasting a link into the email body. Shopify’s own Forms app builds forms that display on your online store, so the email carries a link to one instead of the form itself. The other place to ask is your Thank you page, right after payment, using an app block, which is a piece of an app that you place on the page the way you add a section in the theme editor.
Why the two options behave differently
These are two different moments, and they don’t reach the same customer the same way.
The Thank you page appears once, immediately after checkout. It confirms the order and shows a confirmation number instead of an order number. After that the customer can’t open it again: if they try to return, Shopify shows them the Order status page instead.
The order confirmation email is sent automatically when a customer places an order, and it links to the Order status page, which customers can revisit.
The email stays in the inbox, so a survey link in it can be opened days later, while a Thank you page survey has to be answered right after payment, in that one visit.
Option 1: Add a survey link to the Order confirmation email
The Order confirmation email is a notification template. You edit it in code, with HTML for the body and Liquid for the dynamic parts.
- In your Shopify admin, go to Settings › Notifications.
- Click Customer notifications.
- Click Order confirmation.
- Click Edit code.
- Edit the Email subject and the Email body (HTML).
- To add the link, put an HTML anchor tag where you want it, such as
<a href="https://example.com/pages/survey">Tell us how you heard about us</a>. Shopify’s own template uses the same kind of link, such as<a href="{{ shop.url }}">{{ shop.name }}</a>, so an email body can hold a link. - Click Preview to check your unsaved changes, then Send test email to send the notification to the account you used to log in with.
- Click Save.
Two things are easy to miss.
First, you have to confirm your sender email address before you can edit the body and the subject. Second, templates are written in Liquid, Shopify’s templating language. Liquid fills in order details when the email is sent. In an email template, order properties are written without order. in front of them, and one variable you may want is order_status_url, which returns the link to that order’s Order status page.
If you make a mistake, open the template and click Revert to, then Default. Shopify recommends hiring a Partner for advanced template changes, so keep your edit small if HTML is new to you.
Where the link should point
Shopify’s Forms app is free, and if you want to keep everything inside Shopify it’s the natural place for the form the email links to. Its forms display on your online store: either a popup that floats over the page, or an inline form embedded in a theme section. It needs the Forms theme app embed installed, and the docs describe those two placements only, so a Forms form can’t sit inside the email itself.
For an email survey, create an inline form and use Create landing page. Forms builds a page for you at a URL like example.com/pages/your-custom-form-URL, and you link to that page from the Order confirmation email. You can also add the form to an existing page template and link to that page.
Forms can collect a single-line text answer, a dropdown, radio buttons, multi-line text, multiple choice checkboxes, a date, a number, or a file upload, up to 31 fields on one form. A form can tag customers who submit it, and you can have up to 25 forms per store. Multi-step forms and conditional logic aren’t supported.
You can link to a form tool outside Shopify instead. That works the same way from the customer’s side, but unless that tool is connected to your Shopify store, the answers stay in that other tool, so they don’t tag a customer in Shopify or land in a customer profile the way a Forms submission can.
Option 2: Ask on the Thank you page
The Thank you page is the other place to ask. Shopify’s developer docs list survey requests as one of the standard things an app can add to that page with a block. You place the block in Shopify’s checkout and accounts editor; the steps are in How to add Afterglow to your Thank you and Order status pages.
The trade-off is the timing above. You catch the customer while the order confirmation is on screen, with no link to click and no inbox involved, but you only get the one chance. A survey on that page also arrives with order context attached, so an app can store the answer against the order it came from. A Shopify Forms form always asks for an email address or a phone number, and it can tag the customer, but it isn’t tied to the order unless you add a field for the order number.
If you’re asking about attribution, Ask “How did you hear about us?” on your Shopify Thank you page covers wording the question and the answer options.
Comparing the two
- Effort. The email route means editing HTML inside a notification template. The Thank you page route means adding an app block in the checkout and accounts editor and saving, with no code.
- Timing. The Thank you page is shown right after payment. The email is sent after the order is created and can be read much later.
- Repeat visits. The email stays in the inbox, so the survey link can be opened again later. The Thank you page is shown once.
- What you can collect. Either route can ask a multiple-choice question or a free-text one. The Shopify Forms route also supports dates, numbers and file uploads, which a page block survey may not.
- Order context. A survey on the Thank you page can be tied to the order automatically. A form on a landing page isn’t tied to an order unless the customer tells you which one.
- Tying it to Shopify data. A Forms submission can tag the customer and store fields on their profile. An external form tool usually can’t.
Neither route guarantees answers. Whichever you pick, keep it to one question and make it skippable.
Doing this with Afterglow
Afterglow’s survey block is built for the Thank you page. On a new store, the home page checklist offers Add a “How did you hear about us?” survey, which turns the block on and seeds one multiple-choice question with seven options, in this order: Google or another search engine, Instagram, Facebook, TikTok, YouTube, Friend or family, and Other.
You can edit it or build your own. Set a question’s Answer type to Short text or Multiple choice; a survey holds up to 5 questions, a question prompt runs to 200 characters, an option to 80, and a customer’s written answer to 500 characters. A choice question takes between 2 and 7 options. Answers export as a CSV with the submitted date, order name and customer ID.
The survey is on the Free plan, which collects up to 100 responses a month. Starter is $9 a month for unlimited responses, Growth is $29 and adds order tracking, Pro is $49 a month and adds the Referral & discount block, which shows one fixed code or a unique code per order. Paid plans have a 14-day free trial.
One limitation to plan around: the survey shows on the Thank you page only. Afterglow can’t add it to a notification email, and it can’t ask a customer who has already left the page, so the emailed-survey route isn’t something Afterglow covers.
Sources
- Customizing email notification templates (Shopify Help Center), checked October 12, 2026
- Setting up customer notifications (Shopify Help Center), checked October 12, 2026
- Notifications variables reference (Shopify Help Center), checked October 12, 2026
- Store notifications (Shopify Help Center), checked October 12, 2026
- Upgrading and replacing your Thank you and Order status pages (Shopify Help Center), checked October 12, 2026
- Using the checkout and accounts editor (Shopify Help Center), checked October 12, 2026
- Order confirmation numbers (Shopify Help Center), checked October 12, 2026
- Order status page (Shopify Help Center), checked October 12, 2026
- Create forms (Shopify Help Center), checked October 12, 2026
- Manage forms (Shopify Help Center), checked October 12, 2026
- Settings for both popup and inline forms (Shopify Help Center), checked October 12, 2026
- Shopify Forms (Shopify App Store), checked October 12, 2026
- About Thank you and Order status page customization (shopify.dev), checked October 12, 2026