Guide

How to set a conversion value in Umami on WordPress

Umami counts conversions as soon as you send it events. To see what they are worth, each event has to arrive with an amount attached, because Umami has no screen for pricing an event afterwards.

Last updated

Short answer

To set a conversion value in Umami, send the event with two properties: revenue, a number, and currency, a three-letter code such as USD. For example: umami.track('form_submit', { revenue: 50, currency: 'USD' }). Umami has no setting that gives an event a value later, so the amount must come from your website. Umami then totals it in its Revenue report. Connect for Umami adds the value without code, on its Conversions tab.

Three ways to send a conversion value, compared

Data attributesumami.trackConnect for Umami
Works without writing codeOnly where you can edit the HTMLNoYes
Value on a successful form submissionNo, it counts clicks on the buttonYes, with the form plugin's success eventYes
A different value for each formBy hand, per buttonBy hand, per form IDYes, forms are listed for you
Phone and email linksYes, link by linkYes, one snippet for allYes, one row for all
Where the value is changed laterIn each pageIn the codeOn one settings screen

What Umami needs to record a value

Two properties on the event, with exactly these names:

  • revenue: the amount, as a number.
  • currency: a three-letter ISO 4217 code such as USD, EUR or GBP. Umami treats a code it does not recognize as USD.

Umami has read these since version 2.14. An event that carries both is added to the Revenue report. An event without them is still counted, with no value.

There is nowhere in Umami to say "a form submission is worth 50". A goal in Umami is a page or an event name, with no amount. So the value has to be sent with each event.

Approach 1: data attributes on a link or button

Umami records a click on any element with a data-umami-event attribute, and sends every data-umami-event-* attribute along as a property. That includes revenue and currency.

A phone link worth 25 dollars a click
<a href="tel:+15551234567"
   data-umami-event="phone_call"
   data-umami-event-revenue="25"
   data-umami-event-currency="USD">Call us</a>

This suits links and buttons whose HTML you write yourself. The block editor and most page builders give you no field for extra attributes, and on a form's submit button it counts every press, including the ones that end in a validation error.

Approach 2: umami.track with a value

In JavaScript, add the two properties to the event data. For a form, do it when the form plugin reports a successful submission, not when the button is pressed. The form tracking guide has the success event of six form plugins.

Contact Form 7: every sent form is worth 50 dollars
// Contact Form 7: wpcf7mailsent fires when the message has been sent.
document.addEventListener('wpcf7mailsent', function (event) {
	if (!window.umami) return; // Tracker blocked or not loaded.
	umami.track('form_submit', {
		plugin: 'contact-form-7',
		form_id: String(event.detail.contactFormId),
		revenue: 50,
		currency: 'USD'
	});
});
Every phone link on the site: 25 dollars a click
// One listener for every tel: link, wherever it is on the page.
document.addEventListener('click', function (event) {
	var link = event.target.closest ? event.target.closest('a[href^="tel:"]') : null;
	if (!link || !window.umami) return;
	umami.track('phone_call', { revenue: 25, currency: 'USD' });
});

The no-code way: Connect for Umami

From version 1.2.0. Everything is on one tab, and nothing has to be added to your pages.

  1. Open the Conversions tab

    In WordPress, go to Settings → WPUmami → Conversions. Leave Currency blank to use your store's currency, or USD if there is no store. Otherwise type a three-letter code.

  2. Give your forms a value

    Type an amount next to Value of every form. To price one form differently, type its amount in the list below, where the forms from Gravity Forms, Contact Form 7, WPForms, Fluent Forms and Ninja Forms appear by name. Enter 0 for a form that should carry no value, such as a newsletter signup. Elementor forms and hand-written forms are added by typing their name in an empty row.

    Form submissions has to be switched on under the Events tab, because the value is added to the form_submit event.

  3. Add the clicks that count as conversions

    In the table under Clicks that count as conversions, fill in a row for each one: what the visitor clicks, the text to look for, the event name Umami should show, and a value. For example: a phone link, named phone_call, worth 25. Or a link with calendly.com in its address, named book_call, worth 100.

  4. Save and test

    Save, then open your site in a private browser window, because logged-in administrators are not tracked by default. Submit a form and click a link you added. In Umami, the event appears under Events with revenue and currency among its properties.

What a click conversion can be recognized by

When a visitor clicksText to look forExample
A phone linkNoneEvery tel: link on the site
An email linkNoneEvery mailto: link on the site
A link with this in its addressPart of the addresscalendly.com
/book-a-call/
A link or button with this textWords on the link or buttonGet a quote
Anything with this CSS classA class namecta-primary

What the plugin sends

The two money properties are added only when a value applies. Nothing typed into a form is ever sent.

EventWhen it is sentData sent with it
form_submitA form is submitted successfully.
form
The form's name or title
form_id
The form's ID
plugin
gravity-forms, contact-form-7, wpforms, elementor, fluent-forms, ninja-forms or html
revenue
The form's value, if it has one
currency
Your currency code
phone_callAn example. Yours is the name you gave the row.A visitor clicks something that matches one of your rows.
url
Where the link leads, without the query string
text
The text of the link or button
revenue
The row's value, if it has one
currency
Your currency code

A click that matches one of your rows is sent under that row's name instead of the general button_click, link_click or outbound_link_click, so it is not counted twice. Rows work whether or not those general click settings are on. An element that already has Umami's own data-umami-event attribute is left to Umami.

Where to see the value in Umami

  1. Revenue

    Open the website in Umami and choose Revenue. Pick the currency you send, then run it. It totals every event that carried revenue in that currency over the dates you chose.

  2. Goals

    Under Goals, add a goal, choose Triggered event and enter the event name, such as form_submit or phone_call. Umami shows the share of visitors who completed it.

  3. Attribution

    Under Attribution, choose first-click or last-click, then Triggered event and the event name. Umami shows which referrers, paid ads and UTM campaigns led to that conversion. Needs Umami 2.18 or newer.

Conversion tracking for ads

For Umami to credit an ad, the click has to arrive labelled. Add UTM parameters to the landing page address in each ad, for example ?utm_source=google&utm_medium=cpc&utm_campaign=spring_quotes. Umami reads them from the address by itself. With values on your conversions, you can then compare what a campaign brought in against what it cost.

Three limits worth knowing:

  • Umami measures, it does not report back. Nothing here sends conversions to Google Ads, Meta or any other ad platform. If you want a platform to optimize its bidding on conversions, that needs the platform's own tag.
  • The numbers will not match the ad platform's. Platforms count in their own way, including views and visits on other devices. Umami credits the click it saw, under the model you chose.
  • Umami does not follow a person across devices. When someone clicks an ad on a phone and fills in the form on a laptop, the conversion on the laptop is not linked to the ad.

Frequently asked questions

Can I set a goal value inside Umami?

No. A goal in Umami is a page or an event name, and it has no amount. The value has to be sent with the event, as the revenue and currency properties.

What property names does Umami use for conversion value?

revenue for the amount and currency for a three-letter ISO 4217 code such as USD. Other names, such as value or price, are stored as ordinary event data and are not added up.

Why is my value missing from the Revenue report?

Check three things. The event must carry both revenue and currency, which you can see in its properties under Events. The currency picked in the report must be the one you send. And the report's dates must include the event. An event sent before you added the value has none: Umami cannot add it afterwards.

Does this send conversions to Google Ads or Meta?

No. The value goes to Umami only. Umami's Attribution report shows which referrers, paid ads and UTM campaigns led to a conversion, but it does not report anything back to an ad platform.

What value should I give a lead?

An estimate you can defend: the share of leads that become customers, times what a customer is worth. One sale in ten leads at 500 dollars a sale makes a lead worth 50. Review it when your close rate or prices change.

Do store purchases need a value too?

No. A purchase is sent with the order total as its revenue. With Connect for Umami that is automatic for WooCommerce and FluentCart, and the Conversions tab uses the store's currency unless you choose another.

Connect WordPress to Umami in about two minutes

One plugin: the tracking script, events, store revenue and your stats inside WordPress. Plans start at $12 a year, with a 14-day money-back guarantee.

See pricing