hier
Hierarchy variables are custom variables that let you see a site’s structure. ÃÛ¶¹ÊÓÆµ supports up to 5 hierarchy variables in your implementation.
This variable is useful for sites that have more than three levels in their site structure. For example, a media site can have 4 levels to the Sports section: Sports
, Local Sports
, Baseball
, and Team name
. If someone visits the Baseball page, Sports, Local Sports, and Baseball, all levels reflect that visit.
Before using hierarchies in your implementation, make sure that you configure each hierarchy in report suite settings.
Hierarchies using the Web SDK
Hierarchies are mapped for ÃÛ¶¹ÊÓÆµ Analytics under the XDM fields xdm._experience.analytics.customDimensions.hierarchies.hier1
to xdm._experience.analytics.customDimensions.hierarchies.hier5
.
Hierarchies using the ÃÛ¶¹ÊÓÆµ Analytics extension
You can set hierarchies either while configuring the Analytics extension (global variables) or under rules.
- Log in to using your ÃÛ¶¹ÊÓÆµID 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 ÃÛ¶¹ÊÓÆµ Analytics - Set Variables action or click the ‘+’ icon.
- Set the Extension drop-down list to ÃÛ¶¹ÊÓÆµ Analytics, and the Action Type to Set Variables.
- Locate the Hierarchy section.
You can set a hierarchy value to a static string or reference a data element. You can also set the desired delimiter. Make sure that the delimiter that you set here matches the delimiter set in Report suite settings.