Categories in another column, how to use dynamically?

Thanks @AlexAndorra for the help thus far. In this case, it would be something more similar to the former. People are choosing from a drop down.

I figured I would have to use “shape” to do this, but what I am still missing is if I wanted to retain the labels in the posterior, and I am not understanding how I might be able to do that. The quickstart shows me how I would integer index once I have shape defined, and I can understand that.

I’m also thinking ahead to next steps when it is a multilevel model, and I want to compare across the user’s countries of origin to see if there is a difference in behavior, but there is something I am missing on how to do that, and do that without losing the information of their labels and using integer indexing.