Are you planning to change your theme? That's great - you can reinstall Analyzify into your new theme within minutes. And the best part is - you can do this while your new theme is still NOT published.
Analyzify injects advanced data layers and a GTM container code into your store, and this is done through the theme files. So, if you change and/or update your theme, your tracking could be interrupted. Make sure to follow this tutorial or contact our support team through the app to get help.
At the moment, this is the way the Shopify apps can interact with Shopify stores - however, Shopify announced a new change - and we will adopt it immediately once it is released.
Here are some best practices to move on with a theme update:
- The new or updated theme should NOT be published immediately.
- You should reinstall Analyzify into a draft theme on your theme library.
- You can test the tags & data using the preview mode to make sure that the tracking is working as expected.
- Once you verify, you can publish the new/updated theme on your own time.
There is no risk in working on a Draft theme - so you can easily do this change by yourself. Furthermore, Shopify provides a changelog for each file/snippet on your theme so that you can easily revert changes in any case.
Step 1: Select a New Theme to Restart
Log in to the Analyzify app from your Shopify Admin. On your Home Dashboard, choose the theme you wish to install Analyzify on and click "Save". Then, click "Restart".
Step 2: Choose the New Theme
Select a theme duplication method and duplicate your theme. You can choose the "I don't want to duplicate my theme" option if you’ve already duplicated your theme or wish to set up Analyzify on another existing theme (including your live theme.)
If you've chosen to duplicate your theme manually and can't see your theme on the dropdown list, make sure to click on the "Refresh my themes list" button.
Step 3: Choose Code Injections
From the list, check the type of code injections you wish to be installed on this new theme. After doing so, click "Next step", and confirm once you are sure everything is correct.
Step 4: Test Your New Theme
We love testing and validating. Leave this browser window as it is and open a new tab. Visit Shopify Admin > "Online Store" > "Themes", and find your newly updated theme. Preview the theme and test all the major functions such as add-to-cart, remove-from-cart, checkout, search filters, etc. Once you verify everything is working, close this tab.
Step 5: Complete the Rest of the Setup Steps
Technically, you are done :)! However, you should still go through all the remaining setup steps on the app. You DO NOT have to touch GTM or change your checkout codes; just clicking "Next Step" on each of them is enough. Once you are through all the steps, click "Finish Setup" and make sure to review your task list to ensure everything is working correctly!
Step 6: (Optional) Verify Your Setup
We love double-checking, and we advise you to do the same :)! Move on to the Validation phase to validate your setup manually or do an automated validation through our troubleshooting system.