Getting started

Which events ROASaurus tracks

Updated

The storefront script records page views, product views, adds to cart, started checkouts and form sign-ups. Purchases and refunds come from your shop platform's order data and are sent from the server.

Steps

  1. Turn on debug logging

    Open your store with ?roasaurus=debug at the end of the address and open the browser console.

    You should see: Lines starting with [roasaurus] for each event as you browse, add to cart and start a checkout.

  2. Check what arrived

    In ROASaurus, open Data quality › Deliveries for the server events per platform, or Website › Realtime for the events of the last minutes.

The events

EventWhenSource
PageViewEvery page loadBrowser script, server copy
ViewContentA product pageBrowser script, server copy
AddToCartA product added to the cart, with the added quantityBrowser script, server copy
InitiateCheckoutCheckout started (on Shopify from the checkout pixel)Browser and checkout pixel
LeadA form sent with an email address or phone number, such as a newsletter or contact form (search and password forms never; add data-roasaurus-ignore to a form to skip it)Browser script, server copy
PurchaseA paid order (on cash on delivery and external checkouts: when the order is created)Server, from the order
RefundA refund in your shopServer, to the destinations that take refunds

Each platform receives these under its own names: on Google Analytics 4 a purchase is purchase, on TikTok a purchase is CompletePayment. The ROASaurus script also samples Core Web Vitals on a tenth of page views for the Storefront speed report, and those samples go to no ad platform.

Your own events

On any page with the script you can send another event with tlq('track', 'Lead', {value: 50, currency: 'EUR'}), or link a sign-up to the visit with tlq('identify', {email}), with consent.

Common problems

Add to cart is missing for some orders
Dynamic checkout buttons ("Buy it now") skip the cart. Turn them off in your theme so Add to cart is always tracked.
No Purchase in the browser on WooCommerce
Purchases on other platforms come from the order webhook or API, not from the browser. Check the store connection and Data quality › Deliveries.

Next step

Install the tracking script

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.