This variable is retired and not an available dimension in Analysis Workspace. Use the US States dimension instead, which AppMeasurement automatically collects based on the location of the visitor.
In previous versions of Adobe Analytics, the state
variable was used when visitors filled out shipping information on retail sites. It is functionally identical to a prop, but is not available in Analysis Workspace.
You can set state either while configuring the Analytics extension (global variables) or under rules.
You can set state to any string value or data element.
The s.state
variable is a string that typically contains the state or province of the visitor. Full state names or two-letter codes are both valid. It has a maximum value of 50 bytes; longer values are truncated. Its default value is an empty string.
s.state = "Utah";