First off: Java and Javascript are two completely different languages, so I assume you mean javascript. You are certainly not far off in your example! The correctly way of concenating (the fancy term for put together) is: ‘event_label’: hypeDocument.currentSceneName() + hypeDocument.currentLayoutName()
If you want to add something in the middle to separate the two, you just another string like so: ‘event_label’: hypeDocument.currentSceneName() + ' - ' hypeDocument.currentLayoutName()
Just a heads up that sometimes when copying quotes from these forums, you get ‘smart quotes’ instead of regular quotes (which will work in JavaScript).