Are there any errors on the profile script list screen for your new profile? I think your profile script looks fine. After viewing the XYZ page and then loading another page you do not see the XYP page show up in an mbox trace? You should find it in the trace object under this path:
trace > profile > afterExecutionProfileSnapshot > profileAttributes. It should be named user.WhatEverYouNamedIt.