Trying to pull "hash" value for 'Scramble_ip' event. Any idea how this can be done? I can't use ([n]) event numbers because the number of events varies from page to page. Can I call the event by name? Thank you!
Your problem is that technically you've allowed your value to be overwritten by a different event's value that is using hash
key too. Stop giving simple/repetitive names yo your properties and you will be good.
To fix this your best action would be to change the name of the hash, then make a DL variable in GTM for the new name and then use that.
If you can't change the name of the variable, then you still can hack around it with either:
function(){
return dataLayer.find(function(obj){return obj.event==="Scramble_IP"}).hash;
}