🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Carbon Footprint Calculator Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate the license
  4. Turn the estimate on for a form
  5. Enter your emission factors
  6. Which inputs map to what
  7. Show the estimate
  8. The estimate on the entry
  9. Worked examples
  10. Keeping factors current
  11. The optional offset quote
  12. Privacy and security
  13. Troubleshooting
  14. Questions

Video walkthrough

Gravity Forms Carbon Footprint Calculator Setup Guide: CO2e Estimates from Your Own Factors
Video setup guide: Gravity Forms Carbon Footprint Calculator Watch on YouTube

The Gravity Forms Carbon Footprint Calculator Premium Add-on turns your form inputs into a CO2e estimate. You map each input that holds a quantity to an emission factor you configure, and the add-on multiplies the inputs by the factors, adds the lines up, and keeps the estimate with the entry. This guide covers installing the add-on, entering your factors, showing the estimate, and the optional offset quote. Every number is an estimate based on the factors you enter.

What you need

  • Gravity Forms 2.5 or newer on WordPress 6.5 or newer, with PHP 7.4 or newer.
  • A form with one or more inputs that hold a quantity: a distance, a weight, a number of nights, kilowatt-hours, a count of items, and so on.
  • Your own emission factors: the kilograms of CO2e per unit for each of those inputs. Bring them from a source you trust and keep them up to date.
  • Optional, only for an offset quote: your own account and API key with Climatiq or Cloverly.

Install and activate the license

Upload and activate the add-on like any plugin, then go to Forms, then Settings, then Carbon Footprint, and paste your license key. The license unlocks the premium features and keeps the add-on updated from GravityExtra. The plugin settings page also holds the CO2e label option and the optional offset provider.

The Carbon Footprint settings page in Gravity Forms: license key, the CO2e label option, and the optional offset provider with an API key field and a preferred currency
The settings page: your license key, the CO2e label, and the optional offset provider and key.

Turn the estimate on for a form

Open the form you want to estimate, then Settings, then Carbon Footprint. Tick the box to calculate a CO2e estimate for entries of this form. This is where you enter the emission factors, so each form can have its own set. A contact form that takes no quantities can simply stay off.

Enter your emission factors

The emission-factor table is the heart of the add-on. You write one row per line, and each row maps a form input to a factor:

fieldId | label | factor | unit
  • fieldId is the id of the field that holds the quantity. You can see a field’s id in the form editor; it is the number Gravity Forms gives each field.
  • label is the friendly name shown in the breakdown and on the entry screen, such as Distance driven or Parcel weight.
  • factor is the kilograms of CO2e per unit of that input. If a kilometre driven is 0.17 kg CO2e in your source, the factor is 0.17.
  • unit is an optional label for the quantity: km, mi, kg, lb, kWh, litre, night, item. It is shown next to the quantity in the breakdown.

A worked example for a shipping quote with a distance field (id 3) and a parcel-weight field (id 5):

3 | Distance driven | 0.17 | km
5 | Parcel weight | 0.52 | kg
base | Handling | 0.4

The special field id base adds a fixed amount once per submission, so you can include a flat handling or overhead figure that does not depend on an input. Lines that start with a hash are treated as comments and skipped, and a row whose factor is not a number is ignored, so you can leave notes in the table.

Which inputs map to what

The add-on reads whatever number it can find in the mapped field. It strips currency symbols, thousands separators and unit text, so an input of 1,250 or 1.250,00 or 42 km all become the number you expect. A blank or non-numeric input counts as zero for that line, so a partly filled form still produces a sensible estimate. Only map fields that actually hold a quantity; a name or an email contributes nothing and should not be mapped.

If your form collects a quantity in one unit but your factor is per another unit, convert the factor to match the input, or convert the input with a calculation field first. The add-on applies the factor to the input exactly as entered, so the two must agree on the unit.

Show the estimate

Once the estimate is on and the factors are set, you can show the result anywhere Gravity Forms accepts a merge tag:

  • {co2e} prints the formatted estimate, such as 13.5 kg CO2e, or in tonnes above 1000 kg.
  • {co2e_kg} prints the plain number of kilograms, handy for a calculation or a spreadsheet column.
  • {co2e_box} prints a styled, self-contained result box with the label and the estimate, which you can drop straight into a confirmation.

A common setup is to add {co2e_box} to the form’s confirmation message so the visitor sees their estimated footprint as soon as they submit, and to add {co2e} to the admin notification email so your team sees it too.

A front-end Gravity Form collecting a distance and a parcel weight, ready to produce a carbon footprint estimate on submit
A quote form that collects the quantities the estimate is built from.

The estimate on the entry

Every entry of an enabled form keeps its estimate. Open the entry and you will see a Carbon footprint estimate box with the total and a line-by-line breakdown: each input, its quantity and unit, the factor applied, and the kilograms of CO2e it contributed. The estimate in kilograms is also available as an entry column and in exports, so you can report on it or filter by it.

The Carbon footprint estimate box on a Gravity Forms entry screen showing the total and a per-input breakdown with quantities, factors and kilograms of CO2e
The entry screen: the total estimate and the per-input breakdown that produced it.

Worked examples

A few patterns cover most forms. For a courier or delivery quote, map the distance field to a per-kilometre factor and the parcel-weight field to a per-kilogram factor, and add a small base row for handling. The estimate then rises with both how far the parcel travels and how heavy it is, which is usually how delivery emissions behave.

For an event or venue booking, map the number of nights or days to a per-night factor that reflects the venue’s energy use, and map the number of attendees to a per-person factor if catering and travel are part of your figure. For a product order, map the quantity field to a per-item factor drawn from the product’s own footprint, and use the base row for packaging and fulfilment. In every case the table stays short and readable, and you can comment each line with the source of its factor.

If a quantity needs to be derived from several inputs, use a Gravity Forms calculation field to produce the number first, then map that calculation field in the factor table. The add-on treats a calculation field like any other input: it reads the resulting number and applies the factor.

Keeping factors current

Emission factors change as methodologies and data improve, so plan to review yours periodically. Because the table is plain text, updating a factor is a one-line edit, and because each entry keeps the estimate it was saved with, changing a factor never rewrites your history. If you want to explain a change to your team, leave a comment line in the table noting the date and the source. Treat the factors as something you maintain, the same way you would keep a price list up to date.

The optional offset quote

The base calculator contacts nothing. If you want to show an indicative offset price next to the estimate, you can connect your own carbon-offset provider. Choose Climatiq or Cloverly on the settings page and paste your own API key. Your key is encrypted before it is stored and is never shown again. When an entry is saved, the add-on sends only the total weight and your key to your provider and reads back an indicative price, which is shown in the result box and kept with the entry.

Only the total weight is ever sent, never the form data. The request is locked to your provider’s host, so the key and the weight cannot go anywhere else. If the provider does not answer in time or returns an error, the estimate is still saved and a note records that the offset quote was not available; a failed offset call never blocks a submission. The quote is indicative and depends entirely on your provider’s pricing.

Privacy and security

The estimate is plain arithmetic that runs on your own site, so the inputs and the result never leave WordPress unless you turn on an offset provider. When you do, only the total weight and your key reach the provider you chose, over a host-locked request. Your provider API key is encrypted at rest and is never written to an entry, a note or a log. You stay in control of the emission factors, so you decide exactly how each input is valued.

Troubleshooting

  • The estimate is zero. Check that the field ids in the table match the real field ids, and that the estimate is turned on for the form. An input that is blank or not a number counts as zero.
  • A line is missing from the breakdown. A row with a non-numeric factor is ignored. Make sure the factor is a plain number such as 0.17, with a dot for the decimal.
  • The offset quote is not shown. Confirm the provider is selected, the API key is saved, and the license is active. If the provider returned an error, the entry note explains why; the estimate is saved regardless.
  • The CO2e label looks wrong in an email. Turn off the subscript CO2e option on the settings page if your email client does not render it, and the add-on will use a plain CO2e label instead.

Questions

Is this a formal measurement? No. It is an estimate based on the emission factors you configure. The add-on multiplies your inputs by your factors; the quality of the estimate depends on the factors you choose. Treat it as an indicative figure for a quote or a booking, not a reporting or disclosure tool.

Where do I get emission factors? From a source you trust for your activity, such as a public dataset or your provider’s published figures. You enter them into the table, and you can change them at any time; existing entries keep the estimate they were saved with.

Do I need an offset account? No. The offset quote is entirely optional. Without it the add-on is self-contained and contacts no outside service. You only need a Climatiq or Cloverly account and key if you want an indicative offset price shown alongside the estimate.

Can different forms use different factors? Yes. The factor table is per form, so a shipping form and an event-booking form can each have their own inputs and factors.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr