Record last touchpoint before contact conversion

There are original and latest source fields that come out of the box from Hubspot. The latest will contain what you need. Then just build a workflow to capture the latest into your own custom property when the lifecycle stage is reached and you should be all set.