How best to implement a mechanism for affiliate / referral links? Did not come across before, it was necessary to quickly roll out immediately to production.
Two options while in my head:
- Another visitor comes with a get-parameter
?utm_source=VasyaInviter
(they will understand him and Yandex at the same time). If not yet, it receives cookiesinvitedBy=VasyaInviter
, a record is written to the database about how well Vasya is. - referral traffic to drive on spec. url type
site.ru/ref/VasyaInviter
, there process, put down a cookie and transfer to the main page.
What do you think is better?