# Any way to track referral information on pledges?

**URL:** <https://www.patreondevelopers.com/t/any-way-to-track-referral-information-on-pledges/2870>\
**Category:** Friendly Help\
**Created:** [March 17, 2020, 1:43am UTC](https://www.patreondevelopers.com/t/any-way-to-track-referral-information-on-pledges/2870 "2020-03-17T01:43:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [March 23, 2020, 5:38pm UTC](https://www.patreondevelopers.com/t/any-way-to-track-referral-information-on-pledges/2870/4 "2020-03-23T17:38:04Z")

</div>

The filter ptrn/patron\_link allows you to filter the link that is used to send users to Patreon to unlock content.

You can receive this link, and then decode state vars out of the link, add your own variables, replace in the state vars in their new state, and then whatever you added to state var will be returned from Patreon to your site when the user returns.

So basically you can use this to send a parameter carrying affiliate id or other information to Patreon and take it back. But it wont persist: If the user just stops the process, and then goes to Patreon and directly signs up manually, the variable wont be there.

So it may be better to put a cookie.

---

_[View the full topic](https://www.patreondevelopers.com/t/any-way-to-track-referral-information-on-pledges/2870)._
