cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Session property based on JavaScript variable - use of key?

jeff_rowell
Helper

I'm trying to configure a Session Property that references a JavaScript variable. In the session property rule, the interface is demanding that I provide a "key". I have not been able to find any documentation of what the purpose of this "key" is. Why is it not enough to simply reference the name of the JavaScript variable? What should the "key" be set to?

 

5 REPLIES 5

skrystosik
DynaMight Guru
DynaMight Guru

Key is just the name that will be use as index in DT. You can have different key and display name (optional).

Sebastian


Regards, Sebastian

I'm not really clear as to what is meany by "index"... however, what I have found is that the Display Name value seems to be ignored and the session property shows up in the user session with a label that is identical to the value that I put into the "key" field.


Dant3
Pro

Key is, as you already notice, the field name given to the detected values.

So if we got a "market" variable the key could be "detected_market". So when you search the string or double object in the session that would be it's name. detected_market = 3 or what ever. Is a required field.


Services Solution Engineer @PowerCloud - Observability/CloudOps Certified / Former SE @Dynatrace.

Thanks Dante. Thanks for clarifying that the key is essentially just the name that you want to assign to the extracted values. It would appear that Display Value doesn't work however.


I didn't actually try the "Display value", maybe is something as an alias for the key, idk. You also can't create a key, delete it and then create it again. Since an error will show that the key already exists. That is when i understood the meaningn of the fiel. Sadly it take me 3 session properties to understand it. It's a nice really addtion. Hope it reaches the Mobile app also.


Services Solution Engineer @PowerCloud - Observability/CloudOps Certified / Former SE @Dynatrace.

Featured Posts