For example, below is some standard code from Adobe Analytics (SiteCatalyst) setting the Adobe Analytics account name.
var s_account = "acmeincprod";
s_account will work if you are referencing the variable within the same Tag; however, if I try to reference
s_account in a separate Tag or outside of Manage, I will receive an error stating
s_account is undefined because the variable is scoped locally.
window object. If we take our prior example, we would simply use the below code to scope the
s_account variable globally.
window.s_account = "acmeincprod";
When using the above code, we can now reference the variable
s_account with any Tag in Manage or any other technology.*