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
The user object should never be overridden if already exists (This is so that we track the original referral if it is different)
the purchase object should always be overridden if it already exists (This is so that we can track any changes in the referrer)
We will give a tracking URL
https://pangea.web4.world/leos/buy-leos?code=62fa1c
orhttps://pangea.web4.world?code=62fa1c
On any pangea.web4.world page, it should check for the
code=
URL query and save the code inlocalStorage
, 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 inlocalStorage
, 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