Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am building a Shopify app for installing google tag manager scripts. The scripts are generated on a few parameters in the back-end so users enters gtm-id / domain in the front-end and this generates a head code and a body code.
Now I want to insert this code in all pages of the customer shopify store.
I saw the script tags api but seems not recommend anymore. Next step I did was generate a extension and under blocks created my files. But these come with 2 problems
- How to place my dynamic script instead of a static script
- The user needs to enable it on a separate page ( the less clicks the better sow can I do this with the api)
Thanks in advance
There is a new solution for <head> section of Shopify pages – Head Page Notia app which is free to install and use.
In this app you can add script to all pages or special code for particular page. For example you can add Structure data JSON according Schema.org.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024