Skip to main content

Analytics and Conversion Tracking

FreeSince 7.8Included in the free Events Manager plugin.

Conversion tracking reports your bookings to the analytics and advertising tools on your site, as the same ecommerce events an online shop sends. Each booking arrives as a purchase with its value, its tickets and its booking number, so you can see which campaigns, ads and pages lead to bookings and what they earn, not only how many people visited.

Events Manager reports to a list of destinations: Google Analytics 4 (GA4), Google Tag Manager, the Meta Pixel, Umami, Plausible, Matomo and Fathom. Most of them are on from the start and use the tags your site already loads, such as the Google tag from Site Kit or the Pixel from a Pixel plugin, so bookings are reported without any IDs. Events Manager can also add a tool's tag to your site for you, and the Conversion Tracking add-on sends bookings from your server as well.

Before you start

You need an account with the tool you report to, such as a GA4 property or a Meta Pixel. If your site doesn't load that tool's tag yet, have its ID ready so Events Manager can add the tag (see Add a tag to your site).

Turn on conversion tracking​

  1. Go to Events then Settings then Bookings then Conversion Tracking.

  2. Check that Track bookings as conversions? is set to Yes. It's Yes on sites that installed Events Manager 7.8 or later, and No on sites that had an earlier version, so updating doesn't change what your site sends until you turn it on. The destinations appear below it, grouped as Tag managers, Analytics and Advertising.

    Each destination has its own switch, and its fields show while it's on.

  3. Tick Send booking events to for each tool you want bookings reported to, and untick the ones you don't. Google Analytics 4, the Meta Pixel, Umami, Plausible, Matomo and Fathom are ticked from the start. A destination only receives events on pages that load its tag, so one your site doesn't use sends nothing.

  4. If a tool's tag isn't on your site yet, fill in its fields and set its Add its tag to the site? to Yes.

  5. Choose how to Report free bookings as.

  6. Click Save Changes.

Nothing is printed on your pages and no script is loaded while Track bookings as conversions? is set to No. Once you save the settings, each destination keeps the choice you saved.

Settings​

SettingWhat it does
Track bookings as conversions?Turns reporting on. Every booking event is pushed to the page's dataLayer for Google Tag Manager, and sent to each destination turned on below it. Default Yes for new installs, No for sites updated from an earlier version.
Report free bookings asA lead (the default) sends GA4's generate_lead and Meta's Lead. A purchase of zero sends a purchase with a value of 0.
Send booking events toOne per destination. Turns that destination on or off. Its fields and Add its tag to the site? show while it's on.
Add its tag to the site?One per destination. Adds the destination's tag to every page for the details in its fields. Default No.

Destinations​

DestinationGroupOn from the startFields for adding its tag
Google Tag ManagerTag managersNoContainer ID, such as GTM-ABC1234
Google Analytics 4AnalyticsYesMeasurement ID, such as G-ABC123XYZ
UmamiAnalyticsYesWebsite ID (the data-website-id in Umami's tracking code) and Script URL (leave it empty for Umami Cloud)
PlausibleAnalyticsYesScript URL, the script address in your site's installation instructions in Plausible
MatomoAnalyticsYesMatomo URL, the address of your Matomo, and Site ID, the number Matomo gives your website
FathomAnalyticsYesSite ID (the data-site in Fathom's embed code)
Meta PixelAdvertisingYesPixel ID, which is a number

The fields are only needed to add a tag. A destination whose tag your site already loads works with its fields left empty. A value that isn't in the format shown is marked This is not in the format shown, so it is not used. under its field.

Google Tag Manager is off from the start because the dataLayer gets every event whether it's on or not (see Google Tag Manager). Turn it on when you want Events Manager to add your container.

Add a tag to your site​

When a destination is on, its fields are filled in and Add its tag to the site? is Yes, Events Manager adds that tool's tag to every page: the Google tag for GA4, your Tag Manager container, the Meta Pixel, or the Umami, Plausible, Matomo or Fathom script. The tag also counts page views, as it normally does.

Events Manager doesn't add a tag the page already has. Leave Add its tag to the site? set to No if Site Kit, your theme or another plugin adds the tag, since two copies of a tag count every page view twice.

If you use a consent plugin that supports the WP Consent API, the tags Events Manager adds wait for consent: the Meta Pixel for consent to marketing, and the others for consent to statistics. Booking events from the same page are kept until then and sent once the visitor consents. Tags your site adds in other ways follow their own consent settings.

What gets reported​

Events Manager reports these steps of a booking, named as GA4 names them. The Meta Pixel receives the matching standard event.

WhenGA4 and Google Tag ManagerMeta PixelValue
A page shows an event's booking form or booking buttonview_itemViewContentThe event's lowest ticket price
The visitor chooses their first places, or opens the checkoutbegin_checkoutInitiateCheckoutThe total of the places chosen so far
A booking with something to pay is sent with a payment methodadd_payment_infoAddPaymentInfoThe booking total, with the payment method
A paid booking is placedpurchasePurchaseThe booking total, including tax
A free booking is placedgenerate_leadLead0
An event is added to the cart in Multiple Bookings Mode Proadd_to_cartAddToCartThe places added

Each event lists tickets as items, one per ticket type. view_item and begin_checkout list the event's tickets on sale, and the later steps list the tickets booked.

Item fieldWhat it holds
item_idThe ticket's ID
item_nameThe event's name
item_variantThe ticket's name
item_categoryThe event's first category, if it has one
priceThe price of one place, including tax
quantityThe number of places

A purchase or lead also carries the booking's number as its transaction_id, its currency and, for a purchase, the tax.

Which bookings count​

  • A booking paid at the venue, by bank transfer or by any other offline payment method counts as a purchase when it's placed, since it's a sale you expect to receive.
  • A booking that needs your approval counts when it's placed, before you approve it.
  • A booking paid by deposit counts once, for its full total, when the first payment arrives.
  • A booking waiting for an online payment, such as one paid on Stripe Checkout or PayPal's own page, counts once its payment arrives. See Bookings paid on another site.
  • Rejected and cancelled bookings, waitlist entries, and bookings whose payment is declined report no purchase.

Each booking is reported once. A page reload, the visitor's next visit or a payment that arrives later doesn't report it again.

Bookings paid on another site​

When a visitor pays on the payment provider's own page, the booking isn't paid yet when they leave your site. Events Manager remembers the booking in their browser for up to a day, and reports the purchase on the first page of your site they open after the payment arrives, usually the page the provider sends them back to.

If the visitor never comes back to your site in that browser, the browser can't report the purchase. The Conversion Tracking add-on reports it from your server anyway (see Send events from your server).

Google Tag Manager​

Every event is pushed to the page's dataLayer in GA4's ecommerce format, so a Google Tag Manager container can send it to GA4 or any other tag. This happens whether or not the Google Tag Manager destination is on: turning it on only adds your container to the site. Each push is preceded by an { ecommerce: null } push, as Google recommends, and purchases and leads include an event_id, the same ID Events Manager gives the Meta Pixel with the event.

A purchase in the dataLayer
{
event: "purchase",
event_id: "em-30-purchase",
ecommerce: {
transaction_id: "30",
value: 170,
currency: "USD",
tax: 0,
items: [
{
item_id: "12",
item_name: "Harbor Lights Jazz Night",
item_variant: "General Admission",
price: 85,
quantity: 2
}
]
}
}

To send these events to GA4 from your container:

  1. In Google Tag Manager, create a trigger of the type Custom Event, with the event name view_item|begin_checkout|add_payment_info|purchase|generate_lead|add_to_cart and Use regex matching ticked.

  2. Create a Google Analytics: GA4 Event tag with your measurement ID, set Event Name to the built-in {{Event}} variable, and under More Settings > Ecommerce, tick Send Ecommerce data with the data source Data Layer.

  3. Attach the trigger to the tag, then preview and publish the container.

If your container sends these events to GA4, untick Send booking events to Google Analytics 4 in Events Manager, or GA4 receives each event twice when the page also has the Google tag.

Umami, Plausible, Matomo and Fathom​

These are on from the start. When a page loads Umami, Plausible, Matomo or Fathom, Events Manager sends it each of the events above under the same names, such as purchase. To have Events Manager load one of them, fill in its fields and set its Add its tag to the site? to Yes.

ToolWhat it receives
UmamiA custom event for each step, with value, currency, transaction_id, payment_type, places and event (the event's name) as properties. A purchase also sets revenue, so it appears in Umami's revenue report.
PlausibleA custom event for each step with the same properties. A purchase is sent with its revenue. Add a custom event goal in Plausible for each event name you want to report on, and give the purchase goal your currency to see revenue.
MatomoA purchase becomes an ecommerce order with its tickets as products, which needs ecommerce turned on for the website in Matomo. The other steps are events in the Bookings category, named after the step, with the event's name and value.
FathomAn event for each step. A purchase carries its value.

These tools don't use cookies to identify visitors in the way GA4 and the Pixel do, so check with each one's own documentation whether its events need consent where you are.

Send events from your server​

Conversion Tracking Ad blockers, browser privacy settings and visitors who don't return from a payment page all stop the browser from reporting some bookings. With the Conversion Tracking add-on, the browser sends its booking events to your own site instead of to each tool, and your site sends them on from its server. Blockers don't stop a page talking to its own site, and the events carry the visitor's cookies, IP address and browser, so they join the visitor's own visit. Bookings paid on another site are sent when the payment arrives. The add-on is included in Events Manager Pro and Pro Plus, and also sold on its own.

With the add-on active, each destination that can take events from a server gets more rows under it in the Conversion Tracking settings, after its own fields. Fill them in and save. A destination left without them keeps getting everything from the browser.

DestinationWhat to fill inWhat goes through your site
Google Analytics 4Measurement Protocol API secret, with the Measurement ID above it.Checkout steps, purchases and leads. Refunds are sent from the server too.
Meta PixelConversions API access token, with the Pixel ID above it. Test event code is optional.Checkout steps. Purchases and leads go from both the Pixel and the server with one event ID, so Meta counts each once.
UmamiNothing, the Website ID above it is enough.Checkout steps, purchases and leads.
PlausibleSite domain is optional and defaults to your site's domain.Checkout steps, purchases and leads. Revenue and properties show on Plausible's Business plan.
MatomoAuth token, with the Matomo URL and Site ID above it.Checkout steps, purchases (as ecommerce orders) and leads. Matomo has one currency per website, so set it to your bookings' currency.

Viewing an event is still sent from the browser, with the page view. Fathom doesn't accept events from a server, so it only receives events from the browser.

Where to find each key​

  • GA4 API secret: in Google Analytics, go to Admin, Data streams, choose your web stream, then Measurement Protocol API secrets, and create one.
  • Meta access token: in Meta's Events Manager, open your Pixel's Settings and generate an access token under Conversions API. To watch server events arrive, copy the code from the Test Events tab into Test event code, and remove it when you're done.
  • Matomo auth token: in Matomo, go to Administration, Personal, Security, then Auth tokens, and create one for a user with write access to the website. Create a token for Events Manager alone rather than reusing one. It lets each order carry the visitor's address and the time of the booking, so Matomo joins the order to their visit and doesn't discard it as traffic from a server.

When bookings are sent​

  • Checkout steps go through your site as they happen.
  • A booking that is confirmed or paid when it's made is sent straight away, by the browser through your site and by your site itself. Whichever gets there first sends it, so each tool gets it once.
  • A booking waiting for an online payment is sent when its first payment arrives, valued at the booking total, deposits included.
  • With Events Manager Pro, each refund recorded on a reported booking is sent to GA4.
  • Your site answers the visitor or payment provider first and sends afterwards, so nobody waits. Where the host can't answer first, WP-Cron sends a booking's events at once instead.
  • If a destination can't be reached, WP-Cron tries again after 5, 15, 60 and 240 minutes. An event the destination refuses, such as one sent with a wrong key, isn't retried. With Events Manager Pro's Enable Logging? on, both are written to its conversion-tracking log.
  • Umami, Plausible and Matomo would count an event twice if it arrived twice, so a request to them that timed out isn't sent again, in case it arrived. Only a request that never reached them is.

Retries need WP-Cron. If your host turns it off, make sure a server cron job runs wp-cron.php.

With a consent plugin that supports the WP Consent API, nothing is kept for or sent to a destination unless the visitor consented to its category: statistics for GA4, Umami, Plausible and Matomo, and marketing for Meta. The booker's email address and phone number go to Meta only with consent to marketing, and only hashed. Without such a plugin, consent is assumed, except for the email and phone, which are never sent.

To match a booking to the visit it came from, the add-on keeps the visitor's IP address, browser user agent and the page they booked on with the booking. These are deleted as soon as every destination that needs them has the booking, or when the booking is cancelled or rejected before it's paid. Checkout steps are sent on at once and not kept, unless a destination can't be reached and WP-Cron holds one for a retry.

To see server events arrive, use GA4's Reports > Realtime, Meta's Test Events tab with a Test event code set, and the realtime or events view in Umami, Plausible and Matomo.

Check that bookings arrive​

Make a test booking on your site, then look for it:

  • GA4: open DebugView (under Admin) while browsing with Google's Tag Assistant connected, or Reports > Realtime. Purchases appear in the Monetization reports after GA4 processes them, which can take a day.
  • Meta: open your Pixel in Meta's Events Manager and use the Test Events tab.
  • Google Tag Manager: use Preview to watch each event reach the dataLayer and your tags.
  • Umami, Plausible, Matomo and Fathom: the events show in each tool's realtime or events view.

Use a payment method in test mode, or pay at the venue, so no real payment is taken.

Troubleshooting​

Every booking appears twice in GA4

The Google tag is on the page twice, or two routes send bookings to GA4. Set Add its tag to the site? under Google Analytics 4 to No if Site Kit, your theme or another plugin adds the Google tag. If a Google Tag Manager container sends these events to GA4, untick Send booking events to Google Analytics 4.

Nothing reaches GA4 or the Pixel

Check that Track bookings as conversions? is Yes and that the destination is ticked. Then check that the page has the Google tag or the Pixel: either your site adds it, or Add its tag to the site? is Yes with an ID that isn't marked as not in the format shown. With a consent plugin, accept statistics and marketing cookies before testing, and switch off any ad blocker in the browser you test with, since both stop the tags from sending.

Bookings paid through PayPal or Stripe Checkout are missing

The browser reports these bookings when the visitor comes back to your site after paying. Visitors who close the window on the provider's page, or come back in another browser, are only counted when the Conversion Tracking add-on sends bookings from your server.

For developers​

HookTypeUse
em_conversion_tracking_is_enabledFilterTurns tracking on or off, for example per page.
em_conversion_tracking_destinationsFilter( $destinations ). The destinations, as class names by ID. Each class extends EM\Conversion_Tracking\Destination and has the same $id as its key.
em_conversion_tracking_destination_groupsFilter( $groups ). The groups the settings list destinations under, by the group a destination names: tags, analytics and ads.
em_conversion_tracking_destination_fieldsAction( $id, $class, $row_class ). Prints more settings rows under a destination. Give each row $row_class, so it shows only while the destination is on.
em_conversion_tracking_sanitize_destinationFilter( $settings, $raw, $class ). A destination's settings as they're saved, so the fields you print under it are kept.
em_options_page_conversion_tracking_bottomActionPrints more settings rows at the end of the Conversion Tracking box.
em_conversion_tracking_get_script_varsFilter( $vars ). What the tracking script gets, including each enabled destination's settings under destinations. A destination's relay holds the url and the events the browser sends through your site instead of the destination's tag, set by the Conversion Tracking add-on.
em_conversion_tracking_get_conversionFilter( $conversion, $EM_Booking ). Which event a booking reports: purchase, lead, pending or an empty string for none.
em_conversion_tracking_get_eventFilter( $event, $EM_Booking, $conversion ). The event sent for a booking, with its name, ID and parameters.
em_conversion_tracking_get_booking_itemsFilter( $items, $EM_Booking ). The items listed for a booking.
em_conversion_tracking_get_event_dataFilter( $data, $EM_Event ). The value and items for viewing and starting to book an event.
em_conversion_tracking_bookingAction( $EM_Booking, $conversion ). Runs when a booking is placed with tracking on.
em_conversion_tracking_server_adaptersFilterConversion Tracking ( $adapters ). The server adapters, as class names by destination ID. Each class extends EM\Conversion_Tracking\Server\Adapter, has the same $id as a destination, and returns the request for an event from get_request().
em_conversion_tracking_server_get_contextFilterConversion Tracking ( $context, $adapters ). What a booking keeps of the visitor's browser and consent when it's made.
em_conversion_tracking_server_get_requestFilterConversion Tracking ( $request, $EM_Booking, $event, $context, $destination ). The request that sends an event, or null to send nothing. $EM_Booking is null for a checkout step.
em_conversion_tracking_server_relay_eventsFilterConversion Tracking ( $events, $destination ). The events the browser sends through your site for a destination, by GA4 name.
em_conversion_tracking_server_relay_limitFilterConversion Tracking ( $limit ). How many events one IP address can send through your site in ten minutes, 60 by default.
em_conversion_tracking_server_send_nowFilterConversion Tracking ( $now ). Whether a booking's events are sent at the end of the request that places or pays for it, or by WP-Cron.
em_conversion_tracking_server_logActionConversion Tracking ( $message ). Runs when an event couldn't be sent.

In the browser, em_conversion_tracking_send( events ) reports your own events through the same destinations, and an em_conversion_tracking_sent event fires on the document for each event sent, with the event in detail.event. A destination's browser code goes in em_conversion_tracking_destinations under its ID, with a ready( settings ) function that says whether the page has its tag, send( name, params, event, settings ) to send one event, and load( tag, settings ) to add its tag.