From what I have see it processes what in datalayer.
From the above looks like you are using the page url to set the value in the datalayer.
In implementations I have seen there would be an attribute you allow a user to set to overwrite the url reference (so if product id analytics attribute empty use url - if populated then use populated value).
This will allow you to keep historical data if url changes do occur.
A second consideration would be making use of segment builder in Workspace to build a segment that looks like:
PageID = LAPTOP002001
PagID = LAPTOP002001-DELL-XPS-13
This segment can then be used for reporting as it will return the de-duplicated values for metrics in Workspace.