Adding Anonymous Data To A New User

Walkthrough

  1. Drop Horizon Javascript – Include the Horizon Javascript in your site’s code


 
FURTHER INFORMATION:
Horizon Setup
  1. Data Collection – A new user browses your site. The cookie sailthru_cid collects data regarding their visit.
  2.  

  3. Pass Information – When the user is signing up, include the cookie in the API call to create a new user profile. Here are two examples:
  4.  
    user POST (JSON)

    {
        "id":"example@example.com",
        "cookies":
            {
                "sailthru_cid":"U9JEVqLefidFAAAA"
            }
    }

    or

    user POST (PHP)

    $sailthru_cid_cookie_value = $_COOKIE['sailthru_cid'];
    $data = 
        [
            'id' => 'someone@example.com',
            'cookies' => 
                [
                    'sailthru_cid' => $sailthru_cid_cookie_value
                ]
        ]
    $sailthru_client->apiPost('user', $data);
     


 
In the examples above, id can be anything. For example: a cell phone number, an email address, or some other identification number.

Once a new user’s profile is created, their profiles may appear barren. This is because profiles require a minimum interest score to display their interest tags. Rest assured: the data exists, and will start to populate when the minimum number of interest data (at least 3 views per content item) is stored.

Top