feat: Integrate DataForSEO for indexed pages tracking
- Updated CRON documentation to include DataForSEO metrics synchronization. - Enhanced SettingsController to manage DataForSEO API credentials and settings. - Modified SiteController to handle DataForSEO domain input. - Updated Site model to accommodate DataForSEO data handling. - Added methods in SiteSeoMetric model for DataForSEO data retrieval and validation. - Implemented SiteSeoSyncService to synchronize SEO metrics from both SEMSTORM and DataForSEO. - Enhanced dashboard templates to display indexed pages data. - Updated settings and site creation/edit templates to include DataForSEO fields. - Created migration for adding DataForSEO related columns in the database. - Developed DataForSeoService to fetch indexed pages count from DataForSEO API.
This commit is contained in:
@@ -39,7 +39,12 @@ class Site extends Model
|
||||
ON m.site_id = s.id
|
||||
AND m.metric_month = :metric_month
|
||||
WHERE s.is_active = 1
|
||||
AND m.id IS NULL
|
||||
AND (
|
||||
m.id IS NULL
|
||||
OR m.source_payload IS NULL
|
||||
OR m.source_payload NOT LIKE '%\"dataforseo\"%'
|
||||
OR m.source_payload LIKE '%\"dataforseo\":null%'
|
||||
)
|
||||
ORDER BY s.id ASC
|
||||
LIMIT 1";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user