Theme cleanup guide

Remove Klaviyo code from your Shopify theme

What you’ll need

  • Your theme file (ZIP) (Shopify emails it to you)

    How to get this: Your theme file (ZIP)
    1. Online Store › Themes › … on your theme › Download theme file.
    2. Shopify emails you a link; download the ZIP from the email.
  • A duplicate of your theme to test on

    How to get this: A duplicate of your theme to test on
    1. Online Store › Themes › … on your theme › Duplicate.
    2. Make the change on the copy, preview it, and publish only when it works.

    Step-by-step guide (opens in a new tab)

Find Klaviyo code

What Klaviyo can leave behind

  • Script or stylesheet tags loading from static.klaviyo.com, klaviyo.com.
  • Snippet files whose names start with “klaviyo”, and the render or include tags that load them.
  • Widget markup (star badges, review or form boxes) in product, collection or cart templates.
  • An app block or app embed entry in your templates or theme settings.

Remove it

  1. Online Store > Themes > … > Download theme file, and open the ZIP from the email.
  2. Drop it into the finder. Leave the app unticked (you don’t use it anymore).
  3. Download the cleaned theme, upload it as a new theme, preview, then publish.

More guides