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

autocapture cssSelectorAllowlist does not exist #613

Open
buckeye44 opened this issue Jan 18, 2025 · 1 comment
Open

autocapture cssSelectorAllowlist does not exist #613

buckeye44 opened this issue Jan 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@buckeye44
Copy link

Hi, installed analystics-browser 2.11.11 into an Angular 16 project via npm. Trying to use the autocapture cssSelectorAllowlist array and receiving error 'cssSelectorAllowlist' does not exist in type 'AutocaptureOptions'.

@buckeye44 buckeye44 added the bug Something isn't working label Jan 18, 2025
@Mercy811
Copy link
Contributor

Hi @buckeye44, it's under elementInteractions. https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2#advanced-configuration-for-element-interactions

amplitude.init('API_KEY', '[email protected]', {
  autocapture: {
    elementInteractions: {
      cssSelectorAllowlist: []
    }
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants