How to pass parameter in the url

Hello community,
i need some help.
I need to pass parameter in the url thru out the checkout and registration process.
I would appreciate any help on this topic

you should save variables in session, because customer can go back and forth in checkout, even leave it and then continue fron step 2 or 3.