Perspective URL Parameter->session property (Or alternate approach)

I’m trying to be able to define an identifier for each session of a set of pages that will be used in multiple locations, for the same task.

My thought was to use a URL parameter to identify the location, and then map that to a custom session property to use as a global variable for the actions related to that specific location. Is this a viable approach? How do I make that work?

I have the input parameter working, but that just puts it on a view. Do I need to do something like change script on the parameter to write to the session property?

Thanks!