I want to target base on browser language (ex. German) but are not sure how to create a correct Expression-Target for this?
Not sure if user.header or user.browser should be used and how the correct syntax should look like? Then there is also user.header('accept-language') and user.header('accept') which both seem to fit somehow?
I created these 3 Expression Targets but am not sure about which one is correct?
I am trying to do something similar, but with language and locale.
What exactly does the user.header('accept-language') get? usually the accept language has locale and factor weighting included. Accept-Language - HTTP | MDN
for example if i wanted to create a profile script differentiating england from united states for english, i would need to parse the language and locale. would the user.header("accept-language") give me "en-gb" or "en-us"?
Does using console.log work for debugging these scripts? It is difficult to use the built in target parameters without know exactly what it provides.