How can I load one script for the product page, a different one for the home page, and another for category pages — is this possible?
I’m a beginner with VTEX, and I’d like to understand if this scenario is doable. I’d prefer not to use GTM and would like to handle everything through the VTEX platform itself.
In short, I need script X to run on the product page
Script Y to run on all other pages
The reason is that the same script has different parameters depending on where it’s executed. Does anyone have any ideas?
Hello Matheus (@kroskamatheus), good morning and welcome to the VTEX Community.
I’m part of the camp that thinks external tags and scripts should be centralized in GTM 
But, if you want to inject some code into the <HEAD> of certain pages, you can create an app using the Helmet component that will render the necessary tags on the pages where your app is loaded.
Or if you want to insert a script on all pages of the store, you can also use the Pixel App.
Thanks for the reply Andremiani, do you think it’s a better alternative?
I need a client to ‘embed’ my script only on the product pages — do you think it’s possible to do this via GTM? As long as it’s not embedded on other pages, but it’s important to be confident that it’s only on the product pages; with GTM I’m not sure I’ll be able to segment it correctly.
I liked the suggestion of the Helmet component, I just have one question — is it possible to use the Pixel App on any version, LEGACY or IO?
Cool, I’m new to VTEX too! There might be a chance I’m dealing with the same scenario. I have a web app where I create custom popups, and my clients integrate my app and use those popups — but with GTM, some users find it tricky. With that in mind, I wanted to create a script that clients could just download and use on pages with the /ofertas-agora path. I ran some tests in the dev workspace and couldn’t get the script to be global. Is there any material I can look into to get this working and offer this as a convenience to my clients?