Infusionsoft Referral Tracking URLs on Clickfunnels connected via API

Hi,
I am having my optinform in clickfunnel which is integrated with Infusionsoft API.
I have created the tracking links for my referrals in Infusionsoft. How do I go about ensuring that the contacts opting in via my referrals links have my referral associated with that contact in Infusionsoft.
Thanks,