Handling anonymous user and keeping prices and experiments consistent throughout the user journey.
ip
and user_id
fields are present.
How the flow works
ip
without any user_id
:
{“ip”: “XXX.XXX.XXX.XXX”} -> price1
ip
is now tied to the above price. When a user converts and their user_id
is known, send both their ip
and user_id
:
{“ip”: “XXX.XXX.XXX.XXX”, “user_id”: “user1”} -> price1
price1
. Requests with only user_id
will now always be tied to the same price and any anonymous users visiting with the same ip
likewise.