From f41e2c10749e8f79c308316c640ddf5c96629771 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Wed, 21 Jan 2026 08:17:02 +0100 Subject: [PATCH] Reverted all changes back to version 9c9ecf5050319fa1c6a76f62c28232766509c2b8 --- src/app/actions.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/app/actions.ts b/src/app/actions.ts index 890b89b..9aa4be1 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -323,12 +323,9 @@ export async function extractMetaData(url: string, keyword?: string) { htmlContent.includes("connect.facebook.net") || htmlContent.includes("fbq('init'") ) { - let fbIdMatch = htmlContent.match( + const fbIdMatch = htmlContent.match( /fbq\(\s*['"]init['"]\s*,\s*['"](\d+)['"]\s*\)/ ); - if (!fbIdMatch) { - fbIdMatch = htmlContent.match(/facebook\.com\/tr\?.*?id=(\d+)/); - } addTracker("Facebook Pixel", fbIdMatch ? fbIdMatch[1] : null); } @@ -343,12 +340,7 @@ export async function extractMetaData(url: string, keyword?: string) { // HubSpot if (htmlContent.includes("js.hs-scripts.com")) { - let hsIdMatch = htmlContent.match(/js\.hs-scripts\.com\/(\d+)\.js/); - if (!hsIdMatch) { - hsIdMatch = htmlContent.match( - /_hsq\.push\(\s*\[\s*['"]setAccountId['"]\s*,\s*['"](\d+)['"]\s*\]\s*\)/ - ); - } + const hsIdMatch = htmlContent.match(/js\.hs-scripts\.com\/(\d+)\.js/); addTracker("HubSpot", hsIdMatch ? hsIdMatch[1] : null); }