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

Gravity Forms Privacy Analytics Premium Add-on Setup Guide

Updated 11 min read Gravity Forms Analytics & Ad Tracking
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Where to send
  5. What to send
  6. Goals in each tool
  7. Consent
  8. Settings for one form
  9. Goal values
  10. Sending a field value on purpose
  11. Confirmations that redirect
  12. A worked example
  13. Testing your setup
  14. Privacy and good practice
  15. For developers
  16. Frequently asked questions
  17. Does the add-on install Plausible, Fathom or Matomo?
  18. Does it work with cached pages?
  19. Does it save anything in the database or on the visitor’s device?
  20. Why is nothing sent on my test page?
  21. Why does Plausible not show my goal?
  22. Which Gravity Forms versions does it support?
  23. Get started

Video walkthrough

Gravity Forms Privacy Analytics: Send Form Events and Goals to Plausible, Fathom and Matomo
Video tutorial: Gravity Forms Privacy Analytics Watch on YouTube

The Gravity Forms Privacy Analytics Premium Add-on tells Plausible, Fathom and Matomo what happens to your Gravity Forms forms. It sends four things: that a form was shown, which page of a multi-page form the visitor reached, that the form was submitted, and that the visitor met a validation error. In Plausible they are custom events that you can turn into goals. In Fathom they are events. In Matomo they are events with a category, an action and a name, and a submission can also record a goal conversion. A submission can carry a goal value, such as the price of an order or the worth of a lead.

It uses only the JavaScript of the three tools. It does not load their tracking code, it makes no call from your server, it sets no cookie and it sends no field value unless you map a field yourself. Nothing is sent before the visitor has agreed, unless you tell the add-on that your site needs no consent.

What you need

  • WordPress 5.8 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.5 or newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • The tracking code of Plausible, Fathom, Matomo, or any of them, already installed on your site (their own plugins, Google Tag Manager or a code snippet).
  • An active license key for this add-on.

The add-on calls plausible(name, options) with the props and revenue options (custom event goals and revenue tracking), fathom.trackEvent(name, options) with the _value option in cents (Fathom events), and the Matomo tracking queue with trackEvent and trackGoal (Matomo JavaScript tracking guide). If a tool is not installed, its part is skipped without an error. If the tool loads late, the event waits for it for up to twenty seconds.

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms.
  2. Open Forms → Settings → Privacy Analytics and enter your license key.
  3. Choose where to send, what to send and how consent is checked (next sections).
The Privacy Analytics add-on settings in Gravity Forms: where to send (Plausible, Fathom, Matomo), currency, and what to send (view, step, submission, error)
The add-on settings: tools, currency and events.

Where to send

Switch Plausible, Fathom and Matomo on or off. You can use one, two or all three. The event name prefix is the start of every Plausible and Fathom event name, gf by default. The Matomo event category is the category of every Matomo event, Gravity Forms by default. The currency is the three-letter code that Plausible needs for a goal value, such as USD, EUR or GBP. Track all forms is on by default; switch it off to track only the forms that you switch on one by one in their own settings.

What to send

Every Plausible and Fathom event name is made of the prefix, the name of the form and the kind of event. For a form that is called booking, with the default prefix, the events are:

  • gf_booking_view: the form was shown. Sent once per page load.
  • gf_booking_step_2, gf_booking_step_3 and so on: the visitor reached that page of a multi-page form. Going back and forward again sends the step again.
  • gf_booking_submit: the form was submitted and the confirmation was shown. This is the event that carries the goal value.
  • gf_booking_error: the form came back with validation errors. A new failed try is a new event.
  • gf_booking_error_field_3: optional, one event for each field that has an error. Only the field number is sent.

Matomo receives the same events in its own shape: the category from the settings, the kind of event as the action (view, step_2, submit, error, error_field_3) and the name of the form as the event name. In Matomo you then read the events by category, action or name without creating anything first.

Event names contain only letters, digits, underscores and dashes, up to 120 characters. Spaces become underscores and other characters are removed.

Plausible properties are on by default. Each Plausible event carries the property form (the name of the form) and, when it applies, step (the page). Fathom has no properties. Error messages and field values are never sent. The browser console switch writes each call to the console of the visitor, which helps while you test.

Goals in each tool

  • Plausible counts an event as a goal when you add a custom event goal with exactly the same name, for example gf_booking_submit. The name is case sensitive. Until then the event is received but not listed as a goal. Properties can be used in a funnel or a breakdown once they are enabled in the Plausible site settings.
  • Fathom creates the event the first time it arrives. Open the events list, and check the currency of the event if it has a value.
  • Matomo shows events under Behaviour. To count a submission as a goal, create a goal in Matomo and write its number in the form settings (see below). The add-on then records a conversion of that goal for each submission.

Cookieless tools are often used without a banner, but not always: Matomo can be set to require consent, and many sites keep one banner for everything. The add-on therefore waits for consent whenever you ask it to. Choose how the add-on finds out:

  • WP Consent API (recommended): works with the consent banners that support the WP Consent API. Choose the category (Statistics by default). If the API is not on the site, the answer is no and nothing is sent.
  • A cookie set by my consent banner: give the cookie name and the value that means yes (several values separated by commas). If you leave the value empty, any value except no, false, 0, deny, denied, reject, rejected, refuse or refused counts as yes.
  • My own code: the add-on waits until your code calls GEPA.grant() or sends the gepa:consent event on the document.
  • No check: for sites that do not need consent, which is the usual case for a cookieless tool that is set up that way. Use it only when that is true for your visitors.

This check is separate from the consent features of the tools. If you use Matomo with its own consent requirement (tracking consent guide), Matomo still decides what it records after the add-on has handed it the event.

The Consent part of the settings: consent check set to a cookie set by the consent banner, the cookie name and the cookie value that means yes
Consent: nothing is sent until the visitor has agreed.

Events that happen before consent are held in the memory of the page, at most 40 of them. When consent arrives, they are sent in order. If the visitor leaves without agreeing, they are gone: the add-on stores nothing in the browser (no cookie, no local storage) and sends nothing.

Settings for one form

Open a form and go to Settings → Privacy Analytics.

  • Track this form: follow the add-on setting, always, or never.
  • Name in event names: optional. The default is form plus the form number, such as form5. A readable name such as booking makes the reports easier to read.
  • Goal value of a submission: optional, see the next section.
  • Take the goal value from field: optional, see the next section.
  • Matomo goal number: optional. The number of a goal that you created in Matomo.
  • Send these field values as Plausible properties: optional, see the section after next.
The Privacy Analytics form settings: track this form, the name used in event names, the goal value, the field to take it from, the Matomo goal number and the properties to send
Form settings: the goal value, the Matomo goal and the optional properties.

Goal values

A submission can be worth something. Enter a fixed amount, such as 25, as the goal value of a lead form. For an order form, enter the number of the field that holds the amount, such as a Total field or a Number field, and the amount of that field is used for each submission. If the field is empty or is not a positive number, the fixed value is used, and if there is none, the submission carries no value.

The value is sent as the tools expect it:

  • Plausible gets revenue with the currency from the settings and the amount in major units, such as 49.9. A wrong currency code makes Plausible record the event without revenue, so check the code.
  • Fathom gets _value in cents, so 49.9 is sent as 4990. Set the currency of the event in the Fathom dashboard.
  • Matomo gets the amount as the value of the event and, when a goal number is set, as the revenue of the goal conversion.

Amounts are read from text such as 1,234.56, 1.234,56 or $ 12,5. They are rounded to two decimals, must be above zero and below one billion. The field of a value must not be a password, card, file, signature, list, captcha or image field. With a redirect confirmation, only the fixed value is sent, because the entry is no longer in the page.

Sending a field value on purpose

By default no field value leaves your site, apart from the goal value. If you want to segment Plausible events by a safe answer, such as the plan a visitor chose, write one line for each property in the form settings, like this:

plan=3

This sends the value of field 3 as the property plan, together with the submission event. The value is cut to 100 characters. You can map up to ten fields. Password, credit card, file upload, signature, list, captcha and image fields are never sent, even when mapped. The names form, step and status are reserved. Map only values that you are allowed to share with the tool, and tell your visitors in your privacy policy. Fathom and Matomo do not get these properties.

Mapped values are sent with a confirmation that shows a message on the same page, with or without Ajax. With a redirect confirmation the submission event is sent, but mapped values are not.

Confirmations that redirect

When the confirmation redirects to another page of your own site, the add-on adds a small marker to the address, gepa_done with the form number. The thank-you page sends the submission event and removes the marker from the address, so a reload does not send it twice. A redirect to another website cannot be followed, so the submission event is not sent for it. Use a message confirmation, or redirect to a page of your site that then forwards the visitor.

A worked example

An order form has two pages: contact details, then the order with a Total field (field 3). You give it the name order, a fixed goal value of 10 as a fallback, field 3 as the value field and Matomo goal 4. A visitor opens the page and completes both pages. What the tools receive, in order:

  1. gf_order_view in Plausible and Fathom, and the Matomo event Gravity Forms, view, order.
  2. gf_order_step_2 in Plausible (with the properties form=order and step=2) and Fathom, and the Matomo event with the action step_2.
  3. After the visitor finishes with a total of 149.50: gf_order_submit in Plausible with revenue 149.5 in the site currency, in Fathom with a value of 14950 cents, and in Matomo the event submit with the value 149.5, followed by a conversion of goal 4 with the revenue 149.5.

In Plausible, add the custom event goal gf_order_submit, and the revenue appears next to it. In Matomo, open the goal report to see the conversions and their revenue.

Testing your setup

  1. Open Forms → Settings → Privacy Analytics and switch on Write what is sent to the browser console.
  2. Open the page with the form in a private window and accept cookies in your banner, if you use one.
  3. Open the browser console. Each call to a tool is written as a line that starts with GEPA. If you see none, check the consent choice first, then check that the tracking code of the tool is on the page.
  4. Submit the form with a field left empty, then submit it correctly, and look at the lines again.
  5. Switch the console option off when you are done.

In the tools themselves, events can take a few minutes to appear. Plausible lists them under the goal conversions once the goal exists, Fathom lists them in the events view, and Matomo shows them under Behaviour, Events.

Privacy and good practice

  • Tell visitors about the tools in your privacy policy, and keep the consent check on unless your legal advice says it is not needed.
  • Keep properties free of personal data: names, email addresses, phone numbers and free text do not belong in an analytics event.
  • The add-on never sends error messages, because a message can repeat what the visitor typed.
  • Goal values are the amounts that you chose or that the form calculated. They are not personal data on their own, but check that a value cannot identify a person.

For developers

  • gepa_form_config filters the settings that the script receives for a form. Return null to skip a form.
  • gepa_blocked_field_types adds field types that are never sent as properties or used for a value.
  • window.GEPA.grant() and the gepa:consent document event tell the add-on that consent was given, in the own code mode.

Frequently asked questions

Does the add-on install Plausible, Fathom or Matomo?

No. Install their tracking code the way you prefer. The add-on only sends events to the tools that are already on the page.

Does it work with cached pages?

Yes. The settings travel in the form markup and the consent is checked in the visitor’s browser, so a cached page works. The submission marker is part of the confirmation, which is never cached.

Does it save anything in the database or on the visitor’s device?

No. Its only stored data is the settings. It writes no cookie, no local storage and no session storage, and it makes no request to any website.

Why is nothing sent on my test page?

Most often the consent check says no. Switch on the browser console option, reload the page and look for lines that start with GEPA. Also check that the tracking code of the tool is on the page.

Why does Plausible not show my goal?

Add a custom event goal in the Plausible site settings with exactly the event name, for example gf_booking_submit. The name is case sensitive.

Which Gravity Forms versions does it support?

Gravity Forms 2.5 and newer. It is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.

Get started

Measure your forms without cookies. The Gravity Forms Privacy Analytics Premium Add-on sends form events and goal values to Plausible, Fathom and Matomo in a few clicks, with consent and without field values. See the features, the price and the setup guide on the add-on page.

See the Privacy Analytics add-on

Still need help?

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

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