Book a call

Free guide, about 30 minutes

Remove leftover code from uninstalled Shopify apps

Uninstalled Shopify apps can leave scripts in your theme. Duplicate the theme, check app embeds, search the code and Customer events, then test and publish.

In short. Uninstalling a Shopify app doesn't always remove what it added to your theme. Duplicate the live theme and work on the copy. Check App embeds in the theme editor, search the code for the old app's name and script domain, check Settings > Customer events for old pixels, then preview, test and publish.

Updated

Older apps often added code straight into theme files. When you uninstall them, that code can stay behind, still loading scripts or showing errors on every page.

The number of apps matters less than what each one loads on the storefront. One app that adds a heavy script to every page can cost more than several that load nothing.

Step by step

Tick each step as you go. Your ticks stay in this browser, so you can come back later.

0 of 8 done
  1. Duplicate the live theme

    In Online Store > Themes, open the three-dot menu on your current theme and choose Duplicate. Make every change on the copy, so the live store keeps working while you edit.

  2. List what you removed

    Note the names of apps you've uninstalled. PageSpeed Insights also lists third-party scripts by web address, which helps you spot ones you no longer recognise.

  3. Check App embeds

    Go to Online Store > Themes > Customize on the copy and open App embeds. Turn off anything from an app you no longer use, then save.

  4. Search the theme code

    On the copy, open Edit code. Search for the old app's name and the domain its scripts load from. Look in layout/theme.liquid first, then in the snippets, sections and assets folders.

  5. Remove calls to missing snippets

    A line such as {% render 'old-app' %} or {% include 'old-app' %} that points to a snippet the app has deleted can show an error on the page. Remove the line, and any code around it that only served the app.

  6. Check Customer events

    Go to Settings > Customer events. App pixels and custom pixels that still collect data are listed there. Disconnect custom pixels from tools you no longer use.

  7. Preview and test

    Preview the copy on a phone and a computer. Open the home page, a collection, a product page and the cart, add something to the cart, and check nothing is broken or missing.

  8. Publish and measure

    When everything works, publish the copy. Keep the old theme for a while, so you can switch back. Run PageSpeed Insights again and compare with your first test.

See which outside scripts your store loads

When to ask for help

Ask for help if you aren't sure whether code belongs to an old app or to the theme, if removing it breaks a page, or if the code sits inside files you have customised. The app's developer can often tell you exactly what it added.

Book a call

Pick a time that suits you. The calendar only shows slots we're actually free, and you get an invite straight away.

Booking runs on Google Calendar. Open it in a new tab