Good morning, could you please tell me how to add a global script to the DOM in one place so that it works on all pages???
Hi @b.anastasiia, how’s it going?
If you want to add a script inside the <head> tag of your project:
But if you’d like to share more details about exactly what you’re implementing, it’ll be easier for the community to help.
Cheers ![]()
I’m doing well, hope you are too) @andremiani
Now I have another question — I found out this can be done with the help of VTEX’s pixel-app-template.
So what’s the difference between pixel-app-template and render-runtime?)
For me, the Pixel App is more useful when an agency needs to create a solution that goes beyond just loading a library in the head — like the examples mentioned in the VTEX documentation for sales tracking, user support, and marketing services — and that needs to be installed across multiple clients.
Helmet, on the other hand, is more useful for selectively including libraries and scripts in the project.