When shaking a cocktail, you should shake it vigorously for about 10-15 seconds. This will ensure that the ingredients are well combined and the drink is properly cooled.