public static function addNewAccount($user, $byEmail)
 {
     global $wgRequest, $wgTitle;
     $buckets = ClickTrackingHooks::unpackBucketInfo();
     if (isset($buckets['AccountCreation']) && $buckets['AccountCreation'][0] != "none") {
         // *NOT HTTPONLY* In fact, that's the point of this cookie
         setcookie('acctcreation', $buckets['AccountCreation'][0], time() + 60 * 60 * 24 * 365, '/');
         $session = $wgRequest->getCookie('clicktracking-session', "");
         if ($session !== null) {
             $params = new FauxRequest(array('action' => 'clicktracking', 'eventid' => 'account-created', 'token' => $session, 'info' => 'account-activity', 'namespacenumber' => $wgTitle->getNamespace()));
             $api = new ApiMain($params, true);
             $api->execute();
         }
     }
     return true;
 }