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)
- Online Store › Themes › … on your theme › Download theme file.
- 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
- Online Store › Themes › … on your theme › Duplicate.
- Make the change on the copy, preview it, and publish only when it works.
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-…">.