Install Trevilo on Shopify
Add the Trevilo script to your Shopify theme's theme.liquid file, so your store's contact form sends each enquiry to Trevilo as well.
Updated 18 Nov 2026
You add Trevilo to a Shopify store by editing your theme's code once. Your contact form keeps working as it does now, and each enquiry also comes to Trevilo.
Before you start
Copy your script from Trevilo. Open Setup and go to Connect your website, then click Copy next to the script. You can also find it later on the Websites page: click Open next to your website.
Shopify recommends duplicating your theme first, so you have a backup copy to go back to.
Add the script
From your Shopify admin, go to Online Store.
On your current theme, click the menu icon (three dots), then select Edit code.
In the file list, open the Layout folder and click
theme.liquid.Find the closing
</head>tag. Paste your Trevilo script on the line just before it.Click Save.
Check it is working
Open your store's contact page.
In Trevilo, click Check this site in Setup, or Check my site on the Websites page.
Send a real enquiry through your contact form and check it appears in Trevilo under Enquiries.
Good to know
Changing theme. The script lives in your current theme. If you publish a different theme, add the script to that theme's
theme.liquidas well.Theme updates. Shopify says a theme update can remove code changes that conflict with it. After updating your theme, check the script is still there.
Your myshopify.com address. Trevilo only accepts enquiries from your website's address, with or without
www. If visitors also use yourmyshopify.comaddress, add it in Trevilo on the Websites page: click Open next to your website and add it under Allowed addresses.Cart and checkout are left alone. Trevilo skips cart, checkout and payment forms, and any form with a password or card number field.
Newsletter sign-ups. A sign-up form that asks for an email address can look like an enquiry. To keep one out of Trevilo, contact us and we will help.
Forms from apps. If a form comes from an app and shows inside a frame from another service, the Trevilo script cannot read it. Send a test to check.
For what Trevilo does and does not capture, see Add Trevilo to any website.