state
IMPORTANT
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.
State using the Adobe Analytics extension
You can set state either while configuring the Analytics extension (global variables) or under rules.
- Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
- Click the desired tag property.
- Go to the Rules tab, then click the desired rule (or create a rule).
- Under Actions, click an existing Adobe Analytics - Set Variables action or click the ‘+’ icon.
- Set the Extension drop-down list to Adobe Analytics, and the Action Type to Set Variables.
- Locate the State section.
You can set state to any string value or data element.
s.state in AppMeasurement and the Analytics extension custom code editor
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";
recommendation-more-help
b4f6d761-4a8b-4322-b801-c85b9e3be690