goodbotai / karma

Experience sampling bot
BSD 2-Clause "Simplified" License
7 stars 0 forks source link

Research a way to link users that refer other users to eachother #30

Closed pld closed 7 years ago

pld commented 7 years ago

Environment

all

Expected behavior

We'd like to be able to store a link from a user that interacted with the bot to a user that referred them to the bot.

If they click on a share link is that information available? If not, can we ask them to tell us who referred them in a way we can identify.

Actual behavior

These are not linked together

urbanslug commented 7 years ago

We shall add a ref to the bot link the ref value shall be the referrer's Rapidpro contact ID.

Basically we shall have the URL here https://github.com/goodbotai/karma/blob/master/karma.js#L389 be http://m.me/1504460956262236?ref=

When a user clicks this referral link we will store the ID of the user who referred them in their rapidpro contact.

Related to https://github.com/goodbotai/karma/issues/24

pld commented 7 years ago

That approach sounds good. This means that for everyone that joins by clicking on a link that they've received from another user of Karma, we'll know the connection between that new user and the person who referred them (so a backwards link).

Is this closed, did you make this change already?

On Fri, Sep 15, 2017 at 10:09 AM, Njagi Mwaniki notifications@github.com wrote:

Closed #30 https://github.com/goodbotai/karma/issues/30.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/goodbotai/karma/issues/30#event-1251153438, or mute the thread https://github.com/notifications/unsubscribe-auth/AADGEtInx6p6XTQmtEODdua0HYHs2j0Bks5sioUygaJpZM4PUeX9 .

urbanslug commented 7 years ago

No I'll make the change op close #24