From cc2e2c971557855e0503c733a5379e62c90be0cb Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Tue, 15 Aug 2023 10:12:03 +0100 Subject: [PATCH] Filter out events from GPTBot --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 24b05a806..4171570c0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -467,7 +467,7 @@ export const _utf8Encode = function (string: string): string { // sending false capturing data export const _isBlockedUA = function (ua: string): boolean { if ( - /(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test( + /(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender|gptbot)/i.test( ua ) ) {