Google PageSpeed score is being negatively affected by HubSpot network requests

Hi Sandeep, I am a little new to hubspot… where would we use this script? Would it be installed in the template or somewhere in the header of page?

I was also wondering if : portalID and formID can be dynamic rather than having to manually update the form for each page?