Skip to main content
RentwareRentware
Trial
Help topics
On this page

Conversion tracking: what to set up where

Server-side tracking via Rentware, browser events from the widget, and your own tags: what each does and where you set it up.

Bookings made in the Rentware widgets can be measured in three ways. They work independently of each other, and most questions (“my bookings don’t show up in GA4”) come down to which of the three is meant.

The three kinds of tracking

Server-side via Rentware Browser events from the widget Your own tags
What Rentware’s server sends the events to GA4, Google Ads and Meta The widget adds its events to tags that are already on your site: dataLayer/Google Tag Manager, gtag, Meta pixel, Umami, OpenAI Ads Everything else on your site: GTM tags, WordPress plugins, cookie banner integrations
Where you set it up In Rentware: Settings → Conversion tracking On your website, with the window.RTR_HOOKS snippet In your tag manager or website
Ad blockers Can’t block it Can block it Can block it
Consent Rentware reads the Google Consent Mode v2 signals of your cookie banner and only sends what the visitor allowed Your job: load your tags only after consent Your job

You can use them side by side. Just avoid sending the same events to the same platform twice (see Google Ads, Meta and GA4: frequent questions).

Server-side tracking via Rentware

Set up each platform in Rentware under Settings → Conversion tracking:

  • Google Analytics 4: measurement ID (G-…) and a Measurement Protocol API secret.
  • Google Ads: connect your Google account and choose a conversion action of the type “Import from clicks”.
  • Meta (Facebook): pixel (dataset) ID and a Conversions API access token.

Which events are sent:

  • GA4: add_to_cart, remove_from_cart, add_customer_info, add_payment_info (the visitor starts paying), purchase and cart_expired.
  • Google Ads: purchase only. If the order is cancelled, the conversion is retracted.
  • Meta: AddToCart, RemoveFromCart, AddPaymentInfo, Purchase and CartExpired. No PageView, ViewContent, InitiateCheckout, Lead or Contact: if Meta shows those as server events, they come from something else on your site.

All values are net, with discounts applied and deposits left out.

When the purchase is sent: when the order first reaches the status Reserved or Booked, once per order and platform. Payment itself is not a separate trigger.

Your cookie banner must send Google Consent Mode v2 on every page with a Rentware widget, including the checkout. Without consent signals Rentware sends no advertising or analytics events. Every send, failure and skipped event is listed under Settings → Conversion tracking → Logs: see Reading the tracking log.

Browser events from the widget

The widget sends nothing to tags in the browser unless your page defines window.RTR_HOOKS. With it, the widget pushes e-commerce events (add_to_cart, begin_checkout, add_shipping_info, purchase) into the dataLayer for Google Tag Manager, or calls gtag, the Meta pixel, Umami or the OpenAI pixel directly. The widget never loads these tags itself; they have to be on the page already.

<script>
  window.RTR_HOOKS = Object.assign(window.RTR_HOOKS || {}, {
    enableDataLayer: true,
  })
</script>

All options, the exact event data and a GTM setup are in the developer reference for tracking. On WordPress, see Tracking with WordPress.

Your own tags

Tags you add yourself (for example a GTM trigger that watches for the text of the confirmation screen, or a WordPress tracking plugin) are not part of Rentware, and we can’t see or fix them. Text-matching triggers break easily; use the widget’s dataLayer events or the onCheckoutSuccess callback instead.

Which setup fits?

  • You want reliable numbers in GA4, Google Ads and Meta: use server-side tracking via Rentware and a cookie banner with Consent Mode v2.
  • You already run Google Tag Manager or other tags: add RTR_HOOKS with enableDataLayer: true and build your tags on the widget’s events.
  • Both: fine, but decide per platform which source sends which events, so nothing is counted twice.