Re is out: see what's new Lifetime updates on every purchase Support replies within 24 hours Secure checkout via Gumroad 8,500+ sales since 2016

Analytics

Updated 3 min read 0 views

The Analytics add-on counts your forms’ conversions in Google Analytics 4, Google Tag Manager, Yandex Metrica and the Meta Pixel: each message that goes through, with its value, and the way there (how many see a form, start it, and where the rest give up). Nothing visitors type is sent: only the form, the event and the value.

Set it up

  1. In Contact Form → Settings → Integrations → Analytics, fill in the services you use: the GA4 measurement ID (G-…, in Google Analytics under Admin → Data streams), the Metrica counter ID, the Meta Pixel ID, or turn on Push the events to Google Tag Manager.
  2. If your site doesn’t load those tags yet, turn on Add these tags to the site. Leave it off when Site Kit, your theme or another plugin loads them already, or they’d count twice.
  3. In Metrica, make a goal of the JavaScript event type with the identifier generate_lead, or the name your form uses.
  4. Open a form, then its Analytics tab, and pick the conversion’s value.

The form’s Analytics tab

SettingWhat it does
Count this form’s conversionsOn at first.
Event and goal nameThe GA4 event, the Metrica goal’s identifier and the Tag Manager event. generate_lead at first, Google’s own name for a lead.
Its valueNone, The amount paid, A set value, or a field: a Number, a Calculator total, or a select or radio whose options end in a price (“Basic (20)”).
CurrencyThree letters, USD at first. A payment’s own currency comes first.
Count it in Google Analytics from the serverCounted even when an ad blocker stops Google’s tag. Needs the Measurement Protocol API secret in Settings.
Count views, starts, errors and drop-offsOn at first. See below.

What each service gets

WhenGoogle Analytics 4Yandex MetricaMeta PixelTag Manager
A message goes throughgenerate_lead with value and currencygoal generate_lead, order_priceLeadremaily_generate_lead
It was paidpurchase with transaction_idgoal purchasePurchaseremaily_purchase
Half of the form is on screenremaily_form_viewgoal remaily_form_viewcustom remaily_form_viewremaily_form_view
The first field is filledremaily_form_startgoalcustomevent
Sent with errorsremaily_form_invalid, with fieldsgoalcustomevent
Left after startingremaily_form_abandon, with the last field touchedgoalcustomevent

Every event carries form_id and form_title. In Tag Manager the details are under remaily in the dataLayer.

Where people give up: in Google Analytics, open Explore and break remaily_form_abandon down by its field parameter (register field as a custom dimension first, in Admin → Custom definitions). The field at the top is the one to make easier.

From the server

Ad blockers stop analytics tags for a good share of visitors, and with them your conversions. With Count it in Google Analytics from the server on, the sent message (and its purchase) goes to GA4’s Measurement Protocol from your site, joined to the visitor’s own visit through their _ga cookie, and the browser leaves that event out so nothing counts twice. Metrica and the Pixel are counted in the browser only.

The services set their own cookies. Where the law asks for consent first, leave Add these tags to the site off and let your consent plugin load the tags, or return false from remaily_analytics_load_tags until the visitor agrees. Without the tags, the browser sends nothing; the server’s count to GA4 still goes, without a cookie of its own.

For developers

HookWhat it does
remaily_analytics_worthA sent message’s worth: ( $worth, $submission ), with value, currency, paid and transaction.
remaily_analytics_load_tagsWhether to add the services’ tags to this page: ( $load ).

The conversion only counts once a message is sent: a form in Test mode, or a mail that failed, counts nothing.

Was this article helpful?