Goals provide a way for Google Fit users to track their health and fitness progress. For example, a user can set a goal to walk a certain number of steps per day, or burn a certain number of calories per week. Once the user has set a goal, it is tracked on the Fit platform. Your app can read user goals to stay in sync, and use this data to provide a more consistent and enjoyable user experience by providing updates and insights related to the user's progress.
How goals work
Goals represent measurements of the user's health and fitness. In the Fit app, users can set goals for specific activities such as running or bicycling. Each goal can have associated metrics such as frequency, active time, or distance. For example, when setting a bicycling goal, users can define the goal in several ways:
- Bike a certain number of times each day, week, or month.
- Bike for a certain amount of time per day, week, or month.
- Bike for a certain number of miles per day, week, or month.
Users can also set more general goals such as:
- Take a certain number of steps per day, week, or month.
- Be active for a certain amount of time per day, week, or month.
- Burn a certain amount of calories each day, week, or month.
Your app can keep current with the user's goal data to provide a more consistent and enjoyable user experience. You can then use this information to help the user to reach their goals.
Use the Goals API to read all of the user's goals.