AppMeasurement automatically collects the page URL in each hit. If you want to override the page URL automatically collected by AppMeasurement, you can use this variable. You do not need to set this variable in most cases.
This variable is not an available dimension in Analysis Workspace. It is only available in Data Warehouse and Data Feeds. Additionally, Adobe data collection servers strip this dimension from all link tracking image requests. If you want to use page URL as a dimension in Analysis Workspace or want this dimension in link tracking hits, consider passing the
pageURL variable into an eVar on every hit.
The Data Collection UI automatically populates page URL. However, you can set the page URL override either while configuring the Analytics extension (global variables) or under rules.
You can set page URL to any string value.
s.pageURL variable is a string that contains the URL of the page. AppMeasurement automatically collects this variable, however you can override its value if desired.
s.pageURL = "https://example.com";
If you would like to use page URL as a dimension in reports, consider using the following in your implementation:
// Set eVar1 to page URL without protocol or query strings s.eVar1 = window.location.hostname + window.location.pathname;
If using the
digitalData data layer:
s.pageURL = digitalData.page.pageInfo.destinationURL;