@sistper Your questions gives good insights.
So as Gauresh mentioned .. You can have the viewName and pageName in XDM something link below.
alloy('sendEvent', {
xdm: {
web: {
webPageDetails: {
viewName: "men", // Dynamic view name
pageName: "men category", // Page name f...