Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find variable: clearClarity #706

Open
Grohden opened this issue Nov 6, 2024 · 2 comments
Open

Can't find variable: clearClarity #706

Grohden opened this issue Nov 6, 2024 · 2 comments
Assignees
Labels
apps Issues specific to Clarity Apps SDK

Comments

@Grohden
Copy link

Grohden commented Nov 6, 2024

If this is an issue you're seeing in https://clarity.microsoft.com please reach out to [email protected] with the details of your bug along with your project ID or a link to your project page.


For all other issues continue below:

Please also add all relevant labels from the list of existing ones.

Describe the bug

Don't know under which conditions, but clarity seems to be breaking our web app

We've been receiving sentry reports of Can't find variable: clearClarity since we've adopted clarity for our React Native app

By accident (default value) clarity was tracking webviews (we've disabled it last week). But I think we'll still see problems with it, so I'm reporting the problem here

Repro Steps

Don't really know how to reproduce, might be browser specific, my best guess is: make a react native app, add a webview and open your site.

One other thing we know as well is that clarity seems to be infecting our site through bing ads, since we've never added clarity directly but there's a global of it in our console, so react native clarity must be injecting something into the webview, and it might be conflicting with the already present clarity global (which is not configured by us)

Screenshots

Image
Image
Image

Project info
If this is an issue happening in a specific project,

  • Type: website/iOS/Android project: react native app
  • Website info: For website projects, include a link

Browser info:

  • OS: see screenshots
  • Browser: see screenshots
@ibradwan ibradwan added the apps Issues specific to Clarity Apps SDK label Nov 6, 2024
@shtbik
Copy link

shtbik commented Nov 27, 2024

Our project has been experiencing the same issue since 24 October (114 instances). I can confirm it's related to iOS and WebView.
Image
Image

@amralaa-MSFT
Copy link
Contributor

@Grohden To help us investigate the problem efficiently, please provide the following information:

  1. Project ID: Please send Clarity project ID privately to [email protected] and include the title of this issue report in the email subject line.
  2. Clarity SDK Version: Please specify the version of the react-native-clarity SDK you are using in your React Native app.
  3. WebView URL sample: Please provide a sample URL of a WebView that you suspect is causing the issue.
  4. Specific Actions Triggering the Error (if known): Are there any specific actions in your app that seem to trigger this error?
  5. Crash Logs: If you have any crash logs associated with the error, please provide them.
  6. Verbose Clarity Logs: Enable verbose logging in your Clarity initialization code using Clarity.initialize('<project-id>', {..., logLevel: Clarity.LogLevel.Verbose }). Attach the full Clarity logs from the device logging stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps Issues specific to Clarity Apps SDK
Projects
None yet
Development

No branches or pull requests

5 participants