All things Shopify and commerce
Hi fellow developers,
I'm developing a Shopify public app and need to install JavaScript code for a chatbot on every page of a store (e.g., index and product pages). This chatbot allows visitors to track orders and ask questions about products.
I was planning to use assets.json via the API, but realized the write_themes access scope is now restricted. To minimize work for the merchant, I need to insert <script>{code}</script> into something like layout/theme.liquid.
Should I implement this using theme extensions or app embeds? What’s the best approach to achieve this with minimal merchant effort?
Thanks for your insights!
Hi @ThePilsen ,
This is Theodore from PageFly - Shopify Page Builder App.
For your Shopify public app that injects chatbot code, choose app embeds over theme extensions for minimal merchant effort. Here's why:
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
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