Other tools

Microsoft Clarity events

Updated

When Microsoft Clarity is on your site, the ROASaurus script sends each storefront event except page views to it as a Clarity custom event under its GA4 name (view_item, add_to_cart, begin_checkout, page_not_found and more), and on Shopify tags the session with cart_id. ROASaurus does not install Clarity.

Before you start

  • Clarity installed on your site with its own snippet or app.
  • The ROASaurus script on the same pages.

Steps

  1. Install Clarity

    Add Clarity with its own snippet, the Clarity app for your platform or Tag Manager. Nothing needs switching on in ROASaurus.

  2. Browse your store

    View a product and add it to the cart.

    You should see: After Clarity processes the session, the custom events view_item and add_to_cart on the recording.

  3. Filter recordings

    In Clarity, filter recordings by custom event, for example sessions with add_to_cart but no begin_checkout, or by the custom tag cart_id.

The events

Product views (view_item), collection and search result lists (view_item_list), searches (search), cart adds and removals (add_to_cart, remove_from_cart), the cart page (view_cart), checkout starts (begin_checkout), wishlist adds (add_to_wishlist), form leads (generate_lead) and pages not found (page_not_found). A purchase event is sent only on sites whose thank-you page runs the ROASaurus script; Shopify's checkout does not.

What goes to Clarity

Event names and, on Shopify, the cart's token as cart_id. No order ids, values or contact details. Events go out after the visitor's consent allows the ROASaurus script to run them, like the browser pixels.

Campaign tags and insights

Connect Clarity under Connections › Channels as well, and the script also tags each session with its ad source and utm_campaign, and ROASaurus reads Clarity's daily insights.

Common problems

No custom events in Clarity
Clarity's tag must be loaded on the page when the event happens, and Clarity shows events only after it has processed the session.

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.