Note: This guide is only for stores using v6.0 to v8.0.2 of Littledata’s Shopify tracking script. Stores that installed in September 2019 or later, or that have been updated to V8, should use our automated Optimize connection instead.
Step 1. Go to Shopify Admin > Online Store > Themes.
Step 2. Hit Actions > Edit Code:
Step 3. Look for Littledatalayer.liquid under the Snippets folder and modify the file as follows.
configobject to include an extra line
(where OPTIMIZE_CONTAINER_ID should be replaced with your Optimize container ID)
Then at the top of the Littledatalayer.liquid file (before the first line), add the anti-flicker snippet found here.
Google Optimize should now work as intended without creating a conflict with your Littledata setup.