Remember that if you are using a tag management system, you can for instance easily use the document.URL from the browser, using JavaScript.
So, even without having it explicitly set in the data layer it will still be a simple task to map it in the Tag Manager to the tracking call