The Invite Codes extension allows you to create invitation codes for use in the registration process. You can add invite codes to be a required field, thus preventing any registration without a valid invite code, or you can just use it to track signups based on specific invitations.
Plugin InfoCurrent Stable Version: 2.0.0
Minimum WordPress Version: 3.6
Tested up to WordPress Version: 4.9