Amplitude-JavaScript
Amplitude-JavaScript copied to clipboard
autocapture cssSelectorAllowlist does not exist
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'.
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: []
}
}
});