Theme cleanup guide

Remove the Google Optimize anti-flicker snippet from Shopify

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 Optimize code

What it looks like

  • A <style>.async-hide { opacity: 0 !important }</style> line.
  • A short script with 'async-hide' and a timeout like 4000.
  • A <script src="https://www.googleoptimize.com/optimize.js?id=OPT-…">.

More guides