diff --git a/crm/Redirects/Views/redirects/index.php b/crm/Redirects/Views/redirects/index.php index bbe37e2..17f6fdb 100644 --- a/crm/Redirects/Views/redirects/index.php +++ b/crm/Redirects/Views/redirects/index.php @@ -150,4 +150,217 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/crm/check_analytics_slug.php b/crm/check_analytics_slug.php new file mode 100644 index 0000000..8aa3bcc --- /dev/null +++ b/crm/check_analytics_slug.php @@ -0,0 +1,11 @@ +fetchAll('SELECT id, cuid, analytics_slug, name FROM redirects WHERE status >= 0 LIMIT 5'); + +echo "πŸ” Verificando analytics_slug na base de dados...\n\n"; + +foreach ($redirects as $r) { + echo "ID: {$r['id']}, CUID: {$r['cuid']}, Analytics Slug: " . ($r['analytics_slug'] ?? 'NULL') . ", Name: {$r['name']}\n"; +} diff --git a/crm/test_api.php b/crm/test_analytics_slug.php similarity index 90% rename from crm/test_api.php rename to crm/test_analytics_slug.php index cc6ccfd..8eda102 100644 --- a/crm/test_api.php +++ b/crm/test_analytics_slug.php @@ -1,5 +1,4 @@ getAll(); - echo "πŸ” Testando API de redirects...\n\n"; + echo "πŸ” Testando analytics_slug...\n\n"; echo "πŸ“Š Total de redirects: " . count($redirects) . "\n\n"; if (!empty($redirects)) { @@ -24,6 +23,7 @@ try { foreach ($redirects as $redirect) { if (empty($redirect['analytics_slug'])) { $withoutSlug++; + echo "❌ Redirect ID {$redirect['id']} sem analytics_slug\n"; } }