We do not have native support for the url. As a workaround, you can add a custom property for each JS-SDK air call you need (e.g. trackPageView). You will need to set the property value yourself. I checked that this works:
appInsights.trackPageView(null, null, {urlReferrer: document.referrer});
The first two zeros force us to automatically set the name and URL of the page. The third parameter is a custom property object. Then you can group "urlReferrer" on the portal.
source share