I need to make the name of the logged in user appear inside the URL. Specifically in the user={name}.

I think, you will have to use a html-component, or an iFrame.
And use the “post-message”.
https://www.wix.com/velo/reference/$w/htmlcomponent/postmessage