tracking affiliates in mixpanel

644 Views Asked by At

Trying to use mixpanel to set up a basic affiliate tracking system.

No problem setting up referral links and tracking events through the segmentation system, however I want to be able to attribute a certain event to a refferer even if the event is triggered in a later session (e.g the classic 30 day cookie for a standard affiliate program).

Anyone know how to go about doing this?

Thanks

2

There are 2 best solutions below

0
On

Building on raylu's answer you certainly want a super property: How do I set a property every time?

For affiliates you likely want to only count the first affiliate so you want to use register_once: https://mixpanel.com/docs/integration-libraries/javascript-full-api#register_once

0
On

It sounds like you want a super property.