How to Create a Fitness Tracker in WordPress (With Charts)

Do you want to create a fitness tracker in WordPress?

Many health and fitness-related businesses and online communities offer fitness tracking tools for their users. This helps to keep users engaged and grow your business.

In this article, we’ll show you how to easily create a fitness tracker in WordPress to boost user engagement on your website.

Creating a fitness tracker in WordPress

What is a Fitness Tracker?

A fitness tracker is an online tool that helps users track different aspects of their health and fitness performance.

It could be a weight loss tracker, a BMI calculator, a meal planner, or other type of health tracker. These online tools can be created using no-code WordPress plugins that calculate different values on the fly.

Why You Should Add a Fitness Tracker to Your WordPress Site

If you run a WordPress website for a health and fitness business or an online community, then adding a fitness tracker to your website is an easy way to build user engagement.

This includes websites like:

  • Gym websites
  • Weight loss websites
  • Fitness trainer’s personal site
  • Nutritional site or food blog
  • Health and fitness community
  • Lifestyle communities
  • and more

You can provide your users with actual tools to track their fitness performance, which is more likely to keep them on your site longer.

Improved user engagement leads to higher conversion rates and better customer retention for your business.

Building an Online Fitness Community

One of the easiest ways to monetize a health and fitness website is by using MemberPress. It is the best WordPress membership plugin and allows you to easily sell online courses and subscriptions.

You can create different types of fitness plans, hide members-only content behind a paywall, create online courses, and more.

Users can then use your built-in fitness tracker to measure their performance and progress over time. This helps them spend more time on your website which improves subscription renewals, upsells, and customer retention.

For more details, see our step by step tutorial on how to create a membership website in WordPress.

Creating an Online Fitness Tracker in WordPress

To create an online fitness tracker in WordPress, you’ll need Formidable Forms.

It is the best WordPress calculator plugin on the market that allows you to create advanced forms and calculators for your website. The drag and drop form builder makes it easy to create your fitness tracking forms without having to write any code or hire a developer.

Plus, it works great with other tools that you may already be using like MemberPress, WooCommerce, or your email service provider.

First, you need to install and activate the Formidable Forms plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Note: There is a limited free version of the plugin called Formidable Lite. However, you’ll need the premium version to unlock more features.

Upon activation, you need to visit the Formidable » Global Settings page to enter your plugin license key. You can find this information under your account on the Formidable Forms website.

Formidable Forms license key

After that, you need to visit the Formidable » Forms page.

Here, simply click on the Add New button to create your fitness tracking form.

Create a new fitness tracking form

Next, you will be asked to choose a template for your form.

There are a bunch of templates that you can use, but for this tutorial we’ll be starting with a blank form.

Choose blank form template

Next, provide a name and description for your form and click on the Create button.

This will launch the Formidable Forms drag and drop builder. In the left column, you’ll see a list of the form fields that you can add.

To your right, you’ll see the form preview. Since our form is blank, there are no fields in the preview column.

Form builder interface

Let’s change that and add the form fields for our weight loss fitness tracker.

For this tracker, we’ll be adding the following form fields.

  1. User ID – This will be automatically filled by Formidable Forms for logged in users so that users can see their own performance.
  2. Date – Users will be able to enter the date they measured their weight.
  3. Number – We’ll rename this field to ‘Weight’ and ask users to enter their weight in lbs or kg.
Add form fields

After adding the fields, you can just click on a field to change its properties.

For instance, we edited the number field to change its label to ‘Weight’ and provided instructions in the description option.

Edit the form field

Once you are finished editing the form, click on the Update button to save your form.

Save your form

Adding Fitness Tracker in a WordPress Post or Page

Next, you would want to add the fitness tracker form to your WordPress website.

If you are using MemberPress, then you can simply edit the Account page. You can also create a new page and restrict it to members-only. This way users will be required to login to enter their fitness data.

On the page edit screen, simply add the Formidable Forms block to your page and choose your Fitness Tracker from the drop down menu.

Formidable Forms block

Formidable Form will now display a preview of your form in the page editor. You can go ahead and save your changes.

You can now go ahead login with a dummy new user account and fill out a few test entries.

Live fitness tracker

Display Fitness Form Tracker Data in WordPress

Formidable Forms makes it super easy to display the data collected by your forms on your WordPress website.

You can choose exactly which fields you want to show and display the data in graphs and charts.

Simply edit the post or page where you want to display the form data. Obviously, if you are using MemberPress then you want to restrict that page so that only logged in users can view their own fitness data.

Next, you will need to add a shortcode to your page in the following format.

[frm-graph fields="22" y_title="Weight" x_axis="21" x_title="Date" type="line" title="Weight tracking" user_id="current" data_type="average"]

This shortcode has the following parameters.

  • Fields – ID for the field you want to use to display data from (in this case, the weight field).
  • y_title – Title for the Y Axis. In this case we will be using Weight.
  • x_axis – ID of the field you want to use in the x_axis. In this case the date field.
  • x_title – Title for x_axis. In this case, we will use Date.
  • user_id – ‘Current’ so that only logged in users can view their own data.

You can find the field ID by simply editing your fitness tracker form. You’ll see the ID for each field in the form preview.

Finding the field ID

After adding the shortcode, don’t forget to save your changes.

Next, you need to login with the dummy user account you used earlier to add test entries, and visit the page you just created.

Here is how it looked on our test website:

Fitness tracker data chart

Creating More Fitness Tracking Tools in WordPress

Formidable Forms is the most advanced tools builder for WordPress.

Apart from the weight-loss tracking form, you can also use it to create several other types of online fitness calculators and tools.

It even comes with built-in templates for a BMI calculator and a Daily Calorie Intake calculator.

Fitness calculator templates

We hope this article helped you learn how to easily add a fitness tracker in WordPress. You may also want to see our expert pick of the best live chat software for small business, or follow our complete WordPress SEO guide to get more free visitors from search engines.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create a Fitness Tracker in WordPress (With Charts) first appeared on WPBeginner.

How To Create A Custom Calculator In WordPress

Do you want to create a custom calculator in WordPress?

Perhaps you want users to be able to calculate something on a landing page, or you’d like to use the calculator as a tool to generate more leads for your business.

In this article, we’ll show you how to easily create a custom calculator in WordPress.

Easily create a custom calculator in WordPress

Why Add a Custom Calculator in WordPress?

Adding a custom calculator to your WordPress website allows your users to quickly calculate things without leaving your website.

For instance, on a health and fitness WordPress blog, you can add a BMI calculator allowing users to quickly calculate BMI, so they know which subscription plan or a product to purchase.

Similarly, you can use custom calculators for calculating a mortgage, car payments, product configurations, loan interest, and more.

Custom calculators can also be a useful tool to generate leads on your website. For instance, you can ask users to provide their email addresses to get the personalized results of the calculator tool sent to their inbox.

That being said, let’s take a look at how to easily create a custom calculator in WordPress.

Creating a Custom Caclulator in WordPress

The best way to create a custom calculator for your website is by using Formidable Forms. It is the best WordPress calculator plugin on the market and the easiest way to build any kind of advanced form.

Formidable Forms

The first thing you need to do is install and activate the Formidable Forms plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you’ll need to install the free version of the plugin called Formidable Forms Lite. This free version provides the core foundation for advanced features of the plugin.

Next, you need to visit the Formidable Forms » Global Settings page to enter your plugin license key. You can find this information under your account on the Formidable Forms website.

Enter Formidable Forms license key

Now, you are ready to create your first custom calculator for your website.

Simply head over to the Formidable » Forms page and click on the Add New button.

Adding a new calculator form

This will bring up a list of available form templates to choose from.

In the search box, type ‘Calculator’ and select the ‘Calculator’ category.

Choose calculator category

This will bring up a list of calculator templates to choose from. Formidable Forms comes with a bunch of commonly used custom calculators.

Simply click to select and and then click on the add button to use that form. For the sake of this tutorial, we’ll be creating an ROI Calculator (Return on Investment calculator).

Select your custom calculator template

The plugin will load the Formidable Forms’ form builder interface with the calculator template you selected.

From here, you can simply point and click to customize amy form field if needed. You can click on a field to change its label and properties.

Edit your calculator form

You can also add new fields from the left column by simply dragging and dropping the field.

Add new field

Once you are satisfied with the form fields, you can simply click on the ‘Update’ button at the top right corner of the screen.

Save calculator

Your custom calculator form is now ready, and you can add it to any WordPress post or page on your website.

Simply edit an existing post / page or create a blank page. On the content editor screen, you need to add the Formidable Forms block to your page.

Add Formidable Forms block

After adding the block, you can simply click on the drop-down menu in the block settings and select your ROI Calculator form.

Select ROI Calculator form

Formidable Forms block will now fetch and display the preview of your calculator form inside the WordPress block editor.

ROI calculator preview in the editor

You can now continue editing your page or save and publish it on your website.

Once done, you can visit the page in a new browser tab to see your calculator in action.

Customizing Your Calculator Form in WordPress

You can always customize any calculator you create with Formidable Forms. Simply, go to the Formidable » Forms page and click on the edit button to change your calculator form.

Edit your calculator form

Any changes you make to your form will automatically appear on any posts or page where you have added this form on your website.

Viewing Your Calculator Form Entries

Formidable Forms automatically saves calculator form entries into your WordPress database.

You can easily view all calculations performed by users by visiting Formidable » Entries page.

View calculator form entries

From here, you can click on individual entries to view the data entered by users.

Alternately, you can also filter entries by specific calculator form to view data from all entries in a table format.

Calculator data entries

From here, you can also download all calculator data in the CSV format and view it in spreadsheet software.

Need even more insights? Switch to the Reports tab for your form entries and you will be able to see detailed charts and graphs for your calculator.

Viewing calculator data reports

For instance, in our ROI calculator report, we can see the average ROI percentage as submitted by users.

Average values for your calculator form data

These charts give you quick insights into how users interact with calculators on your website and average responses. You can then use this information to tailor your content for your audience’s requirements.

Capturing Leads with Your Custom Calculator

Formidable Forms makes it super easy to add customer calculators in WordPress and connect it to your email marketing service.

However, you’ll still need to nudge users into using the calculator and capture leads, and increase sales.

This is where OptinMonster comes in. It is the best lead generation software on the market and allows you to easily convert website visitors into subscribers and customers.

Popup example

It comes with tools like lightbox popups, slide-in popups, countdown timers, header and footer banners, and more. All of them help you nudge users into using your custom calculators.

OptinMonster also comes with powerful targeting rules and personalization options to show users targetted messages at the right time.

Personalization example

We hope this article helped you add a custom calculator in WordPress. You may also want to see our guide on best business phone services, or see our tips on how to track conversions in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How To Create A Custom Calculator In WordPress first appeared on WPBeginner.

Bmi calculator GUI

Anyone can help me on my GUI. I'm making a BMI calcu GUI. But I don't know hot to input to my check bmi button. Im a total beginner btw. What code I need to add in a button to perform bmi calculation?