Shopify themes, liquid, logos, and UX
Is it possible to import a Javascript file into each page:
<script src='https://www.other_site.com/the_script.js"/>
and then use the following code to fire a pixel function located inside "the_script.js" by setting it up in the Settings --> Customer Events section?
analytics.subscribe("checkout_completed", event => {
THE_SCRIPT_OBJ.firePixel();
}
I understand that liquid files are going to be deprecated, so I was looking for a method to do this without editing liquid files.
I've tried downloading the remote file "the_script.js", and adding it to the Assets folder. I expected it will be available as soon as the site loads, but that didn't work.
I tried editing the liquid file (Though I dont want to do this), but that also didn't work:
{{ "the_script.js" | asset_url | script_tag }}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025