attemptedLogin


The attemptedLogin command logs both successful and unsuccessful login attempts upon pressing the "Login" button. This command should be used whenever a login attempt occurs.

  nid('attemptedLogin');

An optional value may be passed to record the attempted Id that was used to login. This should correspond to the Id that was attempted, but should not be the exact Id. A cryptographically secure hash is acceptable.

  nid('attemptedLogin', 'attempted_registered_user_id');

If the optional id fails validation, it will be replaced with scrubbed-id-failed-validation. A LOG event will also be sent signaling that the id failed validation.