Search through more than a hundred articles on every aspect of User.com

Alina Shafikova
Written by Alina Shafikova

Redirects

Find more about the "Redirects" module


Redirects allow you to send the user data to another URL, simultaneously creating the event and the user's authorization with the global cookie.


Let's begin

1. Go to Tools -> Redirects.

2. Click Create new.

  • Enable the attributes you want to add to the URL the user will be redirected to.
  • Click Save. After saving, the redirect_key will be generated. 
  • Enable its status.

How to create Redirect Url 

For the User.com application named Test, final URL will look similar to this, depending on attributes of your choice:

https://test.user.com/redirect/tyCbINZrG4e/?user_id=12345&url=https://user.com/en


What the process looks like from User.com 

  • We receive the request. 
  • We check for a global cookie. 
  • If there is a global cookie, we extract the local cookie for user, for application that redirect_key is registered.
  • If there is no global cookie, we create one. 
  • If there is no local cookie, we create one. 
  • If we have user_id to we have GC i LC based on user_id. 
  • We redirect.
  • We create the event and note it in the timeline. 
  • We do everything to make the process as fast as possible (~80ms). 


Related articles

Categories: