How can I encapsulate a global variable created in a script element in an Angular project? For example, Google Analytics is added to a project through a script elem
script