There may be a simple answer to this question which I am missing, so hopefully someone can help.
Thanks in advance
You can create a web block for javascrpt with a input parameter for key and also create a site property for assigning key for different environments.
Pass this site property as input to your webblock.
Thanks for the response, I have been involved in other tasks so am only now returning to this.
I have tried the web block and input parameter approach already with some success, however in the context of what I am trying to do it doesn't fully satisfy my requirement.
So, an example of what I need is.. the bold text is what i need to generate, with the key value from a site property - the rest i think i am Ok with
window["adrum-app-key"] = "AAM-AAB-AUM";
. . .
. . .