diff --git a/frontend/admin-panel/src/pages/SeoSettingsPage.tsx b/frontend/admin-panel/src/pages/SeoSettingsPage.tsx index cf98671..6bdf510 100644 --- a/frontend/admin-panel/src/pages/SeoSettingsPage.tsx +++ b/frontend/admin-panel/src/pages/SeoSettingsPage.tsx @@ -359,10 +359,10 @@ export default function SeoSettingsPage() { value={seo.googleSiteVerification || ''} onChange={(e) => { let val = e.target.value.trim(); - // Auto-extract content if user pasted full - const match = val.match(/content=["']([^"']+)["']/); + const match = val.match(/content=["']([^"']+)["']/i); if (match && match[1]) { val = match[1]; + toast.success('کد تأییدیه گوگل از متاتگ با موفقیت استخراج شد'); } setSeo({ ...seo, googleSiteVerification: val }); }} @@ -377,7 +377,7 @@ export default function SeoSettingsPage() { {seo.googleSiteVerification && (
<meta name="google-site-verification" content="{seo.googleSiteVerification}" />
@@ -412,7 +412,7 @@ export default function SeoSettingsPage() {
+ Head: https://www.googletagmanager.com/gtm.js?id={seo.googleTagManagerId}
+
+
+ Body: <noscript><iframe src="...id={seo.googleTagManagerId}"></noscript>
+
+
+ https://www.clarity.ms/tag/{seo.clarityProjectId}
+
+