Allstate Drivewise does not know who is driving because it is connected to your phone, not your car. If a trip is detected where you aren't the driver, you can delete the trip using the Allstate mobile app, and that trip will not count. Otherwise, you can alert Drivewise that you will be on a trip where you aren't the driver, and it will not record the trip.
Allstate Drivewise offers discounts based on good driving habits. Thus, you should make sure that Drivewise only records trips where you are the driver so you can maximize your savings. Drivewise cannot increase your premiums, however, so policyholders will never be penalized for trying the program.
To learn more, check out WalletHub's Allstate Drivewise review.