ip
and user_id
fields are present.
How the flow works
- For anonymous users send an
ip
without anyuser_id
:{“ip”: “XXX.XXX.XXX.XXX”} -> price1
- The
ip
is now tied to the above price. When a user converts and theiruser_id
is known, send both theirip
anduser_id
:{“ip”: “XXX.XXX.XXX.XXX”, “user_id”: “user1”} -> price1
- After the above call, the user will be tied to
price1
. Requests with onlyuser_id
will now always be tied to the same price and any anonymous users visiting with the sameip
likewise.