How to capture registration source

That would take a plug in. If you’ve got a budget, let in Marketplace. If you want to do it yourself, there are topics about getting started.