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.
Get the Plugin
WP-Members Invite Codes is a premium plugin available in the store.
Best Value: this plugin is included in the WP-Members Pro Bundle package.