Manual Script tag for faster loading speed

IMPORTANT:
this method is deprecated, it is now recommended to enable the app directly in the theme editor.
This will result in the same loading speed increase:  How can I enable the options app in the theme editor?

---------------------------------------------

If you want to improve the loading speed of the app, you can install the script tag manually in your theme:

Video instructions

In the app, navigate to the Settings tab. 

Toggle "Manually add script tag". 

Copy the Script HTML content. 

next you have to edit your theme code to paste the copied script tag. 

This can be done in the Shopify Admin theme editor, navigate to   Online Store > Themes,  [More actions] > Edit Code.

Chose one of the following locations:

  • layout/theme.liquid  (loaded on every page)
  • templates/product.liquid  (loaded only on product pages

For "layout/theme.liquid" paste the script tag before the closing of the </head>:

....
  <script src="https://assets.cloudlift.app/api/assets/options.js?shop={{ shop.permanent_domain }}"></script>
</head>

For "templates/product.liquid" paste the script at the beginning of the file. 

Save the theme and test that the widget is showing on your desired placements.

If you need further assistance, please send us a request and we will be happy to help you out.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.