By default, a session expires after 30 minutes of users' inactivity. You can change this setting by changing the session timeout settings in your Google Analytics view. You can make a session expire after 3 minutes of users' inactivity or after 3 hours of users' inactivity. However, a Google Analytics session timeout can not be less than 1 minute or greater than 4 hours.