Signup

Embed your form into your Shopify site

Embedding a form into your Shopify site is easy to do using Typeform’s embed code. Read on to learn how to use standard and full-screen embeds in Shopify.

Standard embeds (non-full screen)

1. Create the form you’d like to embed and click Publish to turn it live.

Screenshot 2024-04-17 at 12.11.02.png

2. Go to the form’s Share panel. Go to the Embed in a web page section and choose the embed mode you prefer for your form. Here, you can use anything except the Full-page option. We’ll choose a Standard embed.

Screenshot 2024-05-21 at 15.34.52.png

Click Start embedding to get the embed code.

Screenshot 2024-05-21 at 15.36.51.png

3. A pop-up will appear, click the dropdown and select Shopify.

shopify03.png

Click the Copy button to copy the embed code.

shopify04.png

4. Log in to your Shopify site. From the left-hand menu, open your Online Store. Click Pages, then open the page where you’d like to embed your form by clicking on it.

shopify5.png

Alternatively, you can click Add page in the upper right-hand corner to create a new page.

5. Click the Show HTML button within the page editor.

shopify6.png

6. Paste in your embed code in the location where you’d like it to appear on the page.

shopify7.png

7. Click Save.

shopify8.png

8. The embedded form won’t appear in the page editor, but you can click View page to see how the form looks on your live site:

shopify9.png

Here’s an example:

shopify10.png

Nice work - your embedded form is now active on your Shopify site!

Full-screen embeds

This option requires you to edit your Shopify theme code. If you’re not comfortable editing this code, or are not a proficient user of Shopify’s Liquid template language, Typeform recommends that you have a developer colleague on hand before trying a full-screen embed. Note that the Typeform team cannot provide support for custom site code.

1. Create the form you’d like to embed and click Publish to turn it live.

Screenshot 2024-04-17 at 12.11.02.png

2. Go to the form’s Share panel. Click Embed in a web page, then click the Full-page embed mode.

Fullpage_embed.png

Click Start embedding to get the embed code.

Screenshot 2024-05-21 at 15.36.51.png

3. A pop-up will appear, click the dropdown and select Shopify.

shopify03.png

Click the Copy button to copy the embed code.

shopify04.png

4. Log in to your Shopify site. From the left-hand menu, open your Online store, and then open Themes.

shopify14.png

5. Open the drop-down menu next to Current theme and select Edit code.

shopify15.png

6. On the code editing page, click Add a new template under Templates in the left-hand menu.

shopify16.png

7. From the left drop-down menu, choose what template type you’d like to base the new template on. Here, we’ve chosen page. Choose whether you’d like to create a JSON or Liquid template type - we’ve chosen liquid, which is the language Shopify uses for its themes. Then, give the new template a name.

shopify17.png

Click Create template once you’re done.

8. The template code will automatically load in the code editor. Paste in your Typeform embed code - here, we’ve done it between the page title and the page content. Click Save once you’re done.

shopify18.png

9. In the left-hand menu, navigate to Pages under Online Store.

shopify19.png

10. Click Add page in the upper right-hand corner.

shopify20.png

11. Give the new page a name.

shopify21.png

12. On the right-hand side of the page, click the drop-down menu under Theme template, and choose the page suffix that belongs to the template you created in steps 6-8.

shopify22.png

13. Click Save.

shopify23.png

14. Click View on your online store to view how the embed looks on your live Shopify site.

shopify24.png

You can adjust the code on the template page, or the height and width parameters in the form embed code, to change the way the embedded form looks on the website. However, Typeform cannot recommend one-size-fits-all solutions for custom code, so it’s best to check with a developer colleague before editing your Shopify code.

Tap into our community knowledge