Features

Everything Connect for Umami does

One plugin covers the whole job of running Umami on a WordPress site: getting the tracker on the page, sending the events Umami does not collect by itself, and bringing your stats into wp-admin.

Last updated

Short answer

Connect for Umami adds the Umami tracking script to WordPress, sends nine kinds of events to Umami (outbound links, link clicks, button clicks, form submissions, comments, add to cart, remove from cart, begin checkout and purchase with revenue), puts a money value on form submissions and on the clicks you choose, and shows visitors, pageviews, a chart, top pages and referrers in a WordPress dashboard widget. Everything is set from Settings → WPUmami. No code.

Tracking tab

The tracking script, placed and configured for you

Enter your Umami website ID and script URL. The plugin adds the tracker to the <head> of every front-end page with defer, so it never holds up rendering.

  • Exclude logged-in admins. On by default, so your own visits do not inflate your numbers. Draft previews and the Customizer are never tracked.
  • Domains. Only track on the hostnames you list, which keeps staging and local copies out of your stats.
  • Tag. Label everything from this site so you can filter by it in Umami.
  • Host URL. Send data to a different host than the one serving the script, for example a proxy.
  • Respect Do Not Track and Automatic tracking on or off.
  • Core Web Vitals. Opt in to have Umami 3.1 or newer measure LCP, INP, CLS, FCP and TTFB from real visitors.

How to add Umami to WordPress, step by step

The script tag the plugin prints, with the options you chose.

Events: each one has its own switch

Umami counts pageviews by itself. These are the things it does not see unless your site tells it. All are off until you turn them on, on the Events tab.

EventWhen it is sentData sent with it
outbound_link_clickA visitor clicks a link that leads to another website.
url
Where the link goes (address without the query string)
text
The link's visible text
button
true when the link is styled as a button
link_clickA visitor clicks a link within your own site.
url
The path of the link
text
The link's visible text
type
internal, download, email or phone
button_clickA visitor clicks a button, including page-builder buttons.
text
The button's label
url
Where it leads, if it is a link
id
The button's ID, if it has one
form_submitA form is submitted successfully.
form
The form's name
form_id
The form's ID
plugin
Which form plugin it came from
comment_submitA visitor submits a comment.
post_id
The post that was commented on

One click, one event

A click is reported once, as the most specific thing it was: an outbound link first, then a button, then an internal link. So a button that leads to another site is counted as an outbound link, with button: true, not twice.

Works with Umami's own attributes

If you have already added Umami's data-umami-event attribute to an element, the plugin leaves that element to Umami, so nothing is counted twice.

Sent the way Umami expects

Events go from the visitor's browser through Umami's own tracker. They land in the same session as the pageview, and they follow the same rules: Do Not Track, your domains list and the administrator exclusion all apply.

Conversion values: what a lead is worth

On the Conversions tab you say what a conversion is worth. The plugin sends that amount with the event as revenue and currency, the two properties Umami's Revenue report reads. Umami has no setting for this itself.

  • Forms: one value for every form, or a different value for a single form. Forms from Gravity Forms, Contact Form 7, WPForms, Fluent Forms and Ninja Forms are listed by name.
  • Clicks that count as conversions: a phone link, an email link, a link whose address contains some text, or a button by its text or CSS class. Each is sent under an event name you choose, such as phone_call, so you can use it as a goal in Umami.

The values go to Umami only. Nothing is reported to an ad platform. How to set a conversion value in Umami has the steps.

Integrations

Stores, form plugins and page builders. Each page lists exactly what is tracked and which details are sent.

WooCommerce

See what your store sells in Umami: every add to cart, every checkout started and every order, with its revenue. One switch, no code.

See what is tracked

FluentCart

Track FluentCart sales in Umami: every add to cart, every checkout started and every order, with its revenue. One switch, no code.

See what is tracked

Gravity Forms

See every successful Gravity Forms submission in Umami, labeled with the form's name. One switch, no code, and nothing typed into the form leaves your site.

See what is tracked

Contact Form 7

See every Contact Form 7 message that was sent as an event in Umami, labeled with the form's name. One switch, no code, and nothing typed into the form leaves your site.

See what is tracked

WPForms

See every successful WPForms submission in Umami, labeled with the form's name. One switch, no code, and nothing typed into the form leaves your site.

See what is tracked

Elementor Forms

See in Umami which Elementor forms visitors complete, and which pages and referrers led to them. One switch, no code.

See what is tracked

Fluent Forms

See in Umami which of your Fluent Forms get submitted, and what brought those visitors to your site. One switch, no code.

See what is tracked

Ninja Forms

See in Umami how often each of your Ninja Forms is submitted, and where the visitors who submit them came from. One switch, no code.

See what is tracked

Page builders

The block editor and page builders output many buttons as links styled to look like buttons. Connect for Umami recognizes them by their CSS class and sends each click to Umami as a named event. Three switches, no code.

See what is tracked

Store tab

Store events and revenue

For WooCommerce and FluentCart, the plugin reports the path from product to paid order:

  • add_to_cart and remove_from_cart, with the product, quantity, price and value.
  • begin_checkout, with the cart total and number of items.
  • purchase, with revenue and currency, the two properties Umami's Revenue report reads, plus the order number, tax, shipping and payment method.

Each order is reported once. No customer names, email addresses or payment details are sent.

WooCommerce tracking in detail

A shopping session in Umami. Sample data.

Dashboard tab

Your Umami stats on the WordPress dashboard

Connect the Umami API with an API key and administrators see a widget on the WordPress dashboard:

  • Unique visitors, pageviews, visits and average visit time, each with the change against the previous period.
  • A pageviews and visitors chart you can switch between days, weeks, months and years.
  • Top pages, shown by post title and linked, and top referrers.
  • Four themes: Light, Dark, Fun, or your own four colors.

Stats are requested by your WordPress server, never by the browser, so your API key is not exposed and there is no CORS to configure. Results are cached for five minutes. Self-hosted Umami can also connect with a username and password.

The dashboard widget, Light theme. Sample data.

Status

Connection checks, so nothing stops silently

The top of the settings screen shows two things: whether your tracking script URL is responding, and whether the Umami API accepts your credentials, naming the website it is reading.

Both are checked again twice a day and whenever you save. If something breaks you will see:

  • a notice on the WordPress dashboard,
  • a marker on the WPUmami settings menu item,
  • the reason, in plain words, inside the widget where the numbers would be.
The status panel in Settings → WPUmami.

Privacy and security

Only your Umami receives data

The tracker is loaded from your Umami and reports to it. The widget reads from your Umami's API. No visitor data goes to WPUmami or anyone else.

No cookies, no browser storage

The plugin sets no cookies and uses no local or session storage for your visitors. Umami itself is cookie-free too.

Encrypted credentials

Your API key, password and license key are encrypted before they are saved, and are never printed back into the settings form.

Nothing typed into forms

Form events carry the form's name and ID. What a visitor typed is never sent.

No customer details

Store events carry products, quantities and totals. No names, email addresses or payment details.

Clean removal

Deleting the plugin removes its settings, saved license key and cached data from WordPress. Nothing changes in Umami.

Requirements and compatibility

RequirementDetails
WordPress6.3 or newer
PHP7.4 or newer
Umami CloudSupported. The API address is detected automatically.
Self-hosted Umamiv2 and v3. API key, or username and password.
Revenue reportNeeds Umami 2.14 or newer.
Core Web VitalsNeeds Umami 3.1 or newer.
Other plugins or themesNone required. No theme edits.

For developers

Everything works without code, but there are filters for the cases settings cannot cover:

  • cfumami_tracker_attributes: add any data-* attribute to the script tag, such as data-exclude-search.
  • cfumami_should_track: decide per request whether the tracker loads.
  • cfumami_button_selectors: add your own CSS selectors to what counts as a button.
  • cfumami_event_names: rename the events sent to Umami.
Example: stop collecting URL query strings
add_filter( 'cfumami_tracker_attributes', function ( $attributes ) {
	$attributes['data-exclude-search'] = 'true';
	return $attributes;
} );

Frequently asked questions

Which events does Connect for Umami send to Umami?

Nine: outbound_link_click, link_click, button_click, form_submit, comment_submit, add_to_cart, remove_from_cart, begin_checkout and purchase. Each has its own switch, and all are off until you turn them on.

Do I need to write any code or edit my theme?

No. Everything is set from Settings → WPUmami. Developers can use filters for special cases, but nothing requires them.

Does event tracking slow my site down?

The events script is one small deferred file with no dependencies, and it only loads when at least one event switch is on. Umami's own tracker is also loaded with defer.

Can I see Umami stats inside WordPress?

Yes. Add an Umami API key on the Dashboard tab and a widget on the WordPress dashboard shows visitors, pageviews, visits, average visit time, a chart, top pages and top referrers.

What happens if my API key stops working?

The plugin tells you. The settings screen, a dashboard notice, the settings menu item and the widget itself all show that the connection is broken and why. Tracking of visitors continues, because that does not use the API key.

Does it work with page builders?

Yes. Button click tracking recognizes the block editor's Button block and the buttons of Elementor, Divi, Beaver Builder, Bricks, Kadence, GenerateBlocks, Spectra and others. See the full list.

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