Hi @juan43 ,
Correct me if I am reading the issue right?
webEvents[0].xdm.web.webPageDetails.name field is sometimes getting URLs and sometimes page names, whereas it should reflect page name everytime?
If so, then it suggests a problem with how your data layer and the Adobe Web SDK are interacting.
The most probable cause is that your data layer is being populated inconsistently. You might be pushing both the URL and the page name to the data layer at different times or under different conditions. The Web SDK then picks up whichever value is present in the data layer when the event is fired.
You could try to look for below two corrections:
1. Double-check that your data element in the Web SDK is correctly configured to read the page name from the data layer. It's possible it's accidentally reading the URL instead.
2. If you have multiple data elements that might populate the webPageDetails.name field, ensure the correct one has the highest priority.
Thanks,
Jyoti