# WPUmami: full site content > Everything published on https://wpumami.com/ as Markdown, generated from the same source as the pages. See https://wpumami.com/llms.txt for the short index. --- # Connect for Umami: Umami Analytics for WordPress URL: https://wpumami.com/ Last updated: 2026-11-11 Connect for Umami adds Umami Analytics to WordPress without code: the tracking script, click, form and WooCommerce revenue events, and your stats in wp-admin. Connect for Umami adds the Umami tracking script to your site, sends clicks, form submissions and store revenue to Umami as events, and shows your stats on the WordPress dashboard. No code, no theme edits. - Works with Umami Cloud and self-hosted Umami v2 and v3 - Your analytics go only to your own Umami. No cookies. - From $12 a year, with a 14-day money-back guarantee ## What is Connect for Umami? Connect for Umami is a WordPress plugin that links a WordPress site to [Umami](https://wpumami.com/umami-vs-google-analytics/), the open-source, cookie-free analytics platform. It does the four jobs you would otherwise do by hand or with custom code. - **Adds the tracking script:** Paste your website ID and script URL. The tracker goes on every page, deferred, and leaves out logged-in administrators. - **Tracks what visitors do:** Outbound links, button clicks, form submissions and comments become Umami events. Each has its own switch. - **Reports store revenue:** WooCommerce and FluentCart carts, checkouts and orders, with the order total as revenue. Each order once. - **Shows stats in WordPress:** A dashboard widget with visitors, pageviews, a chart by day, week, month or year, top pages and referrers. ## See what visitors do, not only which pages they open The Umami tracking code counts pageviews. Everything else is an event you have to send yourself. Connect for Umami sends them for you, with useful details attached: - **Outbound links:** which external pages people leave for, and from which link. - **Button clicks:** including the Button block, Elementor, Divi, Bricks and other page builders. - **Form submissions:** successful ones only, with the form's name, from six form plugins. - **Comments, downloads, email and phone links.** Every switch is off until you turn it on, so you only collect what you want. ## WooCommerce and FluentCart revenue in Umami Umami has a Revenue report, but it only fills up when your site sends it purchases. Switch on your store and the plugin sends four events: `add_to_cart`, `remove_from_cart`, `begin_checkout` and `purchase`. Each purchase carries the order total and currency, so you can see which referrers, campaigns and landing pages bring revenue, not only visits. An order is reported once, even if the customer reloads the thank-you page. No customer names, emails or payment details are sent. ## You always know whether it is working Analytics that silently stop are worse than no analytics. The settings screen shows whether your tracking script is reachable and whether Umami accepts your API key, and it names the website it is reading. The connection is checked again twice a day. If it breaks, you get a notice on the WordPress dashboard, a marker on the settings menu, and the reason shown in the widget itself. The dashboard widget connects with an **Umami API key**. Stats are fetched by your server, so the key never reaches a visitor's browser, and it is encrypted before it is saved. ## Works with the plugins you already use Each integration has its own page listing exactly what is tracked and which details are sent to Umami. - [WooCommerce tracking for Umami](https://wpumami.com/features/woocommerce/): Connect for Umami sends WooCommerce add to cart, remove from cart, begin checkout and purchase events to Umami, with order revenue and currency. No code. - [FluentCart tracking for Umami](https://wpumami.com/features/fluentcart/): Connect for Umami sends FluentCart add to cart, remove from cart, begin checkout and purchase events to Umami, with order revenue and currency. No code. - [Gravity Forms tracking for Umami](https://wpumami.com/features/gravity-forms/): Connect for Umami sends a form_submit event to Umami for each successful Gravity Forms submission, with the form name and ID. No field contents, no code. - [Contact Form 7 tracking for Umami](https://wpumami.com/features/contact-form-7/): Connect for Umami sends a form_submit event to Umami each time Contact Form 7 reports a message was sent, with the form name and ID. No field contents. - [WPForms tracking for Umami](https://wpumami.com/features/wpforms/): Connect for Umami sends a form_submit event to Umami for each successful WPForms submission, with the form name and ID. No field contents, no code needed. - [Elementor form tracking for Umami](https://wpumami.com/features/elementor-forms/): Connect for Umami sends a form_submit event to Umami each time an Elementor Pro form is submitted successfully, with the form's name and ID. No code needed. - [Fluent Forms tracking for Umami](https://wpumami.com/features/fluent-forms/): Connect for Umami sends a form_submit event to Umami when a Fluent Forms form is submitted successfully, with the form's title and ID. One switch, no code. - [Ninja Forms tracking for Umami](https://wpumami.com/features/ninja-forms/): Connect for Umami sends a form_submit event to Umami when a Ninja Forms form is submitted, with the form's title and ID. Nothing typed into the form is sent. - [Click tracking for Elementor, the block editor and other page builders](https://wpumami.com/features/page-builders/): Connect for Umami sends button clicks, outbound links and link clicks to Umami as events. It recognizes buttons from Elementor, the block editor and more. ## Why Umami instead of Google Analytics Umami gives you the numbers most sites actually use, without sending your visitors' data to a third party. [Read the full comparison](https://wpumami.com/umami-vs-google-analytics/). - **Free and open source:** Self-host Umami for free, or use Umami Cloud, which has a free plan. The code is open for anyone to inspect. - **Private by design:** No cookies, and no automatic collection of personal information. Visitor data is anonymized by default. - **You own your data:** Self-host and your data never leaves your own server and database. It is yours to keep, export or delete. - **A strong fit for GDPR:** Cookie-free by design, which usually means no analytics cookie banner to manage. You remain responsible for your own privacy notice. ## Plugin, or just paste the embed code? Pasting Umami's tracking code into your header is free and counts pageviews. Here is what changes with the plugin. [See the full comparison](https://wpumami.com/umami-plugin-vs-embed-code/). | | Embed code in the header | Connect for Umami | |---|---|---| | Counts pageviews | Yes | Yes | | Leaves out your own visits | No | Yes | | Tracks outbound links, buttons and forms | No | Yes | | Sends WooCommerce and FluentCart revenue | No | Yes | | Shows stats inside WordPress | No | Yes | | Tells you when tracking stops working | No | Yes | | Survives a theme change | Partly | Yes | ## Simple pricing Every plan has every feature. Choose by how many sites you run. | Plan | Price | Sites | |---|---|---| | Single site | $12 per year | 1 site | | Up to 10 sites | $24 per year | 10 sites | | Unlimited sites | $49 per year | Unlimited sites | | Lifetime unlimited | $179 one time | Unlimited sites, forever | Every plan includes: - Every feature: tracking, events, store tracking, dashboard widget - All integrations, including WooCommerce and FluentCart - Plugin updates while your license is active - Email support - 14-day money-back guarantee ## Guides for Umami on WordPress Step-by-step answers, whether or not you use the plugin. [All guides](https://wpumami.com/guides/). - **[How to add Umami to WordPress](https://wpumami.com/guides/add-umami-to-wordpress/):** Three ways to install the tracking code, and how to check it works. - **[Track WooCommerce revenue in Umami](https://wpumami.com/guides/track-woocommerce-revenue-umami/):** How Umami's Revenue report works and how to feed it your orders. - **[Umami not tracking on WordPress?](https://wpumami.com/guides/umami-wordpress-troubleshooting/):** The usual causes, from caching to ad blockers, and how to fix each one. ## Frequently asked questions ### What is the best way to add Umami to WordPress? Use a plugin if you want more than pageviews. Connect for Umami adds the tracking script and also tracks clicks, form submissions and store revenue, and shows your stats in wp-admin. If you only need pageviews, pasting Umami's tracking code into your site's head also works. [The setup guide covers every method](https://wpumami.com/guides/add-umami-to-wordpress/). ### Does Connect for Umami work with Umami Cloud and self-hosted Umami? Yes, both. It works with Umami Cloud and with self-hosted Umami v2 and v3. You enter your script URL and website ID, and an API key if you want the dashboard widget. ### Does the plugin send my data anywhere else? No. Visitor and analytics data go only to your own Umami: the tracker is loaded from your Umami and reports to it, and the dashboard widget reads from your Umami's API. Nothing about your visitors is sent to WPUmami or anyone else. The only contact with wpumami.com is the plugin checking its license and looking for updates. ### Do I need a cookie banner for Umami? Umami is cookie-free by design, and when you self-host, your data stays on your own server, so it is a strong fit for GDPR and usually means no analytics cookie banner to manage. The plugin adds no cookies either. You remain responsible for your own privacy notice and for anything else your site runs. ### Can Umami track WooCommerce sales? Yes, once your site sends purchases to it. Connect for Umami sends a `purchase` event with the order total and currency for every WooCommerce or FluentCart order, which fills Umami's Revenue report. [See the WooCommerce page](https://wpumami.com/features/woocommerce/). ### How much does Connect for Umami cost? $12 a year for one site, $24 a year for up to 10 sites, $49 a year for unlimited sites, or $179 once for a lifetime unlimited license. Every plan includes all features, updates, email support and a 14-day money-back guarantee. ### Is WPUmami part of Umami? No. WPUmami is an independent project. It is not affiliated with, endorsed by or maintained by Umami Software, Inc. --- # Everything Connect for Umami does URL: https://wpumami.com/features/ Last updated: 2026-11-19 Every feature of Connect for Umami: tracking script options, click, form and comment events, WooCommerce and FluentCart revenue, the dashboard widget and status checks. 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. **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. ## The tracking script, placed and configured for you Enter your Umami website ID and script URL. The plugin adds the tracker to the `` 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. ## 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. | Event | When it is sent | Data sent with it | |---|---|---| | `outbound_link_click` | A 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_click` | A 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_click` | A 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_submit` | A form is submitted successfully. | `form` (The form's name); `form_id` (The form's ID); `plugin` (Which form plugin it came from) | | `comment_submit` | A 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](https://wpumami.com/guides/track-conversion-value-umami/) has the steps. ## Integrations Stores, form plugins and page builders. Each page lists exactly what is tracked and which details are sent. - [WooCommerce tracking for Umami](https://wpumami.com/features/woocommerce/): Connect for Umami sends WooCommerce add to cart, remove from cart, begin checkout and purchase events to Umami, with order revenue and currency. No code. - [FluentCart tracking for Umami](https://wpumami.com/features/fluentcart/): Connect for Umami sends FluentCart add to cart, remove from cart, begin checkout and purchase events to Umami, with order revenue and currency. No code. - [Gravity Forms tracking for Umami](https://wpumami.com/features/gravity-forms/): Connect for Umami sends a form_submit event to Umami for each successful Gravity Forms submission, with the form name and ID. No field contents, no code. - [Contact Form 7 tracking for Umami](https://wpumami.com/features/contact-form-7/): Connect for Umami sends a form_submit event to Umami each time Contact Form 7 reports a message was sent, with the form name and ID. No field contents. - [WPForms tracking for Umami](https://wpumami.com/features/wpforms/): Connect for Umami sends a form_submit event to Umami for each successful WPForms submission, with the form name and ID. No field contents, no code needed. - [Elementor form tracking for Umami](https://wpumami.com/features/elementor-forms/): Connect for Umami sends a form_submit event to Umami each time an Elementor Pro form is submitted successfully, with the form's name and ID. No code needed. - [Fluent Forms tracking for Umami](https://wpumami.com/features/fluent-forms/): Connect for Umami sends a form_submit event to Umami when a Fluent Forms form is submitted successfully, with the form's title and ID. One switch, no code. - [Ninja Forms tracking for Umami](https://wpumami.com/features/ninja-forms/): Connect for Umami sends a form_submit event to Umami when a Ninja Forms form is submitted, with the form's title and ID. Nothing typed into the form is sent. - [Click tracking for Elementor, the block editor and other page builders](https://wpumami.com/features/page-builders/): Connect for Umami sends button clicks, outbound links and link clicks to Umami as events. It recognizes buttons from Elementor, the block editor and more. ## Store events and revenue For [WooCommerce](https://wpumami.com/features/woocommerce/) and [FluentCart](https://wpumami.com/features/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. ## 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. ## 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. ## 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 | Requirement | Details | |---|---| | WordPress | 6.3 or newer | | PHP | 7.4 or newer | | Umami Cloud | Supported. The API address is detected automatically. | | Self-hosted Umami | v2 and v3. API key, or username and password. | | Revenue report | Needs Umami 2.14 or newer. | | Core Web Vitals | Needs Umami 3.1 or newer. | | Other plugins or themes | None 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: ```php 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](https://wpumami.com/features/page-builders/). --- # WooCommerce tracking for Umami URL: https://wpumami.com/features/woocommerce/ Last updated: 2026-11-11 Connect for Umami sends WooCommerce add to cart, remove from cart, begin checkout and purchase events to Umami, with order revenue and currency. No code. See what your store sells in Umami: every add to cart, every checkout started and every order, with its revenue. One switch, no code. **Short answer:** To track WooCommerce in Umami, install Connect for Umami, open Settings → WPUmami → Store and switch on WooCommerce. The plugin then sends four events to Umami: add_to_cart, remove_from_cart, begin_checkout and purchase. Each purchase carries the order total as revenue and the currency, which is what Umami's Revenue report reads. Every order is sent once. ## The WooCommerce events sent to Umami Four events cover the path from product to paid order. They appear in Umami under Events, with the details below attached to each one. | Event | When it is sent | Data sent with it | |---|---|---| | `add_to_cart` | A product is added to the cart, or the quantity of a product already in the cart is increased. | `product` (Product name); `product_id` (Product or variation ID); `sku` (SKU, if the product has one); `quantity` (How many were added); `price` (Unit price as shown to the customer); `value` (Price times quantity); `currency` (Store currency, for example USD) | | `remove_from_cart` | A line is removed from the cart, or its quantity is reduced. | `product` (Product name); `product_id` (Product or variation ID); `sku` (SKU, if the product has one); `quantity` (How many were removed); `price` (Unit price); `value` (Price times quantity); `currency` (Store currency) | | `begin_checkout` | The checkout page is shown to a visitor who has items in the cart. | `value` (Cart total); `currency` (Store currency); `items` (Number of items in the cart) | | `purchase` | The order confirmation page is shown for a new order. Sent once per order. | `revenue` (Order total. This is the figure Umami's Revenue report adds up.); `currency` (Order currency); `order_id` (Order number); `items` (Number of items in the order); `tax` (Tax total); `shipping` (Shipping total); `discount` (Discount total); `coupon` (Coupon codes used, comma separated); `payment_method` (Payment method, for example stripe or cod) | ## How WooCommerce revenue reaches Umami Umami builds its Revenue report from events that carry two properties: `revenue` and `currency`. Connect for Umami adds both to the `purchase` event, using the order total and the order's currency. Nothing else needs configuring in Umami. Revenue reporting needs Umami 2.14 or newer. The purchase is reported from the order confirmation page, in the customer's own browser, through the Umami tracker that is already on the page. That keeps the sale in the same Umami session as the visit that led to it, so you can see which referrer, campaign or landing page the revenue came from. ### Each order is counted once When a purchase is reported, the plugin marks the order. If the customer reloads the confirmation page, or comes back to it later, the order is not sent a second time. Failed, canceled and refunded orders are not reported. ## Which WooCommerce setups it works with | Part of WooCommerce | Supported | Notes | |---|---|---| | Classic cart and checkout (shortcodes) | Yes | Including the Add to cart form on product pages. | | Block cart and checkout | Yes | Quantity changes in the block cart are reported as they happen. | | Add to cart buttons on shop and category pages | Yes | AJAX and non-AJAX. | | Store API | Yes | Used by block themes and many page builders. | | High-Performance Order Storage (HPOS) | Yes | Declared compatible. | | Variable products | Yes | The variation's own name, ID, SKU and price are sent. | ## How to turn on WooCommerce tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on WooCommerce.** Open the **Store** tab, tick **WooCommerce** and save. 3. **Place a test order.** In a private browser window, add a product to the cart and check out. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `add_to_cart`, `begin_checkout` and `purchase`. The order total appears in the **Revenue** report. > **Why Umami revenue can read a little lower than WooCommerce** Purchases are counted in the customer's browser. A customer who pays on an external page and never returns to your confirmation page, or who blocks the Umami script, is not counted. Treat Umami as the place to see where sales come from, and WooCommerce as the record of what was sold. ## What is not sent No customer names, email addresses, postal addresses or payment details leave your site. The events carry products, quantities, prices, the order number and the totals. That keeps your Umami data free of personal information, the way Umami is meant to be used. ## Questions you can answer once it is on - Which referrers and campaigns bring visitors who actually buy. - Which products are added to carts most often, and which are removed again. - How many visitors start checkout compared with how many finish, using an Umami funnel from `add_to_cart` to `begin_checkout` to `purchase`. - Revenue by country, device or landing page, in Umami's Revenue report. ## Frequently asked questions ### Does Umami support WooCommerce revenue tracking? Yes. Umami has a Revenue report that adds up any event carrying `revenue` and `currency` properties (Umami 2.14 or newer). Umami does not send those events from WooCommerce by itself. Connect for Umami sends them for you on every order. ### Will an order be counted twice if the customer reloads the thank-you page? No. The plugin marks each order when its purchase event is sent, so reloading or revisiting the order confirmation page does not send it again. ### Does it work with the WooCommerce block checkout? Yes. It works with the block cart and checkout, the classic shortcode cart and checkout, and the Store API. ### Is any customer data sent to Umami? No. Only products, quantities, prices, the order number, totals, coupon codes and the payment method name are sent. No names, emails, addresses or card details. ### Why are my own test orders not showing up? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. ### Do I need to add code to my theme or to the thank-you page? No. Tick WooCommerce on the Store tab and save. The plugin handles the rest. --- # FluentCart tracking for Umami URL: https://wpumami.com/features/fluentcart/ Last updated: 2026-11-11 Connect for Umami sends FluentCart add to cart, remove from cart, begin checkout and purchase events to Umami, with order revenue and currency. No code. Track FluentCart sales in Umami: every add to cart, every checkout started and every order, with its revenue. One switch, no code. **Short answer:** To track FluentCart sales in Umami, install Connect for Umami, open Settings → WPUmami → Store and switch on FluentCart. The plugin then sends four events to Umami: add_to_cart, remove_from_cart, begin_checkout and purchase. Each purchase carries the order total as revenue and the currency, which is what Umami's Revenue report reads. Every order is sent once. ## The FluentCart events sent to Umami Four events cover the path from product to paid order. They appear in Umami under Events, with the details below attached to each one. | Event | When it is sent | Data sent with it | |---|---|---| | `add_to_cart` | A product is added to the cart, or a line already in the cart is updated. | `product` (Product name); `variant` (Variant name, when it differs from the product name); `product_id` (Product ID); `variant_id` (Variant ID); `quantity` (Quantity of the cart line, as FluentCart reports it); `price` (Unit price); `value` (Price times quantity); `currency` (Store currency, for example USD) | | `remove_from_cart` | A line is removed from the cart. | `product` (Product name); `variant` (Variant name, when it differs from the product name); `product_id` (Product ID); `variant_id` (Variant ID); `quantity` (Quantity of the line that was removed); `price` (Unit price); `value` (Price times quantity); `currency` (Store currency) | | `begin_checkout` | The FluentCart checkout form is shown to a visitor with items in the cart. | `value` (Cart value: each line's unit price times its quantity, added up); `currency` (Store currency); `items` (Number of items in the cart) | | `purchase` | FluentCart shows the receipt for an order for the first time. Sent once per order. | `revenue` (Order total. This is the figure Umami's Revenue report adds up.); `currency` (Order currency); `order_id` (FluentCart order ID); `tax` (Tax total); `shipping` (Shipping total); `payment_method` (Payment method, for example stripe) | ## How FluentCart revenue reaches Umami Umami builds its Revenue report from events that carry two properties: `revenue` and `currency`. Connect for Umami adds both to the `purchase` event, using the order total and the order's currency. FluentCart stores amounts in cents, so the plugin converts them first: 4999 is sent as 49.99. Nothing else needs configuring in Umami. Revenue reporting needs Umami 2.14 or newer. The purchase is reported from the receipt, FluentCart's order confirmation page, in the customer's own browser, through the Umami tracker that is already on the page. That keeps the sale in the same Umami session as the visit that led to it, so you can see which referrer, campaign or landing page the revenue came from. ### Each order is counted once FluentCart tells the plugin when a receipt is being shown for the first time, and the purchase is sent at that moment only. If the customer reloads the receipt, or opens it again later, nothing is sent a second time. ### How cart changes are picked up FluentCart updates the cart in the background, without loading a new page. The plugin notes each change on the server, and the visitor's browser collects it a moment later, when FluentCart announces the change, or on the next page it loads. A change that is not collected within ten minutes is dropped. ## What FluentCart tracking covers | Situation | Tracked | Notes | |---|---|---| | Product added to the cart | Yes | Sent as `add_to_cart` with the product, variant, quantity and price. | | Line removed from the cart | Yes | Sent as `remove_from_cart`. | | Cart changes made without a page load | Yes | Collected by the visitor's browser right after the change, or on the next page it loads. | | Products with variants | Yes | The variant's name and ID are sent alongside the product's. | | Checkout form shown | Yes | Sent as `begin_checkout` with the cart value and the number of items. | | Receipt shown for the first time | Yes | Sent as `purchase` with `revenue` and `currency`. | | Receipt reloaded or opened again later | No | By design. Each order is reported once. | | Logged-in administrators | No | Left out by default. Untick "Exclude logged-in admins" on the Tracking tab to include them. | ## How to turn on FluentCart tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on FluentCart.** Open the **Store** tab, tick **FluentCart** and save. The note beside the switch tells you whether FluentCart is active on the site. 3. **Place a test order.** In a private browser window, add a product to the cart and check out, all the way to the receipt. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `add_to_cart`, `begin_checkout` and `purchase`. The order total appears in the **Revenue** report. > **Why Umami revenue can read a little lower than FluentCart** Purchases are counted in the customer's browser, the first time the receipt is shown. A customer who pays on an external page and never returns to your receipt, or who blocks the Umami script, is not counted. Treat Umami as the place to see where sales come from, and FluentCart as the record of what was sold. ## What is not sent No customer names, email addresses, postal addresses or payment details leave your site. The events carry product and variant names and IDs, quantities, prices, the order ID, the totals and the name of the payment method. That keeps personal information out of your Umami data, the way Umami is meant to be used. ## Questions you can answer once it is on - Which referrers and campaigns bring visitors who actually buy. - Which products and variants are added to carts most often, and which are removed again. - How many visitors start checkout compared with how many finish, using an Umami funnel from `add_to_cart` to `begin_checkout` to `purchase`. - Revenue by country, device or landing page, in Umami's Revenue report. ## Frequently asked questions ### Does Umami work with FluentCart? Yes. Umami records any event a site sends it, and its Revenue report adds up events that carry `revenue` and `currency` properties (Umami 2.14 or newer). Umami does not send those events from FluentCart by itself. Connect for Umami sends them for you: `add_to_cart`, `remove_from_cart`, `begin_checkout` and `purchase`. ### How do I see FluentCart revenue in Umami? Tick FluentCart on the Store tab of Settings → WPUmami. From then on each order sends a `purchase` event with the order total as `revenue` and the order's `currency`. The totals appear in Umami's Revenue report, and the individual events under Events. ### Will an order be counted twice if the customer reloads the receipt page? No. FluentCart tells the plugin when a receipt is shown for the first time, and the purchase event is sent only then. Reloading or reopening the receipt does not send it again. ### Is any customer data sent to Umami? No. Only product and variant names and IDs, quantities, prices, the order ID, the totals and the payment method name are sent. No names, emails, addresses or card details. ### Why are my own test orders not showing up? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. ### Does it work with Umami Cloud and self-hosted Umami? Yes. Connect for Umami works with Umami Cloud and with self-hosted Umami v2 and v3. The Revenue report needs Umami 2.14 or newer. --- # Gravity Forms tracking for Umami URL: https://wpumami.com/features/gravity-forms/ Last updated: 2026-11-11 Connect for Umami sends a form_submit event to Umami for each successful Gravity Forms submission, with the form name and ID. No field contents, no code. 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. **Short answer:** To track Gravity Forms submissions in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. Each successful submission then sends a form_submit event to Umami with the form's name, its ID and plugin set to gravity-forms. It works for AJAX and non-AJAX forms. Validation errors are not counted, and nothing typed into the form is sent. ## The Gravity Forms event sent to Umami One event, sent once for each successful submission. It appears in Umami under Events, with the details below attached. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | A Gravity Forms form is submitted successfully. A submission with validation errors does not send it. | `form` (Form title, as set in Gravity Forms); `form_id` (Gravity Forms form ID); `plugin` (Always gravity-forms for these forms) | ## How a successful Gravity Forms submission is detected The event is sent only when Gravity Forms itself says the submission went through. How the plugin hears that depends on how the form is set up: - **AJAX forms.** Gravity Forms announces in the browser that the confirmation has loaded (its `gform_confirmation_loaded` event). The plugin listens for it and sends `form_submit`. - **Non-AJAX forms.** The page reloads to show the confirmation. The plugin hears from Gravity Forms on the server, after the submission is saved, and adds the event to the page that comes back. - **Redirect confirmations.** When the confirmation sends the visitor to another page on the same site, the plugin adds a short marker to the end of that address, after a `#`. The page the visitor lands on reads the marker, sends the event and removes the marker from the address bar. The part of an address after `#` is never sent to a server. In every case the event goes through Umami's own tracker. It lands in the same Umami session as the visit and follows the same rules as your pageviews: Do Not Track, your domains list and the administrator exclusion. ### One submission, one event If the same form reports success twice within three seconds, the second report is ignored, so a single submission is not counted twice. ## Which Gravity Forms setups are covered | Setup | Tracked | Notes | |---|---|---| | AJAX form with a confirmation message | Yes | Reported when Gravity Forms loads the confirmation. | | Non-AJAX form with a confirmation message | Yes | Reported from the page that reloads after the submission is saved. | | Confirmation that redirects to a page on the same site | Yes | Reported from the page the visitor lands on. AJAX and non-AJAX. | | Confirmation that redirects to another website | No | The visitor leaves your site before an event can be sent. | | Submission with validation errors | No | By design. Only successful submissions are counted. | | Logged-in administrators | No | Left out by default. Untick "Exclude logged-in admins" on the Tracking tab to include them. | Same site means the redirect uses the same hostname as your WordPress site address. A redirect address that already contains a # anchor is left untouched and is not reported. ## How to turn on Gravity Forms tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on Form submissions.** Open the **Events** tab. Under **Forms and comments**, tick **Form submissions** and save. The description under the switch lists the form plugins active on the site, and should include Gravity Forms. 3. **Submit a test entry.** In a private browser window, open a page with one of your forms, fill it in and submit it. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `form_submit`, with the form's title in its `form` property and `gravity-forms` in `plugin`. > **Redirects to another website are not counted** If a form's confirmation sends the visitor to a different website, the visitor leaves before an event can be sent, so that submission does not appear in Umami. Redirects to a page on your own site are counted. The event is also sent from the visitor's browser, so a visitor who blocks the Umami script is not counted. Treat Gravity Forms' entries as the record of what was submitted, and Umami as the place to see where submissions come from. ## What is not sent Nothing typed into the form is sent to Umami. That means no names, email addresses, phone numbers, messages or any other field value. The event carries three things: the form's title, its ID and the plugin name `gravity-forms`. Because the title is sent, give your forms titles you are happy to see in your analytics. The plugin sets no cookies and uses no local or session storage in the visitor's browser to do this. ## Questions you can answer once it is on - Which form gets the most submissions, using the `form` property. - Which referrers and campaigns bring visitors who go on to submit a form. - Which countries and devices submissions come from, because the event sits in the same Umami session as the visit. - How many visitors who reach a page with a form go on to submit it, using an Umami funnel that ends in `form_submit`. ## Frequently asked questions ### How do I track Gravity Forms submissions in Umami? Install Connect for Umami, enter your Umami website ID and script URL on the Tracking tab, then tick Form submissions on the Events tab. Each successful Gravity Forms submission then appears in Umami as a `form_submit` event with the form's name and ID. ### Does it work with AJAX-enabled Gravity Forms? Yes. AJAX forms are reported when Gravity Forms loads the confirmation in the browser. Non-AJAX forms are reported from the page that reloads after the submission is saved. ### Are failed submissions or validation errors counted? No. The event is sent only when Gravity Forms reports a successful submission. A visitor who gets a validation error and gives up is not counted. ### Does it send the entry or any field values to Umami? No. Only the form's title, its ID and the plugin name `gravity-forms` are sent. Nothing the visitor typed leaves your site. ### Does it work when the confirmation redirects to a thank-you page? Yes, when the thank-you page is on the same site. The submission is reported from the page the visitor lands on. A redirect to a different website is not reported. ### Why is my own test submission not showing up in Umami? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. --- # Contact Form 7 tracking for Umami URL: https://wpumami.com/features/contact-form-7/ Last updated: 2026-11-11 Connect for Umami sends a form_submit event to Umami each time Contact Form 7 reports a message was sent, with the form name and ID. No field contents. 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. **Short answer:** To track Contact Form 7 in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. Each time Contact Form 7 reports that a message was sent, the plugin sends a form_submit event to Umami with the form's name, its ID and plugin set to contact-form-7. Validation errors are not counted, and nothing typed into the form is sent. ## The Contact Form 7 event sent to Umami One event, sent once for each message Contact Form 7 reports as sent. It appears in Umami under Events, with the details below attached. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | Contact Form 7 reports that the form's mail was sent, through its wpcf7mailsent event. A submission with validation errors does not send it. | `form` (Form title, as set in Contact Form 7); `form_id` (Contact Form 7 form ID); `plugin` (Always contact-form-7 for these forms) | ## How a sent Contact Form 7 message is detected Contact Form 7 announces a successful send in the visitor's browser, with an event named `wpcf7mailsent`. Connect for Umami listens for that event and sends `form_submit` to Umami. Nothing is added to your forms and no form settings change. Contact Form 7's event names the form by its ID. The plugin notes each form's title while the page is being built, so the event that reaches Umami carries the name as well as the ID. A submission that fails validation, or a message that could not be sent, does not produce `wpcf7mailsent`. Nothing is sent to Umami for it. The event goes through Umami's own tracker. It lands in the same Umami session as the visit and follows the same rules as your pageviews: Do Not Track, your domains list and the administrator exclusion. ### One submission, one event If the same form reports success twice within three seconds, the second report is ignored, so a single submission is not counted twice. ## Which Contact Form 7 situations are covered | Situation | Tracked | Notes | |---|---|---| | Message sent successfully | Yes | Reported when Contact Form 7 fires `wpcf7mailsent`. | | Several Contact Form 7 forms on one site | Yes | Each event carries its own form's title and ID. | | Submission with validation errors | No | By design. Only messages that were sent are counted. | | Message that could not be sent | No | Contact Form 7 does not report it as sent, so no event is sent. | | Page where Contact Form 7's JavaScript is not running | No | The plugin relies on Contact Form 7's browser event. See the note below. | | Logged-in administrators | No | Left out by default. Untick "Exclude logged-in admins" on the Tracking tab to include them. | ## How to turn on Contact Form 7 tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on Form submissions.** Open the **Events** tab. Under **Forms and comments**, tick **Form submissions** and save. The description under the switch lists the form plugins active on the site, and should include Contact Form 7. 3. **Send a test message.** In a private browser window, open a page with one of your forms, fill it in and send it. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `form_submit`, with the form's title in its `form` property and `contact-form-7` in `plugin`. > **It depends on Contact Form 7's own JavaScript** The event is sent when Contact Form 7 announces in the browser that the mail was sent. If Contact Form 7's script is switched off or does not load on a page, there is no announcement to hear, and submissions from that page are not counted. The event is also sent from the visitor's browser, so a visitor who blocks the Umami script is not counted. Treat your inbox as the record of what was sent, and Umami as the place to see where messages come from. ## What is not sent Nothing typed into the form is sent to Umami. That means no names, email addresses, subject lines, messages or any other field value. The event carries three things: the form's title, its ID and the plugin name `contact-form-7`. Because the title is sent, give your forms titles you are happy to see in your analytics. The plugin sets no cookies and uses no local or session storage in the visitor's browser to do this. ## Questions you can answer once it is on - Which form gets the most messages, using the `form` property. - Which referrers and campaigns bring visitors who go on to contact you. - Which countries and devices messages come from, because the event sits in the same Umami session as the visit. - How many visitors who reach your contact page go on to send a message, using an Umami funnel that ends in `form_submit`. ## Frequently asked questions ### How do I track Contact Form 7 submissions in Umami? Install Connect for Umami, enter your Umami website ID and script URL on the Tracking tab, then tick Form submissions on the Events tab. Each message Contact Form 7 sends then appears in Umami as a `form_submit` event with the form's name and ID. ### Can I track Contact Form 7 in Umami without a plugin? Yes, with code. Add a script to your site that listens for Contact Form 7's `wpcf7mailsent` event and calls `umami.track()`. Connect for Umami does that for you and adds the form's name and ID to the event. See the [guide to tracking form submissions in Umami](https://wpumami.com/guides/track-form-submissions-umami/). ### Are validation errors or failed sends counted? No. The event is sent only when Contact Form 7 reports that the mail was sent. A submission with validation errors, or a message that could not be sent, is not counted. ### Does it send the message or the sender's email address to Umami? No. Only the form's title, its ID and the plugin name `contact-form-7` are sent. Nothing the visitor typed leaves your site. ### Can I tell my Contact Form 7 forms apart in Umami? Yes. Each event carries the form's title in `form` and its ID in `form_id`, so every form is counted separately. ### Why is my own test message not showing up in Umami? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. --- # WPForms tracking for Umami URL: https://wpumami.com/features/wpforms/ Last updated: 2026-11-11 Connect for Umami sends a form_submit event to Umami for each successful WPForms submission, with the form name and ID. No field contents, no code needed. 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. **Short answer:** To track WPForms submissions in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. Each successful submission then sends a form_submit event to Umami with the form's name, its ID and plugin set to wpforms. It works for forms that submit with AJAX and for forms that reload the page. Nothing typed into the form is sent. ## The WPForms event sent to Umami One event, sent once for each successful submission. It appears in Umami under Events, with the details below attached. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | A WPForms form is submitted successfully. A submission with validation errors does not send it. | `form` (Form name, as set in WPForms); `form_id` (WPForms form ID); `plugin` (Always wpforms for these forms) | ## How a successful WPForms submission is detected The event is sent only when WPForms itself says the submission went through. How the plugin hears that depends on how the form submits: - **AJAX submissions.** WPForms announces success in the browser (its `wpformsAjaxSubmitSuccess` event). The plugin listens for it and sends `form_submit`. - **Non-AJAX submissions.** The page reloads to show the confirmation. The plugin hears from WPForms on the server, once processing is complete, and adds the event to the page that comes back. - **Non-AJAX submissions that redirect.** When the confirmation sends the visitor to another page on the same site, the plugin adds a short marker to the end of that address, after a `#`. The page the visitor lands on reads the marker, sends the event and removes the marker from the address bar. The part of an address after `#` is never sent to a server. In every case the event goes through Umami's own tracker. It lands in the same Umami session as the visit and follows the same rules as your pageviews: Do Not Track, your domains list and the administrator exclusion. ### One submission, one event If the same form reports success twice within three seconds, the second report is ignored, so a single submission is not counted twice. ## Which WPForms setups are covered | Setup | Tracked | Notes | |---|---|---| | AJAX submission with a confirmation message | Yes | Reported when WPForms announces that the submission succeeded. | | Non-AJAX submission with a confirmation message | Yes | Reported from the page that reloads once processing is complete. | | Non-AJAX submission that redirects to a page on the same site | Yes | Reported from the page the visitor lands on. | | Non-AJAX submission that redirects to another website | No | The visitor leaves your site before an event can be sent. | | Submission with validation errors | No | By design. Only successful submissions are counted. | | Logged-in administrators | No | Left out by default. Untick "Exclude logged-in admins" on the Tracking tab to include them. | Same site means the redirect uses the same hostname as your WordPress site address. A redirect address that already contains a # anchor is left untouched and is not reported. ## How to turn on WPForms tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on Form submissions.** Open the **Events** tab. Under **Forms and comments**, tick **Form submissions** and save. The description under the switch lists the form plugins active on the site, and should include WPForms. 3. **Submit a test entry.** In a private browser window, open a page with one of your forms, fill it in and submit it. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `form_submit`, with the form's name in its `form` property and `wpforms` in `plugin`. > **Redirects are only counted when they stay on your site** When a non-AJAX form redirects after it is submitted, the page the visitor lands on is what sends the event. If that page is on a different website, the submission does not appear in Umami. The event is also sent from the visitor's browser, so a visitor who blocks the Umami script is not counted. Treat WPForms' own records as the account of what was submitted, and Umami as the place to see where submissions come from. ## What is not sent Nothing typed into the form is sent to Umami. That means no names, email addresses, phone numbers, messages or any other field value. The event carries three things: the form's name, its ID and the plugin name `wpforms`. Because the name is sent, give your forms names you are happy to see in your analytics. The plugin sets no cookies and uses no local or session storage in the visitor's browser to do this. ## Questions you can answer once it is on - Which form gets the most submissions, using the `form` property. - Which referrers and campaigns bring visitors who go on to submit a form. - Which countries and devices submissions come from, because the event sits in the same Umami session as the visit. - How many visitors who reach a page with a form go on to submit it, using an Umami funnel that ends in `form_submit`. ## Frequently asked questions ### How do I track WPForms submissions in Umami? Install Connect for Umami, enter your Umami website ID and script URL on the Tracking tab, then tick Form submissions on the Events tab. Each successful WPForms submission then appears in Umami as a `form_submit` event with the form's name and ID. ### Does it work with WPForms AJAX form submission? Yes. AJAX submissions are reported when WPForms announces success in the browser. Submissions that reload the page are reported from the page that comes back once processing is complete. ### Are validation errors counted as submissions? No. The event is sent only when WPForms reports a successful submission. A visitor who gets a validation error and gives up is not counted. ### Does it send form entries or field values to Umami? No. Only the form's name, its ID and the plugin name `wpforms` are sent. Nothing the visitor typed leaves your site. ### Does it work when the form redirects to a thank-you page? For a form that reloads the page, a redirect to a page on your own site is reported from the page the visitor lands on. A redirect to a different website is not reported. ### Why is my own test submission not showing up in Umami? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. --- # Elementor form tracking for Umami URL: https://wpumami.com/features/elementor-forms/ Last updated: 2026-11-11 Connect for Umami sends a form_submit event to Umami each time an Elementor Pro form is submitted successfully, with the form's name and ID. No code needed. See in Umami which Elementor forms visitors complete, and which pages and referrers led to them. One switch, no code. **Short answer:** To track Elementor forms in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. Each time a visitor successfully submits a form built with the Form widget in Elementor Pro, the plugin sends a form_submit event to Umami with the form's name, its ID and plugin set to elementor. Nothing typed into the form is sent. ## The Elementor form event sent to Umami One event covers every form built with the Form widget in Elementor Pro. It appears in Umami under Events, with the details below attached. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | A visitor submits an Elementor form and Elementor reports that the submission succeeded. | `form` (The form's name, as set on the form in Elementor); `form_id` (The form's ID, read from the form's hidden form_id field); `plugin` (Always elementor) | ## How a successful Elementor form submission is detected An Elementor form sends its entry in the background, without loading a new page. When the submission goes through, Elementor announces it in the browser with its `submit_success` event. Connect for Umami listens for that event and sends `form_submit` through the Umami tracker that is already on the page. The event is tied to the result, not to the click on the Send button. A form that stops on a validation error sends nothing. If the same form reports success more than once within three seconds, it is counted once. Because the event is sent from the visitor's own browser, it lands in the same Umami session as the visit. You can see which referrer, campaign or landing page led to the submission. ### Where the form name and ID come from The `form` value is the name on the form itself, which is the name you gave the form in the Elementor Form widget. The `form_id` value is the ID Elementor stores in the form's hidden `form_id` field. Give each form its own name in Elementor and the events are easy to tell apart in Umami. ### Elementor Pro is required The Form widget is part of Elementor Pro, so this integration needs Elementor Pro to be active. The free Elementor plugin on its own has no Form widget to track. Clicks on Elementor buttons are a separate switch, covered on the [page builders page](https://wpumami.com/features/page-builders/). ## Which situations are covered | Situation | Counted | Notes | |---|---|---| | A visitor submits the form and Elementor accepts it | Yes | One `form_submit` event with the form's name and ID. | | The form stops on a validation error | No | The event is sent only after Elementor reports success. | | Several Elementor forms on one page or across the site | Yes | Each event carries its own `form` and `form_id`. | | A logged-in administrator submits the form | No | Administrators are left out by default. Other logged-in roles are counted. | | A draft preview or the Customizer preview | No | Previews are never tracked. | | A hostname that is not in your Domains list | No | Only applies if you filled in Domains on the Tracking tab. Keeps staging and local copies out of your stats. | | A visitor who sends Do Not Track | No | Only applies if you switched on Respect Do Not Track. | Form events follow the same rules as your pageviews, because both go through the same Umami tracker. ## How to turn on Elementor form tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on Form submissions.** Open the **Events** tab. Under **Forms and comments**, tick **Form submissions** and save. The note under the switch lists the supported form plugins found on your site. With Elementor Pro active, it includes Elementor Forms. 3. **Send a test submission.** In a private browser window, open a page with an Elementor form, fill it in and submit it. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `form_submit` with `plugin` set to `elementor` and the name of the form you submitted. > **Why Umami can count fewer submissions than Elementor** The event is sent from the visitor's browser through the Umami tracker. A visitor who blocks the Umami script still submits the form, but is not counted. Treat Umami as the place to see where submissions come from, and the entries and emails from the form itself as the record of what was submitted. ## What is not sent Nothing typed into the form is ever sent to Umami. No names, email addresses, phone numbers or messages. The event carries three things: the form's name, its ID and the word `elementor`. The plugin sets no cookies and uses no browser storage to do this. ## Questions you can answer once it is on - Which referrers, campaigns and landing pages bring visitors who go on to submit a form. - Which Elementor form is submitted most, by comparing the `form` value on `form_submit` events. - How the number of submissions changes from week to week, next to your visitor numbers. - Whether a change to a page or to the form itself was followed by more submissions. ## Frequently asked questions ### How do I track Elementor form submissions in Umami? Install Connect for Umami, go to Settings → WPUmami → Events and tick Form submissions. Every successful Elementor form submission is then sent to Umami as a `form_submit` event with the form's name and ID. You do not need to edit the form or add code. ### Does Umami track Elementor forms by itself? No. Umami counts pageviews automatically, and records an event only when the page calls `umami.track` or a visitor clicks an element that carries a `data-umami-event` attribute. An Elementor form submits in the background without a new pageview, so nothing is recorded unless an event is sent. Connect for Umami sends that event for you. ### Do I need Elementor Pro for this? Yes. The Form widget is part of Elementor Pro. On a site that runs only the free Elementor plugin there is no Elementor form to track, although the plugin still tracks other forms and Elementor button clicks. ### Are submissions with validation errors counted? No. The event is sent when Elementor reports that the submission succeeded, not when the visitor presses the button. A form that stops on a validation error sends nothing. ### Is what visitors type into the form sent to Umami? No. Only the form's name, its ID and the plugin value `elementor` are sent. Field values never leave your site through this plugin. ### Why is my own test submission not showing up in Umami? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. Also check that Form submissions is ticked on the Events tab. --- # Fluent Forms tracking for Umami URL: https://wpumami.com/features/fluent-forms/ Last updated: 2026-11-11 Connect for Umami sends a form_submit event to Umami when a Fluent Forms form is submitted successfully, with the form's title and ID. One switch, no code. See in Umami which of your Fluent Forms get submitted, and what brought those visitors to your site. One switch, no code. **Short answer:** To track Fluent Forms in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. When Fluent Forms reports a successful submission, the plugin sends a form_submit event to Umami with the form's title, its ID and plugin set to fluent-forms. Submissions that fail validation are not counted, and nothing typed into the form is sent. ## The Fluent Forms event sent to Umami One event covers every Fluent Forms form on the site. It appears in Umami under Events, with the details below attached. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | A visitor submits a Fluent Forms form and Fluent Forms reports that the submission succeeded. | `form` (The form's title in Fluent Forms); `form_id` (The form's ID in Fluent Forms); `plugin` (Always fluent-forms) | ## How a successful Fluent Forms submission is detected Fluent Forms sends each entry in the background and announces the result in the browser. When a submission succeeds, it fires its `fluentform_submission_success` event. Connect for Umami listens for that event and sends `form_submit` through the Umami tracker that is already on the page. Pressing the Submit button is not enough to produce an event. A form that stops on a validation error sends nothing. If the same form reports success more than once within three seconds, it is counted once. The event is sent from the visitor's own browser, so it lands in the same Umami session as the visit. That is what lets you trace a submission back to the referrer, campaign or landing page it came from. ### Where the form title and ID come from When WordPress builds a page that contains a Fluent Forms form, the plugin notes the form's title next to its ID. When the success event arrives, it reads the ID from the form and attaches the matching title. So `form` is the title you gave the form in Fluent Forms, and `form_id` is its Fluent Forms ID. If you rename a form in Fluent Forms, new events carry the new title. Clear your page cache first if you use one, because the title is printed into the page. ## Which situations are covered | Situation | Counted | Notes | |---|---|---| | A visitor submits the form and Fluent Forms accepts it | Yes | One `form_submit` event with the form's title and ID. | | The form stops on a validation error | No | The event is sent only after Fluent Forms reports success. | | Several Fluent Forms on one page or across the site | Yes | Each event carries its own `form` and `form_id`. | | A logged-in administrator submits the form | No | Administrators are left out by default. Other logged-in roles are counted. | | A draft preview or the Customizer preview | No | Previews are never tracked. | | A hostname that is not in your Domains list | No | Only applies if you filled in Domains on the Tracking tab. | | A visitor who sends Do Not Track | No | Only applies if you switched on Respect Do Not Track. | Form events follow the same rules as your pageviews, because both go through the same Umami tracker. ## How to turn on Fluent Forms tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on Form submissions.** Open the **Events** tab. Under **Forms and comments**, tick **Form submissions** and save. The note under the switch should list Fluent Forms as active on this site. 3. **Send a test submission.** In a private browser window, open a page with one of your Fluent Forms, fill it in and submit it. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `form_submit` with `plugin` set to `fluent-forms` and the title of the form you submitted. > **Why Umami can count fewer submissions than Fluent Forms** The event is sent from the visitor's browser through the Umami tracker. A visitor who blocks the Umami script still submits the form, but Umami does not hear about it. Use Umami to see where submissions come from, and the entries and emails from the form itself as the record of what was submitted. ## What is not sent Nothing typed into the form is ever sent to Umami. No names, email addresses, phone numbers or messages. The event carries three things: the form's title, its ID and the word `fluent-forms`. That keeps your Umami data free of personal information, the way Umami is meant to be used. ## Questions you can answer once it is on - Which referrers and campaigns bring visitors who fill in a form, not only visitors who look around. - Which of your forms is submitted most, by comparing the `form` value on `form_submit` events. - Which landing pages lead to the most submissions. - How submissions rise or fall over time, next to your visitor numbers. ## Frequently asked questions ### How do I track Fluent Forms submissions in Umami? Install Connect for Umami, go to Settings → WPUmami → Events and tick Form submissions. Each successful Fluent Forms submission is then sent to Umami as a `form_submit` event with the form's title and ID. Nothing needs to change in Fluent Forms. ### Does Umami track Fluent Forms submissions automatically? No. Umami counts pageviews automatically, and records an event only when the page calls `umami.track` or a visitor clicks an element that carries a `data-umami-event` attribute. Fluent Forms submits in the background without a new pageview, so an event has to be sent. Connect for Umami sends it when Fluent Forms reports success. ### Are failed submissions or validation errors counted? No. The event is sent when Fluent Forms reports a successful submission, not when the visitor presses Submit. A form that stops on a validation error sends nothing. ### What is the form called in Umami? The `form` value is the form's title in Fluent Forms and `form_id` is its ID. Every event also carries `plugin` set to `fluent-forms`, so you can separate these submissions from those of other form plugins on the same site. ### Is anything a visitor types into the form sent to Umami? No. Only the form's title and ID are sent, with the plugin name. Field values stay on your site. ### Can I rename the form_submit event? Developers can, with the `cfumami_event_names` filter. Umami limits event names to 50 characters. The new name applies to every form the plugin tracks, not only Fluent Forms. --- # Ninja Forms tracking for Umami URL: https://wpumami.com/features/ninja-forms/ Last updated: 2026-11-11 Connect for Umami sends a form_submit event to Umami when a Ninja Forms form is submitted, with the form's title and ID. Nothing typed into the form is sent. 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. **Short answer:** To track Ninja Forms in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. When Ninja Forms reports that a submission went through without errors, the plugin sends a form_submit event with the form's title, its ID and plugin set to ninja-forms. A form stopped by a validation message is not counted, and nothing typed into the form is sent. ## The Ninja Forms event sent to Umami One event covers every Ninja Forms form on the site. It appears in Umami under Events, with the details below attached. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | A visitor submits a Ninja Forms form and Ninja Forms answers that the submission went through without errors. | `form` (The form's title in Ninja Forms); `form_id` (The form's ID in Ninja Forms); `plugin` (Always ninja-forms) | ## How a Ninja Forms submission is detected Ninja Forms sends each submission to the server in the background, without loading a new page. When the server answers, Ninja Forms announces it in the browser with its `nfFormSubmitResponse` event. Connect for Umami listens for that event and sends `form_submit` through the Umami tracker that is already on the page. The event is tied to that response, not to the click on the Submit button. A form that Ninja Forms stops in the browser, for example because a required field is empty, is never submitted, so nothing is sent. A response that comes back from the server with errors is not counted either. If the same form reports a response more than once within three seconds, it is counted once. The event is sent from the visitor's own browser, so it lands in the same Umami session as the visit. You can see which referrer, campaign or landing page led to the submission. ### Where the form title and ID come from Both come from the response Ninja Forms returns. `form` is the form's title as set in Ninja Forms, and `form_id` is its Ninja Forms ID. If a response carries no title, the event is sent without a form name. Every event also carries `plugin` set to `ninja-forms`, which separates these submissions from those of any other form plugin on the site. ## Which situations are covered | Situation | Counted | Notes | |---|---|---| | A visitor submits the form and Ninja Forms accepts it | Yes | One `form_submit` event with the form's title and ID. | | A required field is empty and the form stops in the browser | No | Nothing is submitted, so there is no response to report. | | The server answers the submission with errors | No | Only responses without errors are counted. | | Several Ninja Forms on one page or across the site | Yes | Each event carries its own `form` and `form_id`. | | A logged-in administrator submits the form | No | Administrators are left out by default. Other logged-in roles are counted. | | A draft preview or the Customizer preview | No | Previews are never tracked. | | A hostname that is not in your Domains list | No | Only applies if you filled in Domains on the Tracking tab. | | A visitor who sends Do Not Track | No | Only applies if you switched on Respect Do Not Track. | Form events follow the same rules as your pageviews, because both go through the same Umami tracker. ## How to turn on Ninja Forms tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Switch on Form submissions.** Open the **Events** tab. Under **Forms and comments**, tick **Form submissions** and save. The note under the switch should list Ninja Forms as active on this site. 3. **Send a test submission.** In a private browser window, open a page with one of your Ninja Forms, fill it in and submit it. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `form_submit` with `plugin` set to `ninja-forms` and the title of the form you submitted. > **Why Umami can count fewer submissions than Ninja Forms** The event is sent from the visitor's browser through the Umami tracker. A visitor who blocks the Umami script can still submit the form, but that submission is not counted in Umami. Use Umami to see where submissions come from, and the submissions and emails from the form itself as the record of what was sent. ## What is not sent Nothing typed into the form is ever sent to Umami. No names, email addresses, phone numbers or messages. The event carries three things: the form's title, its ID and the word `ninja-forms`. The plugin sets no cookies and uses no browser storage to do this. ## Questions you can answer once it is on - Which referrers, campaigns and landing pages bring visitors who submit a form. - Which Ninja Forms form is used most, by comparing the `form` value on `form_submit` events. - How many submissions arrive each week, next to how many people visited. - Whether moving a form to another page, or changing it, was followed by more submissions. ## Frequently asked questions ### How do I track Ninja Forms submissions in Umami? Install Connect for Umami, go to Settings → WPUmami → Events and tick Form submissions. Ninja Forms submissions are then sent to Umami as `form_submit` events with the form's title and ID. You do not edit the form or add code. ### Can Umami track Ninja Forms without a plugin? Not automatically. Umami counts pageviews by itself, and records an event only when the page calls `umami.track` or a visitor clicks an element that carries a `data-umami-event` attribute. Ninja Forms submits in the background without a new pageview, so you would need your own JavaScript to send an event. Connect for Umami does that for you. ### Is a submission counted if a required field is left empty? No. Ninja Forms stops the form in the browser, nothing is submitted and no event is sent. The event is sent when Ninja Forms answers that the submission went through, not when the visitor presses Submit. ### Can I see which Ninja Forms form was submitted? Yes. Each `form_submit` event carries `form` (the form's title in Ninja Forms) and `form_id` (its ID), plus `plugin` set to `ninja-forms`. ### Is what visitors type into the form sent to Umami? No. Only the form's title, its ID and the plugin name are sent. Field values are never sent to Umami. ### Why is my own test submission not showing up in Umami? Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test. Also check that Form submissions is ticked on the Events tab. --- # Click tracking for Elementor, the block editor and other page builders URL: https://wpumami.com/features/page-builders/ Last updated: 2026-11-11 Connect for Umami sends button clicks, outbound links and link clicks to Umami as events. It recognizes buttons from Elementor, the block editor and more. 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. **Short answer:** To track clicks in Umami on a WordPress site built with Elementor, the block editor or another page builder, install Connect for Umami and open Settings → WPUmami → Events. Switch on Button clicks, Outbound links or Link clicks. The plugin recognizes each builder's buttons by their CSS class and sends button_click, outbound_link_click or link_click to Umami, one event per click. No extra markup is needed. ## The click events sent to Umami Each event has its own switch on the Events tab. They appear in Umami under Events, with the details below attached to each one. | Event | When it is sent | Data sent with it | |---|---|---| | `button_click` | A visitor clicks a button: a real button element, or a link styled as a button by the block editor, a page builder or a theme. | `text` (The button's label, up to 100 characters); `url` (Where the button leads, if it is a link); `id` (The button's HTML id, if it has one) | | `outbound_link_click` | A visitor clicks a link that leads to another website. | `url` (The address the link points to, without its query string); `text` (The link text, up to 100 characters); `button` (true when the link is a recognized button) | | `link_click` | A visitor clicks a link that stays on your site, or a download, email or phone link. | `url` (The path of the link, or the mailto: or tel: address); `text` (The link text, up to 100 characters); `type` (internal, download, email or phone) | ## How buttons are recognized without extra markup The block editor and most page builders output a button as a link that is styled to look like one. Each builder marks its buttons with its own CSS class, and Connect for Umami keeps a list of those classes. A click on one of them, or on something inside it such as an icon, counts as a button click. You add nothing to your buttons and change nothing in the builder. The `text` sent is the button's visible label. If it has none, the plugin uses its `aria-label`, its `title` or the alt text of an image inside it. ## Which buttons are recognized Link-styled buttons are matched by the class each builder or theme gives them. | Builder or source | What counts as a button | Selector | |---|---|---| | Any theme or plugin | Real button elements, submit and button inputs, and elements with a button role | `button`, `input[type="submit"]`, `input[type="button"]`, `[role="button"]` | | Block editor (Gutenberg) | The Button block | `.wp-block-button__link` | | Block themes | Elements the theme styles as buttons | `.wp-element-button` | | Elementor | Elementor buttons | `.elementor-button` | | Divi | Divi buttons | `.et_pb_button` | | Beaver Builder | Beaver Builder buttons | `.fl-button` | | Bricks | Bricks buttons | `.bricks-button`, `.brxe-button` | | Kadence Blocks | Kadence button blocks | `.kb-button`, `.kt-button` | | GenerateBlocks | GenerateBlocks buttons | `.gb-button` | | Spectra | Spectra buttons | `.uagb-buttons-repeater` | | Stackable | Stackable buttons | `.stk-button` | | Oxygen | Oxygen link buttons | `.ct-link-button` | | WPBakery | WPBakery buttons | `.vc_btn3` | | Avada | Avada buttons | `.fusion-button` | | Brizy | Brizy buttons | `.brz-btn` | | Thrive Architect | Thrive Architect buttons | `.tcb-button-link` | | SiteOrigin | The link inside a SiteOrigin button | `.ow-button-base a` | | Astra | Buttons styled by the Astra theme | `.ast-button` | | Common theme classes | Links with a button or btn class | `a.button`, `a.btn` | Disabled buttons are not counted. ## Which event a click produces The three switches are independent, and one click never produces more than one event. The plugin describes the click by the most specific thing it was, in this order: 1. **A link to another website.** With Outbound links on, the click is sent as `outbound_link_click`. If the link is also a recognized button, `button` is `true`. 2. **A button.** Otherwise, with Button clicks on, a click on a recognized button is sent as `button_click`. If the button is a link, `url` says where it leads. 3. **A link within your site.** Otherwise, with Link clicks on, a click on an internal link, a download, an email link or a phone link is sent as `link_click` with its `type`. - A link is outbound when its hostname differs from your site's. A leading `www.` is ignored. A subdomain such as `shop.example.com` counts as another website. - A link is a download when it points to a file on your site such as a pdf, zip, docx, xlsx, pptx, csv, mp3 or mp4. - Middle clicks, which open a link in a new tab, are counted. Right clicks are not. ### Elements that already use data-umami-event Umami has its own way to track a click: a `data-umami-event` attribute on the element. If an element already carries that attribute, or sits inside one that does, Connect for Umami leaves the click to Umami. You get the event you named yourself, once. ## How to add your own button class If your theme or builder uses another class for link-styled buttons, a developer can add it with the `cfumami_button_selectors` filter, which receives the list of CSS selectors and returns it. Put the code in a child theme's `functions.php` or in a code-snippets plugin. functions.php: count links with your own class as buttons: ```php add_filter( 'cfumami_button_selectors', function ( $selectors ) { $selectors[] = '.my-cta-button'; // Your own button class. return $selectors; } ); ``` ## How to turn on click tracking 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding. 2. **Choose which clicks to track.** Open the **Events** tab. Under **Clicks**, tick **Outbound links**, **Link clicks** and **Button clicks**, or only the ones you want, then save. 3. **Click around in a private window.** In a private browser window, open a page made with your builder. Click a button, a link to another website and a link to another page on your site. Use a private window because logged-in administrators are not tracked by default. 4. **Check Umami.** In Umami, open your website and look at **Events**. You should see `button_click`, `outbound_link_click` and `link_click`, each with the text and address of what you clicked. > **Link clicks can add up on a busy site** Every event counts toward your Umami usage. Link clicks covers every link within your site, including menus, so a busy site can produce a lot of them. Leave it off if outbound links and buttons are all you need. ## What is sent and what is not A click event carries the text of what was clicked and where it leads: the address without its query string for an outbound link, the path alone for a link within your site. Nothing about the visitor is added, and the plugin sets no cookies and uses no browser storage. Clicks are sent from the visitor's browser through the Umami tracker, in the same session as the pageview. A visitor who blocks the Umami script is not counted, and logged-in administrators are left out by default. ## Questions you can answer once it is on - Which call-to-action buttons visitors click, by their label. - Which outbound links visitors follow, such as partner sites, affiliate links or your social profiles. - Which files are downloaded, using `link_click` events with `type` set to `download`. - How many visitors use your phone or email links. ## Frequently asked questions ### How do I track button clicks in Umami on an Elementor site? Install Connect for Umami, go to Settings → WPUmami → Events and tick Button clicks. Elementor buttons are recognized by their `elementor-button` class, so each click is sent to Umami as a `button_click` event with the button's label and, if it is a link, where it leads. You do not change anything in Elementor. ### Does Umami track clicks on Gutenberg buttons automatically? Not by itself. Umami's own method is a `data-umami-event` attribute on each element you want to track. Connect for Umami recognizes the block editor's Button block by its `wp-block-button__link` class and sends `button_click` without any attributes. ### How do I track outbound links in Umami on WordPress? Tick Outbound links on the Events tab of Settings → WPUmami. Every click on a link to another website is then sent as `outbound_link_click`, with the address (without its query string) and the link text. ### Will one click be counted twice if all three switches are on? No. A click produces one event at most. It is an `outbound_link_click` if the link leaves your site, otherwise a `button_click` if it was a button, otherwise a `link_click`. ### My theme or page builder is not on the list. Can its buttons be tracked? Often, yes. Real button elements, submit inputs, elements with `role="button"` and links with a `button` or `btn` class are recognized on any site. For any other class, a developer can add a selector with the `cfumami_button_selectors` filter. --- # Umami plugin vs embed code on WordPress URL: https://wpumami.com/umami-plugin-vs-embed-code/ Last updated: 2026-11-11 Pasting Umami's tracking code into your WordPress header counts pageviews. A plugin adds events, store revenue, your own visits excluded and stats in wp-admin. You can run Umami on WordPress with one line of code in your header. For many sites that is enough. This page sets out, without spin, what that line does and does not do, and what Connect for Umami adds. **Short answer:** Pasting Umami's tracking code into your WordPress header is free and counts pageviews, referrers and visitors. It does not exclude your own visits, track outbound links, buttons or form submissions, send WooCommerce revenue, show stats inside WordPress, or warn you when tracking stops. A plugin such as Connect for Umami does all of those without code. Choose the embed code if pageviews are all you need. The embed code: the whole of the manual method: ```html ``` ## Side by side | | Embed code in the header | Connect for Umami | |---|---|---| | Cost | No cost | From $12 a year | | Pageviews, visitors, referrers | Yes | Yes | | Setup | Paste one line into your theme, or a header-scripts plugin | Paste two values into a settings screen | | Survives a theme change or update | Partly | Yes | | Leaves out your own visits | No | Yes | | Skips draft previews | No | Yes | | Keeps staging and local copies out of your stats | Partly | Yes | | Outbound link clicks | No | Yes | | Button clicks, including page-builder buttons | No | Yes | | Successful form submissions, by form name | No | Yes | | Comments, downloads, email and phone links | No | Yes | | WooCommerce and FluentCart events and revenue | No | Yes | | Core Web Vitals | Partly | Yes | | Stats inside the WordPress dashboard | No | Yes | | Tells you when tracking or the API stops working | No | Yes | "Partly" means it is possible with the embed code, but only by editing the snippet or your theme by hand. For example, you can add `data-domains` or `data-performance` to the tag yourself. ## When the embed code is enough Use the embed code and skip the plugin if all of these are true: - You only want to know how many people visit, which pages they read and where they came from. - You do not sell anything on the site, or you do not need revenue next to your traffic sources. - You do not mind your own visits being counted, or you are happy to set Umami's `umami.disabled` flag in each browser you use. - You are comfortable adding a script to your theme and remembering it is there when you change themes. That is a perfectly good setup. The [guide to adding Umami to WordPress](https://wpumami.com/guides/add-umami-to-wordpress/) shows how to do it properly, including a version that skips logged-in administrators. ## What the embed code cannot see Umami's tracker records a pageview when a page loads. Anything a visitor does *on* the page, or anything that happens on your server, is invisible to it unless your site sends an event. On a WordPress site the gaps are usually these: ### Leads A contact form submitted through Gravity Forms, WPForms or Contact Form 7 usually does not load a new page, so nothing is recorded. You see visits to the contact page, not how many people actually wrote to you. ### Sales Umami's Revenue report stays empty unless your site sends a purchase event carrying `revenue` and `currency`. WooCommerce does not do that. Without it you can see that 400 people visited from a newsletter, but not that they spent $1,900. ### Clicks that leave the site Affiliate links, "book a call" buttons that open another site, links to your documentation or app store page. A visitor who leaves through one is recorded only as having viewed the page. ### Whether it is still running A theme update, a caching change or a mistyped ID can stop tracking, and the first you hear of it is a flat line in Umami days later. ## What it takes to match the plugin by hand Everything the plugin does can be built with code. These are the pieces, with the guide that shows the manual way for each. | To get | You would write | Guide | |---|---|---| | Your own visits excluded | A PHP condition around the script | [Exclude your own visits](https://wpumami.com/guides/exclude-your-own-visits-umami/) | | Outbound links and button clicks | A JavaScript click listener, or `data-umami-event` attributes on each element | [Track links and buttons](https://wpumami.com/guides/track-outbound-links-button-clicks-umami/) | | Form submissions | A JavaScript listener per form plugin, each with a different event | [Track form submissions](https://wpumami.com/guides/track-form-submissions-umami/) | | WooCommerce revenue | PHP on the order confirmation page, with protection against double counting | [Track WooCommerce revenue](https://wpumami.com/guides/track-woocommerce-revenue-umami/) | | Core Web Vitals | One attribute added to the script tag | [Core Web Vitals with Umami](https://wpumami.com/guides/umami-core-web-vitals-wordpress/) | | Stats in wp-admin | A dashboard widget that calls the Umami API from the server | Not covered: this one is a plugin in itself | ## How to switch from the embed code to the plugin The order matters: if the old snippet stays in place, every visit is counted twice. 1. **Note your website ID and script URL.** Copy them from your existing snippet: the `src` is the script URL and `data-website-id` is the website ID. 2. **Install Connect for Umami and enter both values.** Go to **Settings → WPUmami → Tracking**, paste them and save. 3. **Remove the old snippet.** Delete it from wherever you added it: your theme's `header.php`, a header-scripts plugin, or your theme's custom code setting. Clear your page cache afterwards. 4. **Check there is exactly one script.** Open your site in a private window, view the page source and search for `data-website-id`. It should appear once. 5. **Turn on the events you want.** On the **Events** and **Store** tabs, switch on what you want to track. Your existing Umami data and website stay as they are. > **Either way, the data is the same data** The plugin loads the same Umami tracker from the same Umami instance as the embed code. Your history, your website ID and your Umami dashboard do not change. Nothing is sent to WPUmami. ## Frequently asked questions ### Do I need a plugin to use Umami on WordPress? No. Umami works on WordPress with its tracking code pasted into your site's head. A plugin is only needed if you want more than pageviews: excluding your own visits, tracking clicks, forms or store revenue, or seeing stats in wp-admin. ### Is the embed code faster than a plugin? Both load the same Umami script with `defer`, so pageview tracking performs the same. Connect for Umami adds one small deferred script only when you switch on event tracking. ### Can I track form submissions with just the embed code? Not without extra code. You can add Umami's `data-umami-event` attribute to a submit button, but that counts clicks, including ones that fail validation. Counting successful submissions needs JavaScript that listens to your form plugin. [The form tracking guide](https://wpumami.com/guides/track-form-submissions-umami/) shows how. ### Will I lose my Umami data if I switch to the plugin? No. Your data lives in Umami and is tied to your website ID. Using the same website ID in the plugin continues the same history. ### Can I use the plugin and the embed code together? You should not. Two copies of the tracker count every pageview twice. Remove the old snippet when you install the plugin. ### Is Connect for Umami made by Umami? No. It is an independent plugin made by WPUmami, built to connect with the open-source Umami project at umami.is. --- # Umami vs Google Analytics for WordPress URL: https://wpumami.com/umami-vs-google-analytics/ Last updated: 2026-11-11 Umami is free, open source and cookie-free, and when self-hosted your data stays on your own server. How it compares with Google Analytics on a WordPress site. Google Analytics is the default choice. Umami is the choice people make on purpose: simpler, private, and yours. Here is how they differ on a WordPress site, including where Google Analytics is still the better tool. **Short answer:** Umami is a free, open-source alternative to Google Analytics. It uses no cookies, does not collect personal information, and can be self-hosted so your data never leaves your own server. That makes it a strong fit for GDPR and usually means no analytics cookie banner. Google Analytics offers deeper advertising and attribution features, but sets cookies and stores your visitors' data with Google. ## Why WordPress site owners choose Umami - **It is free and open source:** You can run Umami on your own server at no cost, and anyone can read its code. If you would rather not host it, Umami Cloud has a free plan and paid plans. - **It is private by design:** Umami uses no cookies and does not automatically collect personal information. Visitor data is anonymized by default. - **You own your data:** Self-hosted Umami runs on your own server with your own database, and your data never leaves your infrastructure. On Umami Cloud you can export it. - **It fits GDPR and cookie rules:** Umami is cookie-free by design, and when you self-host, your data stays on your own server, so it is a strong fit for GDPR, and usually means no analytics cookie banner to manage. You remain responsible for your own privacy notice. - **It is easy to read:** One screen shows visitors, pageviews, referrers, pages, countries and devices. Most people find what they need without training. - **It stays out of the way:** The tracker is a single small script loaded with `defer`. There is no tag manager to set up and no consent mode to configure. ## Umami and Google Analytics side by side | | Umami | Google Analytics (GA4) | |---|---|---| | Cost | Self-hosting costs nothing. Umami Cloud has a free plan and paid plans. | The standard edition has no charge. | | Source code | Open source | Proprietary | | Cookies | None | Sets cookies, such as `_ga`, to recognize visitors | | Where your data lives | On your own server when self-hosted, or on Umami Cloud | On Google's servers, under Google's terms | | Personal information | Not collected automatically; data is anonymized by default | Collects identifiers used to recognize returning visitors | | Consent banner for analytics | Usually not needed | Generally needed for visitors in the EU and UK | | Custom events | Yes | Yes | | Revenue reporting | Yes, from events carrying revenue and currency | Yes, with ecommerce reports | | Advertising integrations | No | Yes, with Google Ads | | Learning curve | Short | Longer | Privacy law depends on your site and where your visitors are. This table describes how each tool works, not legal advice. ## When Google Analytics is still the better choice Umami is not a replacement for everything Google Analytics does. Stay with Google Analytics, or run both, if: - You buy Google Ads and rely on conversions flowing back into your ad account. - You need multi-touch attribution, audiences for remarketing, or predictive metrics. - Your team already has reports and dashboards built on Google Analytics data that would be costly to rebuild. If what you want to know is how many people came, from where, what they read, what they clicked and what they bought, Umami answers that with far less to manage. ## How Connect for Umami fits in Umami gives you the analytics. On WordPress, Connect for Umami gives Umami the things it cannot see by itself: clicks, form submissions and [store revenue](https://wpumami.com/features/woocommerce/), plus your stats in wp-admin. It does this without adding a third party. The tracker is loaded from your Umami and reports to your Umami. The dashboard widget reads from your Umami's API using an API key, from your WordPress server. No visitor or analytics data is sent to WPUmami or anyone else, and the plugin sets no cookies. The only contact with wpumami.com is the plugin checking its license and looking for updates. ## How to move a WordPress site from Google Analytics to Umami 1. **Set up Umami.** Create an Umami Cloud account or install Umami on your own server, then add your website to get a website ID. 2. **Connect WordPress.** Install Connect for Umami and enter your website ID and script URL, or paste Umami's tracking code into your header. The [setup guide](https://wpumami.com/guides/add-umami-to-wordpress/) covers both. 3. **Run both for a few weeks.** Keep Google Analytics in place while Umami collects data, so you can compare the two. Expect the numbers to differ somewhat: the tools count visitors differently, and Umami also counts visitors who decline cookies. 4. **Recreate the events you rely on.** Switch on outbound links, form submissions and store tracking on the Events and Store tabs to replace the events you used in Google Analytics. 5. **Remove Google Analytics.** Delete the Google tag from your site or deactivate the plugin that adds it. Then update your cookie banner and privacy notice to match what your site now does. > **About "no cookie banner"** Umami itself sets no cookies, and neither does Connect for Umami. Whether your site needs a banner depends on everything else it runs: embedded videos, ad pixels, chat widgets and so on. You remain responsible for your own privacy notice. ## Frequently asked questions ### Is Umami free? Yes. Umami is open source and can be self-hosted for free. Umami Cloud, the hosted version, also has a free plan alongside its paid plans. ### Is Umami GDPR compliant? Umami is cookie-free by design and does not collect personal information, and when you self-host, your data stays on your own server. That makes it a strong fit for GDPR. Compliance is a property of your whole site, not of one tool, so you remain responsible for your own privacy notice. ### Do I need a cookie banner if I use Umami instead of Google Analytics? Usually not for analytics, because Umami sets no cookies. You may still need one for other things on your site, such as embedded video, advertising pixels or chat tools. ### Can Umami replace Google Analytics on WordPress? For most sites, yes. Umami covers visitors, pageviews, referrers, pages, countries, devices, custom events and revenue. It does not cover Google Ads integration, remarketing audiences or advanced attribution. ### Does Umami track WooCommerce sales like Google Analytics does? Umami has a Revenue report, and it fills when your site sends purchase events. Connect for Umami sends them for WooCommerce and FluentCart, with the order total and currency. [See WooCommerce tracking](https://wpumami.com/features/woocommerce/). ### Who can see my data with Umami? With self-hosted Umami, only you: it sits in your own database. With Umami Cloud, it is stored by Umami and you can export it. Connect for Umami does not send it anywhere else. --- # Pricing URL: https://wpumami.com/pricing/ Last updated: 2026-11-11 Connect for Umami costs $12 a year for one site, $24 for up to 10 sites, $49 for unlimited sites, or $179 once for lifetime. All features in every plan. Every plan includes every feature and every integration. The only thing you choose is how many sites you run it on. **Short answer:** Connect for Umami costs $12 per year for one site, $24 per year for up to 10 sites, and $49 per year for unlimited sites. A lifetime license for unlimited sites is $179, paid once. Every plan includes all features, plugin updates, email support and a 14-day money-back guarantee. | Plan | Price | Sites | |---|---|---| | Single site | $12 per year | 1 site | | Up to 10 sites | $24 per year | 10 sites | | Unlimited sites | $49 per year | Unlimited sites | | Lifetime unlimited | $179 one time | Unlimited sites, forever | Every plan includes: - Every feature: tracking, events, store tracking, dashboard widget - All integrations, including WooCommerce and FluentCart - Plugin updates while your license is active - Email support - 14-day money-back guarantee ## Compare the plans | | Single site | Up to 10 sites | Unlimited sites | Lifetime unlimited | |---|---|---|---|---| | Price | $12 per year | $24 per year | $49 per year | $179 once | | Sites you can activate | 1 | 10 | Unlimited | Unlimited | | Tracking script and options | Yes | Yes | Yes | Yes | | Click, form and comment events | Yes | Yes | Yes | Yes | | WooCommerce and FluentCart revenue | Yes | Yes | Yes | Yes | | Dashboard widget and status checks | Yes | Yes | Yes | Yes | | Plugin updates | While active | While active | While active | For life | | Email support | While active | While active | While active | For life | | 14-day money-back guarantee | Yes | Yes | Yes | Yes | ## How it works after you buy - **1. Download the plugin:** After checkout you get a download link and a license key in your WPUmami account and by email. - **2. Install and connect:** Upload the zip in WordPress under Plugins → Add New, activate it, and paste your Umami website ID and script URL. - **3. Stay up to date:** Enter your license key on the License tab and updates arrive in your WordPress dashboard like any other plugin update. ## What you are paying for Umami itself is free and open source. Connect for Umami is the part that makes it work properly on WordPress without custom code: the events Umami does not collect by itself, store revenue, stats in wp-admin, and a warning when something stops working. See [what the plugin adds over the embed code](https://wpumami.com/umami-plugin-vs-embed-code/). The plugin is licensed under the GPL. A license key gives you updates and support for the number of sites on your plan. ## Frequently asked questions ### Is there a refund if it does not work for me? Yes. Every plan has a 14-day money-back guarantee. Email support within 14 days of buying and you get a full refund. The same applies to each yearly renewal payment. See the [refund policy](https://wpumami.com/refund-policy/). ### What counts as a site? One WordPress installation where you activate your license key. The single-site plan covers one, the next plan covers ten, and the unlimited and lifetime plans cover as many as you run. ### What happens when a yearly license ends? The plugin keeps working on your sites. You stop receiving updates and support until you renew. Your Umami data is not affected, because it lives in your Umami, not in the plugin. ### What does the lifetime plan include? One payment of $179 covers unlimited sites, with plugin updates and email support for the life of the product. There is nothing to renew. ### Do I also have to pay for Umami? Not necessarily. Umami is open source and can be self-hosted for free, and Umami Cloud has a free plan as well as paid ones. Connect for Umami works with all of them. ### Can I move to a bigger plan later? Yes. Email support and we will help you move to a larger plan. ### Can agencies use it on client sites? Yes. The 10-site, unlimited and lifetime plans are meant for that. Each client site is activated with your license key. --- # Guides: using Umami with WordPress URL: https://wpumami.com/guides/ Last updated: 2026-11-19 Step-by-step guides to running Umami on WordPress: installing the tracking code, tracking forms, clicks, conversion values and revenue, and fixing problems. Practical answers to the questions people ask about Umami on WordPress. Each guide shows the manual way, with working code, and the no-code way with Connect for Umami. **Short answer:** These guides cover the whole job of running Umami on a WordPress site: adding the tracking code, choosing between Umami Cloud and self-hosting, tracking form submissions, outbound links, button clicks and WooCommerce revenue, giving a lead a money value, measuring Core Web Vitals, keeping your own visits out of the numbers, and fixing tracking that has stopped. ## All guides - [How to add Umami to WordPress](https://wpumami.com/guides/add-umami-to-wordpress/): Three ways to add Umami to a WordPress site: a plugin, a short code snippet in functions.php, or a header script. Step by step, with how to check it works. - [Umami Cloud vs self-hosted Umami on WordPress](https://wpumami.com/guides/umami-cloud-vs-self-hosted-wordpress/): What changes when WordPress connects to Umami Cloud or to self-hosted Umami: the script URL, the API address, API key or login, rate limits and proxying. - [How to track WooCommerce revenue in Umami](https://wpumami.com/guides/track-woocommerce-revenue-umami/): Umami reports revenue from events that carry revenue and currency. Send one purchase event per WooCommerce order with a PHP snippet or a no-code plugin. - [How to track form submissions in Umami on WordPress](https://wpumami.com/guides/track-form-submissions-umami/): Count successful form submissions in Umami: JavaScript for Contact Form 7, Gravity Forms, WPForms, Elementor, Fluent Forms and Ninja Forms, or a plugin. - [How to set a conversion value in Umami on WordPress](https://wpumami.com/guides/track-conversion-value-umami/): Give a form submission or a phone click a money value in Umami, so the Revenue and Attribution reports show what your campaigns and ads bring in. - [How to track outbound links and button clicks in Umami on WordPress](https://wpumami.com/guides/track-outbound-links-button-clicks-umami/): Track outbound link clicks and button clicks in Umami on WordPress with data-umami-event attributes, one JavaScript click listener, or a no-code plugin. - [How to exclude your own visits from Umami on WordPress](https://wpumami.com/guides/exclude-your-own-visits-umami/): Four ways to keep your own visits out of Umami on WordPress: Umami's browser flag, IGNORE_IP on self-hosted Umami, a functions.php check or a plugin switch. - [How to measure Core Web Vitals with Umami on WordPress](https://wpumami.com/guides/umami-core-web-vitals-wordpress/): Umami 3.1 and newer measures Core Web Vitals from real visitors. Add data-performance="true" to the script tag on WordPress, by hand or with a plugin switch. - [Umami not tracking on WordPress: how to fix it](https://wpumami.com/guides/umami-wordpress-troubleshooting/): Umami showing no visits, missing visitors or double pageviews on WordPress? Each cause, how to check it in the page source and Network tab, and the fix. ## Start here New to Umami on WordPress? Read [How to add Umami to WordPress](https://wpumami.com/guides/add-umami-to-wordpress/) first. It covers where to find your website ID, three ways to install the tracking code and how to check it is working. Deciding which analytics tool to use? [Umami vs Google Analytics for WordPress](https://wpumami.com/umami-vs-google-analytics/) sets out the differences. Already running Umami from a pasted snippet? [Plugin vs embed code](https://wpumami.com/umami-plugin-vs-embed-code/) shows what you would gain. --- # How to add Umami to WordPress URL: https://wpumami.com/guides/add-umami-to-wordpress/ Last updated: 2026-11-11 Three ways to add Umami to a WordPress site: a plugin, a short code snippet in functions.php, or a header script. Step by step, with how to check it works. There are three ways to connect a WordPress site to Umami. All three load the same tracking script. They differ in how much you have to maintain afterwards. **Short answer:** To add Umami to WordPress, copy your website ID and script URL from Umami (Websites → Edit → Tracking code), then add the tracking script to every page. You can do that with a plugin such as Connect for Umami, with a few lines in your theme's functions.php, or by pasting the script tag into your site's head. Visits appear in Umami within seconds. ## Before you start: get your tracking details from Umami Every method needs the same two values. 1. **Add your website in Umami.** Log in to Umami (Umami Cloud or your own instance), go to **Websites** and add your site if it is not there yet. 2. **Open the tracking code.** Click **Edit** next to the website and find the **Tracking code** section. 3. **Note the two values.** The **script URL** is the `src`. On Umami Cloud it is `https://cloud.umami.is/script.js`; on a self-hosted instance it is usually `https://your-umami-host/script.js`. The **website ID** is the `data-website-id`, a long code with dashes. What the Umami tracking code looks like: ```html ``` ## The three methods compared | | Plugin | functions.php snippet | Header script | |---|---|---|---| | Time to set up | About two minutes | About ten minutes | About five minutes | | Needs code | No | Yes | No | | Survives a theme change or update | Yes | Only in a child theme or code-snippet plugin | Depends on where you pasted it | | Leaves out your own visits | Yes | If you write it that way | No | | Tracks clicks, forms and store events | Yes, with switches | Only with more code | Only with more code | | Shows stats inside WordPress | Yes | No | No | ## Method 1: add Umami with the Connect for Umami plugin The quickest route, and the one to choose if you also want events, store tracking or stats in your WordPress dashboard. 1. **Install and activate the plugin.** In WordPress, go to **Plugins → Add New → Upload Plugin**, choose the Connect for Umami zip from your [WPUmami account](https://wpumami.com/pricing/), then activate it. 2. **Enter your Umami details.** Go to **Settings → WPUmami**. On the **Tracking** tab, paste the website ID and the script URL, then click **Save Changes**. 3. **Check the status panel.** The panel at the top of the screen should read **Tracking is on** and confirm the script URL is responding. 4. **Confirm a visit in Umami.** Open your site in a private browser window, then look at **Realtime** in Umami. Use a private window because the plugin leaves out logged-in administrators by default. ## Method 2: add Umami with code in functions.php If you are comfortable editing PHP, you can load the tracker yourself. Put this in a child theme's `functions.php` or in a code-snippets plugin, not in a parent theme, or the next theme update will remove it. functions.php: load the Umami tracker and skip logged-in administrators: ```php add_action( 'wp_enqueue_scripts', function () { // Don't count your own visits while logged in as an administrator. if ( current_user_can( 'manage_options' ) ) { return; } wp_enqueue_script( 'umami', 'https://cloud.umami.is/script.js', // Your script URL. array(), null, array( 'strategy' => 'defer', 'in_footer' => false ) ); } ); // Add the website ID to the script tag. add_filter( 'script_loader_tag', function ( $tag, $handle ) { if ( 'umami' !== $handle ) { return $tag; } return str_replace( ' ``` ## API address and sign-in You need the API only to read stats outside Umami, for example in a WordPress dashboard widget. Tracking works without it. - **Umami Cloud.** The API is at `https://api.umami.is/v1` and API keys are the only way to sign in. Create one in Umami: click your profile button, then **Settings → API keys → Create key**. Send it as an `Authorization: Bearer` header. Each key is limited to 50 calls every 15 seconds. - **Self-hosted Umami.** The API is at `https://your-umami-host/api`. Use an API key if your version has **Settings → API keys**. Otherwise send a username and password to `/api/auth/login`; Umami answers with a token for the same `Authorization: Bearer` header. A user with two-factor authentication also needs a one-time code, which an unattended server cannot supply, so use an API key for that user. Test the Umami API from a terminal: ```bash # Umami Cloud: list your websites with an API key. curl https://api.umami.is/v1/websites \ -H "Accept: application/json" \ -H "Authorization: Bearer YOUR-API-KEY" # Self-hosted Umami: log in, then use the token from the response. curl -X POST https://your-umami-host/api/auth/login \ -H "Content-Type: application/json" \ -d '{"username":"your-username","password":"your-password"}' curl https://your-umami-host/api/websites \ -H "Accept: application/json" \ -H "Authorization: Bearer YOUR-TOKEN" ``` ## Self-hosted settings that change the WordPress setup These are environment variables on the Umami server, so they do not exist on Umami Cloud. | Variable | What it does | What changes in WordPress | |---|---|---| | `TRACKER_SCRIPT_NAME` | Serves the tracker under another name than `script.js`, for example `stats.js`. | The script URL becomes `https://your-umami-host/stats.js`. | | `COLLECT_API_ENDPOINT` | Receives data on another route than `/api/send`. | Nothing. The tracker calls the new route by itself. | | `BASE_PATH` | Hosts Umami under a subdirectory such as `/analytics`. It is applied when Umami is built. | Add the subdirectory to the script URL and to the API address. | | `IGNORE_IP` | Ignores visits from the listed IP addresses and CIDR ranges. | Nothing. It keeps an office or home address out of your stats. | Example environment variables on a self-hosted Umami server: ```text TRACKER_SCRIPT_NAME=stats.js COLLECT_API_ENDPOINT=/api/x IGNORE_IP=203.0.113.10,198.51.100.0/24 ``` ## Ad blockers, proxying and data-host-url Ad blockers can block the Umami script or the address it sends data to. Umami's documented fix is to serve both from your own domain. - **Umami Cloud.** On your web server, proxy one path (for example `/stats.js`) to `https://cloud.umami.is/script.js` and `/api/send` to `https://gateway.umami.is/api/send`. Then set `data-host-url` to your own domain, so the tracker posts there instead of to `gateway.umami.is`. - **Self-hosted Umami.** Rename the script and the endpoint with `TRACKER_SCRIPT_NAME` and `COLLECT_API_ENDPOINT`. You need `data-host-url` only when the script is served from a different host than Umami itself, such as a CDN. Proxying is configured on the web server (Nginx, Apache or similar), so you need access to its configuration. Umami Cloud loaded through a proxy on your own domain: ```html ``` ## What to enter in Connect for Umami All of these fields are under Settings → WPUmami. | Field | Umami Cloud | Self-hosted Umami | |---|---|---| | **Umami website ID** (Tracking tab) | The `data-website-id` from your tracking code | The `data-website-id` from your tracking code | | **Umami script URL** (Tracking tab) | `https://cloud.umami.is/script.js` | `https://your-umami-host/script.js`, or the renamed script | | **Host URL** (Tracking tab, advanced) | Blank. If you proxy the script, your own domain | Blank, unless the script is served from another host than Umami | | **Umami API URL** (Dashboard tab) | Blank: Umami Cloud is detected from the script URL. If you proxy the script, `https://api.umami.is/v1` | Blank to reuse the script host. With `BASE_PATH`, your instance address including the subdirectory | | **API key** (Dashboard tab) | Needed for the dashboard widget | Recommended, if your version has API keys | | **Username** and **Password** (Dashboard tab) | Leave blank | Only if you have no API key | ## How to connect WordPress to Umami Cloud or self-hosted Umami The steps are the same for both. Only the values differ. 1. **Copy your tracking details from Umami.** In Umami, go to **Websites**, click **Edit** next to your site and open **Tracking code**. Note the script URL (the `src`) and the website ID (the `data-website-id`). 2. **Add the tracker to WordPress.** With Connect for Umami, paste both values on the **Tracking** tab under **Settings → WPUmami** and save. Without the plugin, use one of the manual methods in [how to add Umami to WordPress](https://wpumami.com/guides/add-umami-to-wordpress/). 3. **Create an API key in Umami.** Only needed for stats inside WordPress. In Umami, click your profile button, then **Settings → API keys → Create key**. On a self-hosted version without API keys, create a view-only user instead. 4. **Enter the API details.** On the **Dashboard** tab, paste the API key, or the username and password for self-hosted Umami. Leave **Umami API URL** blank unless the table above says otherwise, then save. 5. **Check the status panel.** The panel at the top of the settings screen has two lines, **Tracking script** and **Stats API**. When both work it reads **Connected to Umami** and names the website it is reading. > **The most common mistake: the wrong API address** The Umami Cloud API is at `https://api.umami.is/v1`, not under `cloud.umami.is`, and it accepts API keys only: your Cloud username and password will not work. On a self-hosted instance the API is at `/api` on your own host, after the subdirectory if you set `BASE_PATH`. ## Version requirements on self-hosted Umami Connect for Umami works with self-hosted Umami v2 and v3. Some Umami features need a minimum version: `data-tag` needs 2.11, the Revenue report 2.14, `data-do-not-track` 2.17 and Core Web Vitals (`data-performance`) 3.1. If a feature is missing on a self-hosted instance, check its version first. ## Frequently asked questions ### What is the Umami script URL for Umami Cloud? It is `https://cloud.umami.is/script.js`. On a self-hosted instance it is usually `https://your-umami-host/script.js`, unless the script was renamed with `TRACKER_SCRIPT_NAME` or Umami runs under a subdirectory. ### What is the Umami API URL for self-hosted Umami? The address of your instance followed by `/api`, for example `https://your-umami-host/api`. Umami Cloud is different: its API is at `https://api.umami.is/v1`. In Connect for Umami you can leave the API URL blank for both, unless Umami runs under a subdirectory or the script is proxied. ### Can I use my username and password with the Umami Cloud API? No. On Umami Cloud, API keys are the only way to authenticate. Create one under Settings → API keys. Logging in through `/api/auth/login` is for self-hosted Umami. ### Does the Umami Cloud API have a rate limit? Yes. Each Umami Cloud API key is limited to 50 calls every 15 seconds. Connect for Umami calls the API from your WordPress server and caches the results for five minutes. ### How do I stop ad blockers from blocking Umami on WordPress? Serve the script and the collection endpoint from your own domain. With Umami Cloud, proxy both on your web server and set `data-host-url`. With self-hosted Umami, rename them with `TRACKER_SCRIPT_NAME` and `COLLECT_API_ENDPOINT`. In Connect for Umami, `data-host-url` is the **Host URL** field on the Tracking tab. --- # How to track WooCommerce revenue in Umami URL: https://wpumami.com/guides/track-woocommerce-revenue-umami/ Last updated: 2026-11-11 Umami reports revenue from events that carry revenue and currency. Send one purchase event per WooCommerce order with a PHP snippet or a no-code plugin. Umami has a Revenue report, but it does not read WooCommerce orders by itself. Something has to send each order to Umami as an event. Here are two ways to do that, and what to expect from the numbers. **Short answer:** To track WooCommerce revenue in Umami, send an event that carries a revenue and a currency property each time an order is placed. Umami's Revenue report (Umami 2.14 or newer) adds those up. Print a small script on the WooCommerce order confirmation page that calls umami.track('purchase', { revenue, currency }) once per order, or switch on WooCommerce in Connect for Umami. ## How Umami's Revenue report works Umami builds its Revenue report from events, not from your store. An event counts as revenue when its data includes two properties: `revenue`, a number, and `currency`, an ISO 4217 code such as `USD` or `EUR`. If Umami does not recognize the currency code, it falls back to USD. The event name is up to you. This guide uses `purchase`. Revenue reporting is available from Umami 2.14.0. In the report you choose a currency, and Umami adds up the events in that currency for the period you select. The event Umami needs for each order: ```js umami.track('purchase', { revenue: 36.5, currency: 'USD', order_id: '1042' }); ``` ## The two methods compared | | PHP snippet | Connect for Umami | |---|---|---| | Needs code | Yes | No | | Sends revenue and currency for each order | Yes | Yes | | Counts each order once | Yes | Yes | | Skips failed, canceled and refunded orders | Yes | Yes | | Cart and checkout events | No | Yes | | Tax, shipping, discount, coupon and payment method on the purchase | Only if you add them | Yes | | Survives a theme change or update | Only in a child theme or code-snippets plugin | Yes | ## Method 1: send WooCommerce revenue to Umami with a PHP snippet This works on any WooCommerce site where the Umami tracker is already loading. 1. **Check that Umami is tracking the store.** The snippet uses the Umami tracker that is already on the page. If you have not added it yet, follow [how to add Umami to WordPress](https://wpumami.com/guides/add-umami-to-wordpress/) first. 2. **Add the snippet.** Copy the code below into a child theme's `functions.php` or into a code-snippets plugin. Do not put it in a parent theme, or the next theme update will remove it. 3. **Place a test order.** Open the store in a private browser window, so nothing excludes you from tracking, and check out with a test payment method. 4. **Check Umami.** In Umami, open the website and look for `purchase` under **Events**. Then open the **Revenue** report and choose your currency. Reload the confirmation page once: the order must not be counted a second time. functions.php: send one purchase event per WooCommerce order: ```php /** * Send each WooCommerce order to Umami once, as a purchase event with revenue. */ add_action( 'wp_footer', function () { // Only on the order confirmation ("order received") page. if ( ! function_exists( 'is_order_received_page' ) || ! is_order_received_page() ) { return; } global $wp; $order_id = isset( $wp->query_vars['order-received'] ) ? absint( $wp->query_vars['order-received'] ) : 0; $order = $order_id ? wc_get_order( $order_id ) : false; if ( ! $order ) { return; } // The order key in the URL proves this visitor may see this order. $key = isset( $_GET['key'] ) ? sanitize_text_field( wp_unslash( $_GET['key'] ) ) : ''; if ( '' === $key || ! hash_equals( $order->get_order_key(), $key ) ) { return; } // Skip orders that did not go through, and orders that were already sent. if ( $order->has_status( array( 'failed', 'cancelled', 'refunded' ) ) || $order->get_meta( '_umami_purchase_sent' ) ) { return; } $data = array( 'revenue' => round( (float) $order->get_total(), 2 ), 'currency' => $order->get_currency(), 'order_id' => (string) $order->get_order_number(), ); // Umami's script is deferred: wait until it exists, for up to 10 seconds. $script = sprintf( '(function () { var data = %s, tries = 0; var timer = setInterval(function () { if (window.umami && window.umami.track) { clearInterval(timer); window.umami.track("purchase", data); } else if (++tries >= 100) { clearInterval(timer); } }, 100); })();', wp_json_encode( $data, JSON_HEX_TAG ) ); wp_print_inline_script_tag( $script ); // Flag the order so a reload or a later visit is not counted again. $order->update_meta_data( '_umami_purchase_sent', time() ); $order->save(); }, 20 ); ``` ## What the snippet does - **Runs only on the order confirmation page.** It hooks `wp_footer` and checks `is_order_received_page()`, so it does not depend on which confirmation template the store uses, classic or block-based. - **Checks the order key.** The `key` in the URL has to match the order. That is WooCommerce's own proof that this visitor may see it. - **Skips orders that did not go through.** Failed, canceled and refunded orders are left out. - **Counts each order once.** After printing the script it saves a flag on the order with `update_meta_data()` and `save()`. These work with High-Performance Order Storage too. - **Waits for Umami.** The tracker loads with `defer`, so the script looks for `window.umami` every 100 milliseconds and gives up after 10 seconds. - **Escapes the data.** The values pass through `wp_json_encode()` before they are printed. The snippet needs WordPress 5.7 or newer for `wp_print_inline_script_tag()`. To send more detail, add keys to the `$data` array, for example a `tax` key filled from `$order->get_total_tax()`. > **The most common mistake: counting the same order twice** Many snippets send the event every time the confirmation page loads. Customers reload that page, or return to it from their browser history, and the same order is added to your revenue again. Store a flag on the order, as the snippet above does, and check it before sending. ## Why Umami revenue can read lower than WooCommerce Both methods on this page count the purchase in the customer's browser, on the confirmation page. A customer who pays on an external payment page and never returns to your site, or whose browser blocks the Umami script, is not counted. Expect Umami revenue to read slightly lower than WooCommerce's own reports. What you get in return: the sale lands in the same Umami session as the visit that led to it, so you can see which referrer, campaign or landing page it came from. Use Umami to see where sales come from, and WooCommerce as the record of what was sold. ## Method 2: track revenue with Connect for Umami No code. The plugin sends the purchase event and three more store events. 1. **Connect the site to Umami.** In WordPress, go to **Settings → WPUmami → Tracking**. Paste your Umami website ID and script URL, then save. 2. **Switch on WooCommerce.** Open the **Store** tab, tick **WooCommerce** and save. 3. **Place a test order and check Umami.** Use a private browser window, because logged-in administrators are not tracked by default. In Umami you should see `add_to_cart`, `begin_checkout` and `purchase` under **Events**, and the order total in the **Revenue** report. ## What Connect for Umami sends for WooCommerce | Event | When it is sent | Data | |---|---|---| | `purchase` | The order confirmation page is shown for a new order. Once per order. | `revenue`, `currency`, `order_id`, `items`, `tax`, `shipping`, `discount`, `coupon`, `payment_method` | | `add_to_cart` | A product is added, or its quantity is increased. | `product`, `product_id`, `sku`, `quantity`, `price`, `value`, `currency` | | `remove_from_cart` | A line is removed, or its quantity is reduced. | Same as `add_to_cart` | | `begin_checkout` | The checkout page is shown with items in the cart. | `value`, `currency`, `items` | Works with the classic cart and checkout, the block cart and checkout, and the Store API. No customer names, email addresses, addresses or payment details are sent. The [WooCommerce tracking page](https://wpumami.com/features/woocommerce/) describes every event and data key in full. ## Frequently asked questions ### Does Umami track WooCommerce revenue automatically? No. Umami has a Revenue report, but it only adds up events that carry `revenue` and `currency` properties. Umami does not send those events from WooCommerce by itself. You send them with code, as in the snippet on this page, or with a plugin such as Connect for Umami. ### Which Umami version do I need for revenue tracking? Umami 2.14.0 or newer. On an older self-hosted version the `purchase` event is still recorded as an event, but there is no Revenue report to add it up. ### What should the WooCommerce purchase event be called in Umami? Any name of up to 50 characters. Umami's Revenue report reads the `revenue` and `currency` properties, not the event name. This guide and Connect for Umami both use `purchase`. ### Why is revenue in Umami lower than in WooCommerce? The purchase is counted in the customer's browser on the order confirmation page. Customers who pay on an external page and never return to your site, or who block the Umami script, are not counted. Failed, canceled and refunded orders are left out as well. ### How do I stop a reload of the thank-you page from counting an order twice? Mark the order when you send the event. The snippet saves a flag in the order's meta data with `$order->update_meta_data()` and `$order->save()`, and skips any order that already has it. Connect for Umami does the same for you. ### Does this work with the WooCommerce block checkout and HPOS? Yes. The snippet checks `is_order_received_page()` and reads and writes the order through WooCommerce's order object, so it works with the block checkout and with High-Performance Order Storage. Connect for Umami supports the classic and block cart and checkout, the Store API and HPOS. --- # How to track form submissions in Umami on WordPress URL: https://wpumami.com/guides/track-form-submissions-umami/ Last updated: 2026-11-11 Count successful form submissions in Umami: JavaScript for Contact Form 7, Gravity Forms, WPForms, Elementor, Fluent Forms and Ninja Forms, or a plugin. Umami does not know when a WordPress form was sent. You tell it, with an event. The reliable way is to wait for the form plugin's own success signal, so failed attempts are not counted. **Short answer:** To track form submissions in Umami on WordPress, send an Umami event when the form plugin reports a successful submission. Each plugin announces success with a JavaScript event, such as wpcf7mailsent in Contact Form 7. Listen for it and call umami.track('form_submit'). Putting data-umami-event on the submit button is quicker, but it counts clicks, not submissions. Connect for Umami does this without code. ## Three ways to track a form, compared | | data-umami-event on the button | JavaScript on the success event | Connect for Umami | |---|---|---|---| | Counts only successful submissions | No | Yes | Yes | | Works without writing code | Partly | No | Yes | | Tells forms apart | By the names you type in | By form ID | By form name, form ID and plugin | | Forms that reload the page instead of using AJAX | Clicks are still counted | Not covered by the snippets below | Yes | ## Approach 1: data-umami-event on the submit button Umami records a click on any element that has a `data-umami-event` attribute. Extra `data-umami-event-*` attributes are sent with it as event data, always as text. A submit button that Umami counts clicks on: ```html ``` This is a click counter. It fires when the button is pressed, including when the form then shows a validation error or the message is never sent. Form plugins also build the submit button for you and often give you no place to add an attribute, so in practice this suits forms whose HTML you write yourself. ## Approach 2: send an Umami event when the form plugin reports success The six form plugins below each announce a successful submission in JavaScript. Listen for that announcement, then call umami.track. 1. **Find your form plugin's success event.** Use the table below. Each plugin has its own event, and some only fire for forms that submit with AJAX. 2. **Copy the matching snippet.** Each snippet further down sends `form_submit` with the plugin and the form ID. Add details of your own if you like, but never send what was typed into the form. 3. **Add the JavaScript to WordPress.** Load it with `wp_add_inline_script()` or a code-snippets plugin, as shown after the snippets. 4. **Test a failed and a successful submission.** In a private browser window, submit the form with a required field left empty, then submit it properly. Only the second attempt should appear as `form_submit` under **Events** in Umami. ## The success event of each form plugin | Form plugin | Event | How it is announced | Notes | |---|---|---|---| | Contact Form 7 | `wpcf7mailsent` | DOM event that bubbles up to `document` | Form ID in `event.detail.contactFormId` | | Gravity Forms | `gform_confirmation_loaded` | jQuery event on `document` | Only AJAX-enabled forms that show a confirmation message | | WPForms | `wpformsAjaxSubmitSuccess` | jQuery event on the form | Only when AJAX form submission is enabled for the form | | Elementor Forms | `submit_success` | jQuery event on the form | Part of Elementor Pro | | Fluent Forms | `fluentform_submission_success` | jQuery event on `document.body` | The form is passed in the second argument | | Ninja Forms | `nfFormSubmitResponse` | jQuery event on `document` | Fires for every server response, so check it for errors | Contact Form 7: ```js // 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) }); }); ``` Gravity Forms (AJAX forms only): ```js // Gravity Forms: gform_confirmation_loaded fires when an AJAX form shows its confirmation. jQuery(document).on('gform_confirmation_loaded', function (event, formId) { if (!window.umami) return; // Tracker blocked or not loaded. umami.track('form_submit', { plugin: 'gravity-forms', form_id: String(formId) }); }); ``` WPForms (AJAX form submission enabled): ```js // WPForms: wpformsAjaxSubmitSuccess fires on the form after a successful AJAX submission. jQuery(document).on('wpformsAjaxSubmitSuccess', function (event) { if (!window.umami) return; // Tracker blocked or not loaded. umami.track('form_submit', { plugin: 'wpforms', form_id: event.target.getAttribute('data-formid') || '' }); }); ``` Elementor Forms (Elementor Pro): ```js // Elementor Forms: submit_success fires on the form after a successful submission. jQuery(document).on('submit_success', function (event) { var form = event.target; if (!window.umami || !form.matches || !form.matches('.elementor-form')) return; var id = form.querySelector('[name="form_id"]'); umami.track('form_submit', { plugin: 'elementor', form: form.getAttribute('name') || '', form_id: id ? id.value : '' }); }); ``` Fluent Forms: ```js // Fluent Forms: fluentform_submission_success fires on document.body after a successful submission. jQuery(document.body).on('fluentform_submission_success', function (event, data) { if (!window.umami) return; // Tracker blocked or not loaded. var form = data && data.form ? data.form[0] : null; umami.track('form_submit', { plugin: 'fluent-forms', form_id: form ? form.getAttribute('data-form_id') || '' : '' }); }); ``` Ninja Forms: ```js // Ninja Forms: nfFormSubmitResponse fires on document for every server response, // so count only the responses that came back without errors. jQuery(document).on('nfFormSubmitResponse', function (event, data) { var errors = (data && data.response && data.response.errors) || {}; if (!window.umami || !data || Object.keys(errors).length) return; umami.track('form_submit', { plugin: 'ninja-forms', form_id: String(data.id) }); }); ``` ## How to add the JavaScript to WordPress safely Do not paste the code into a theme file that an update can overwrite. Two safe places: - **A code-snippets plugin.** Create a JavaScript snippet for the front end and set it to load in the footer, so it runs after jQuery and after the page body exists. - **`wp_add_inline_script()`** in a child theme's `functions.php`, as below. The code is attached to a script handle that depends on jQuery, so WordPress loads jQuery first and prints your code in the footer. Five of the six snippets listen for jQuery events, because that is how those plugins announce a submission. The Contact Form 7 snippet needs no jQuery. functions.php: load a snippet with wp_add_inline_script(): ```php add_action( 'wp_enqueue_scripts', function () { // A handle with no file of its own: it only carries the inline code. // The jquery dependency makes WordPress load jQuery first. wp_register_script( 'umami-form-events', false, array( 'jquery' ), null, true ); wp_enqueue_script( 'umami-form-events' ); // Put the snippet for your form plugin between the two JS markers. $js = <<<'JS' 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) }); }); JS; wp_add_inline_script( 'umami-form-events', $js ); } ); ``` > **The most common mistake: counting clicks as submissions** An event on the submit button, whether through `data-umami-event` or a click listener, counts every press. A visitor who hits a validation error and tries again is counted twice, and a visitor who gives up is still counted once. Wait for the form plugin's success event instead. ## The no-code way: Connect for Umami 1. **Switch on form tracking.** In WordPress, go to **Settings → WPUmami → Events**, tick **Form submissions** and save. The setting shows which of the supported form plugins are active on your site. 2. **Submit a test form.** Use a private browser window, because logged-in administrators are not tracked by default. Then look for `form_submit` under **Events** in Umami. ## What the plugin sends One event with three details. Nothing typed into the form is ever sent. | Event | When it is sent | Data sent with it | |---|---|---| | `form_submit` | A 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) | Beyond what the snippets do, the plugin covers Gravity Forms and WPForms forms that do not use AJAX, and reports a confirmation that redirects to another page on your site from the page the visitor lands on. Other HTML forms are counted when they are submitted, with the plugin value `html`; search, login, comment, cart and checkout forms are left out. Each integration has its own page: [Gravity Forms](https://wpumami.com/features/gravity-forms/), [Contact Form 7](https://wpumami.com/features/contact-form-7/), [WPForms](https://wpumami.com/features/wpforms/), [Elementor Forms](https://wpumami.com/features/elementor-forms/), [Fluent Forms](https://wpumami.com/features/fluent-forms/) and [Ninja Forms](https://wpumami.com/features/ninja-forms/). ## Frequently asked questions ### Does Umami track form submissions automatically? No. Umami records pageviews automatically. A form submission has to be sent as an event: with a `data-umami-event` attribute, with `umami.track` in JavaScript, or by a plugin such as Connect for Umami. ### Why does data-umami-event on my submit button show more submissions than I received? Because it counts clicks on the button, not completed submissions. Every press is recorded, including the ones that end in a validation error. To count real submissions, listen for the form plugin's success event. ### Why does gform_confirmation_loaded not fire for my Gravity Forms form? It fires only for AJAX-enabled forms, when the confirmation message is displayed. Switch on AJAX where the form is embedded, for example with `ajax="true"` in the shortcode. If the confirmation redirects to a thank-you page, count views of that page in Umami instead. ### Does Umami record what people type into my forms? Only if you send it. The snippets on this page send the form plugin and the form ID. Do not add field values such as names or email addresses, because that would put personal data into Umami. Connect for Umami sends only the form's name, its ID and the plugin. ### Where do I see form submissions in Umami? Open the website in Umami and go to **Events**. `form_submit` appears in the list of events, and the **Properties** tab breaks the submissions down by `form_id` and `plugin`. ### Do I need jQuery to track form submissions in Umami? Only to hear the form plugin. Umami itself needs no jQuery. Contact Form 7 announces success with a standard DOM event, so its snippet is plain JavaScript. The snippets for Gravity Forms, WPForms, Elementor Forms, Fluent Forms and Ninja Forms listen for jQuery events. --- # How to set a conversion value in Umami on WordPress URL: https://wpumami.com/guides/track-conversion-value-umami/ Last updated: 2026-11-19 Give a form submission or a phone click a money value in Umami, so the Revenue and Attribution reports show what your campaigns and ads bring in. 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 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: ```html Call us ``` 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](https://wpumami.com/guides/track-form-submissions-umami/) has the success event of six form plugins. Contact Form 7: every sent form is worth 50 dollars: ```js // 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: ```js // 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' }); }); ``` > **A lead value is an estimate, so work it out** A simple way: the share of leads that become customers, multiplied by what a customer is worth. If one quote request in ten turns into a 500 dollar job, a quote request is worth 50. Umami adds the figure to the same Revenue total as real sales in that currency, so on a site that also sells online the total mixes estimates with orders. ## 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 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. | `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_call` (An 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. --- # How to track outbound links and button clicks in Umami on WordPress URL: https://wpumami.com/guides/track-outbound-links-button-clicks-umami/ Last updated: 2026-11-11 Track outbound link clicks and button clicks in Umami on WordPress with data-umami-event attributes, one JavaScript click listener, or a no-code plugin. Umami records pageviews by itself. Clicks are events, and you decide which ones to send. In WordPress there are three ways to do it, from one attribute per element to one switch for the whole site. **Short answer:** To track outbound links and button clicks in Umami on WordPress, add Umami's data-umami-event attribute to each link or button, or add one JavaScript click listener that calls umami.track for links to other hostnames and for buttons. The attribute is awkward in the block editor, which has no field for custom attributes. Connect for Umami does both with two switches on its Events tab. ## Three ways to track clicks, compared | | data-umami-event attributes | One click listener | Connect for Umami | |---|---|---|---| | Works without writing code | Partly | No | Yes | | Covers every outbound link and button automatically | No | Yes | Yes | | Works with the block editor's Button block | Not without code | Yes | Yes | | Recognizes page builder buttons | Only where the builder has an attribute field | Only the selectors you add | Yes | | Data sent with the event | What you type in, saved as text | What your script collects | Link address and text, button text and ID | ## Method 1: data-umami-event attributes Umami records a click on any element that carries a `data-umami-event` attribute, and uses the attribute's value as the event name. Attributes that start with `data-umami-event-` are sent along as event data. An outbound link and a button tracked with Umami's data attributes: ```html Visit our partner ``` Two notes from Umami's documentation: event data sent this way is always saved as text, and other event listeners inside the element will not be triggered. Test any element that also runs JavaScript of its own. ### Why attributes are awkward in WordPress - **The block editor has no field for custom attributes.** A Button block offers an HTML anchor and extra CSS classes, not `data-` attributes. If you add one by editing the block as HTML, the editor usually reports the block as invalid. - **A Custom HTML block works,** but you then write and maintain the link by hand. - **Page builders differ.** Some have a field for custom attributes (in Elementor it is part of Elementor Pro), others have none. - **Every element is tagged one by one,** including the links and buttons added later. ## Method 2: track outbound links and buttons with one click listener One script watches every click and sends an event for outbound links and for buttons. Nothing is added to individual elements. 1. **Save the script.** Save the JavaScript below as `umami-click-events.js` in your child theme's folder. 2. **Tell it what a button is.** Edit the `BUTTONS` selector at the top. It covers real buttons and the block editor's Button block. Add the button class of your theme or page builder. 3. **Load it on the front end.** Add the PHP below to the child theme's `functions.php`. A code-snippets plugin that runs JavaScript on the front end works as well: paste the script there instead. 4. **Test it.** In a private browser window, click a link to another site and a button. In Umami, `outbound_link_click` and `button_click` should appear under **Events**. umami-click-events.js: outbound links and button clicks: ```js (function () { // What counts as a button. Add your theme's or page builder's button class. var BUTTONS = 'button, input[type="submit"], [role="button"], .wp-block-button__link, .wp-element-button'; // Umami's script is deferred: wait for window.umami (up to 10 seconds), then send. function send(name, data, tries) { if (window.umami && window.umami.track) { window.umami.track(name, data); } else if ((tries || 0) < 100) { setTimeout(function () { send(name, data, (tries || 0) + 1); }, 100); } } function label(el) { return (el.innerText || el.value || el.getAttribute('aria-label') || '').replace(/\s+/g, ' ').trim().slice(0, 100); } function bare(host) { return host.replace(/^www\./, ''); } // One listener on the document covers every link and button, including ones added later. document.addEventListener('click', function (event) { var target = event.target; if (!target || !target.closest) return; // Elements with Umami's own attribute are already tracked by Umami. if (target.closest('[data-umami-event]')) return; var link = target.closest('a[href]'); var button = target.closest(BUTTONS); var outbound = link && /^https?:$/.test(link.protocol) && bare(link.hostname) !== bare(window.location.hostname); if (outbound) { send('outbound_link_click', { url: link.origin + link.pathname, text: label(link) }); } else if (button) { send('button_click', { text: label(button), id: button.id || undefined }); } }, true); })(); ``` functions.php: load the script on every front-end page: ```php add_action( 'wp_enqueue_scripts', function () { wp_enqueue_script( 'umami-click-events', get_stylesheet_directory_uri() . '/umami-click-events.js', // The file in your child theme. array(), '1.0', true // Load in the footer. ); } ); ``` ## What the script does, and what it leaves out - A link is outbound when it points to a different hostname than the page. `www.example.com` and `example.com` count as the same site. - The `url` is sent without its query string, so nothing in the query string reaches Umami. - Each click is one event. An outbound link that is styled as a button is sent as `outbound_link_click` only. - Elements that already carry `data-umami-event` are skipped, so nothing is counted twice. - It waits for `window.umami`, because Umami's script is deferred, and gives up after 10 seconds if the tracker never loads. - It hears normal clicks only. A middle-click that opens a link in a new tab is a different browser event (`auxclick`) and is not counted. > **The most common mistake: calling umami.track without checking it exists** Code such as `onclick="umami.track('signup')"` works until the tracker is missing. That happens when an ad blocker blocks the script, when the visitor is left out of tracking, or when the click comes before the deferred script has loaded. The browser then reports "umami is not defined" and the rest of your click handler does not run. Check `window.umami` first, as the script above does. ## Method 3: two switches in Connect for Umami 1. **Open the Events tab.** In WordPress, go to **Settings → WPUmami → Events**. 2. **Switch on what you want to track.** Tick **Outbound links** and **Button clicks**, then save. A third switch, **Link clicks**, adds clicks on links within your own site, including downloads, email and phone links. 3. **Check Umami.** Click a few links and buttons in a private browser window, because logged-in administrators are not tracked by default. Then look under **Events** in Umami. ## What each event carries One event per click, by the most specific thing it was: outbound link first, then button, then internal link. | Event | When it is sent | Data sent with it | |---|---|---| | `outbound_link_click` | A click on a link to another website. | `url` (Address of the link, without the query string); `text` (The link text); `button` (true when the link is styled as a button) | | `button_click` | A click on a button. | `text` (The button text); `url` (Where it leads, if the button is a link); `id` (The button's ID, if it has one) | | `link_click` | A click on a link within the site. Needs the Link clicks switch. | `url` (Path of the link); `text` (The link text); `type` (internal, download, email or phone) | ## Which buttons the plugin recognizes Button click tracking recognizes real `