Page URL

The ‘Page URL’ dimension lists the URLs on your site.

IMPORTANT
This dimension is only available in Data Warehouse. If you want to use a URL dimension in other Analytics solutions, consider copying the value into an eVar on every hit.

Populate this dimension with data

AppMeasurement automatically collects the page URL on each Page view call (t()). You can override the collected value using the pageURL variable. If a URL is longer than 255 bytes, the overflow is stored in the -g query string parameter. Protocol and query strings in the URL are included. Link tracking calls (tl()) always strip this dimension, even if the URL value exists.

Property
Value
AppMeasurement variable
pageURL
Web SDK / XDM field
web.webPageDetails.URL
Query parameter
g
XML tag
<pageUrl>
Byte limit
255 bytes (No fixed limit with overflow)
Persistence
Hit

Populate an eVar with URL

Adobe recommends setting an eVar to the concatenated string window.location.hostname + window.location.pathname. This string typically works better than window.location.href because it omits protocol, query strings, and anchor tags.

If you want the eVar to exactly match the ‘Page URL’ dimension in Data Warehouse, you can use dynamic variables and set the eVar to D=g on each hit.

Dimension items

Dimension items include the URLs of pages on your site.

recommendation-more-help
analytics-help-components