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.
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 attributes | umami.track | Connect for Umami | |
|---|---|---|---|
| Works without writing code | Only where you can edit the HTML | No | Yes |
| Value on a successful form submission | No, it counts clicks on the button | Yes, with the form plugin's success event | Yes |
| A different value for each form | By hand, per button | By hand, per form ID | Yes, forms are listed for you |
| Phone and email links | Yes, link by link | Yes, one snippet for all | Yes, one row for all |
| Where the value is changed later | In each page | In the code | On 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 asUSD,EURorGBP. 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 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: 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'
});
});// 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.
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.
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_submitevent.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 withcalendly.comin its address, namedbook_call, worth 100.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
revenueandcurrencyamong its properties.
What a click conversion can be recognized by
| When a visitor clicks | Text to look for | Example |
|---|---|---|
| A phone link | None | Every tel: link on the site |
| An email link | None | Every mailto: link on the site |
| A link with this in its address | Part of the address | calendly.com/book-a-call/ |
| A link or button with this text | Words on the link or button | Get a quote |
| Anything with this CSS class | A class name | cta-primary |
What the plugin sends
The two money properties are added only when a value applies. Nothing typed into a form is ever sent.
| Event | When it is sent | Data sent with it |
|---|---|---|
form_submit | A form is submitted successfully. |
|
phone_callAn example. Yours is the name you gave the row. | A visitor clicks something that matches one of your rows. |
|
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
Revenue
Open the website in Umami and choose Revenue. Pick the currency you send, then run it. It totals every event that carried
revenuein that currency over the dates you chose.Goals
Under Goals, add a goal, choose Triggered event and enter the event name, such as
form_submitorphone_call. Umami shows the share of visitors who completed it.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.