Tonomy-Foundation / Tonomy-ID-Management

0 stars 0 forks source link

Sales platform - Referral tracking #558

Open theblockstalk opened 4 months ago

theblockstalk commented 4 months ago

We will give a tracking URL https://pangea.web4.world/leos/buy-leos?code=62fa1c or https://pangea.web4.world?code=62fa1c

On any pangea.web4.world page, it should check for the code= URL query and save the code in localStorage, overriding any code that exists there if needed.

When a user clicks "Buy" on any of the purchase pages, the code stored in localStorage (now or previously) is sent as a query to the sales website e.g. https://sales.pangea.web4.world/onboarding/nationality?code=62fa1c

On any sales.pangea.web4.world page, it should check for the code= URL query and save the code in localStorage, overriding any code that exists there if needed.

When the user logs in /user/login the localStorage code should be sent and stored in the database of the User object and the purchase object