XF 1.5 Tracking source of User Upgrades


Active member
I'm working on a project so that my members can upload premium resources that users can have access to if they upgrade their membership using User Upgrades.
I'd like those who upload resources to get paid everytime someone upgrades directly from clicking on their resource download button.
Is there a way to track which user upgrades were purchased after clicking a particular resource download button?
Thanks for your help :)