Can't find variable: clearClarity
Opened this issue · 2 comments
If this is an issue you're seeing in https://clarity.microsoft.com please reach out to clarityms@microsoft.com 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
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
@Grohden To help us investigate the problem efficiently, please provide the following information:
- Project ID: Please send Clarity project ID privately to clarity-apps-support@microsoft.com and include the title of this issue report in the email subject line.
- Clarity SDK Version: Please specify the version of the
react-native-clarity
SDK you are using in your React Native app. - WebView URL sample: Please provide a sample URL of a WebView that you suspect is causing the issue.
- Specific Actions Triggering the Error (if known): Are there any specific actions in your app that seem to trigger this error?
- Crash Logs: If you have any crash logs associated with the error, please provide them.
- 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.