Using Clarity custom events with UET tag (no window.clarity object available).

Greg Robson 5 Reputation points
2024-10-16T07:50:35.7333333+00:00

Hi,

We currently have a UET tag running on our website via our Microsoft Ads account - the Microsoft Clarity integration is enabled for it.

How do we (can we?) record Clarity events through the UET tag with this integration?

There's no window.clarity method we can call with this implementation. I've read the docs below that doesn't seem to offer anything.

https://learn.microsoft.com/en-us/clarity/setup-and-installation/clarity-api#add-custom-events

Many thanks for your assistance.

Microsoft Advertising
Microsoft Advertising
A platform for Microsoft's advertising efforts designed to manage all advertising and reporting for partner advertisers. Previously known as Bing Ads and adCenter.
85 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kiraz from Clarity 0 Reputation points Microsoft Employee
    2024-12-04T20:07:37.73+00:00

    The documentation you shared is the correct way to send Clarity any events you have, by calling window.clarity("event", "eventName")When we go to the website that was shared with us via email, we can confirm that you have the window.clarity object set, screenshot below. I realize we already said this in the response email. Could you share the context in which you don't have access to window.clarity? Is it perhaps on a specific page where you're not seeing it? Any page that has Clarity will have window.clarity available. User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.