Hi @sr1045 ,
You may target template and add js at template level.
Most probably one page component overridden from core component would be getting used in all the template types( or even you may be having limited number of template)
You can create a clientlib category and can add in customfooterlibs.html of that page component which are getting used in all the template
PFA
![MukeshYadav__0-1721303645557.png MukeshYadav__0-1721303645557.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/77116i8CD649060B182AF7/image-size/medium?v=v2&px=400)
If it just few line of script tag like for gtm etc you can directly tadd that cript in head.html
So based on your use case you can add js centrally which will reflect in all the already created and future pages
![MukeshYadav__0-1721305387133.png MukeshYadav__0-1721305387133.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/77117iF6D65A6194499335/image-size/medium?v=v2&px=400)
Thanks,