refactor: move Analytics from ThemeSettings to AdsensePlacement
- Remove Analytics and AdSense tabs from theme-settings component - Add Analytics group to adsense-placement component - Add roi_enqueue_analytics_script() for GA4/UA support - Clean up ThemeSettings to only handle custom code (CSS/JS) - Update FormBuilders and FieldMappers accordingly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,27 +1,20 @@
|
||||
{
|
||||
"component_name": "adsense-placement",
|
||||
"version": "1.0.0",
|
||||
"description": "Control manual de ubicacion de anuncios AdSense",
|
||||
"version": "1.1.0",
|
||||
"description": "Control de AdSense y Google Analytics",
|
||||
"groups": {
|
||||
"visibility": {
|
||||
"label": "Visibilidad",
|
||||
"label": "Visibilidad AdSense",
|
||||
"priority": 10,
|
||||
"fields": {
|
||||
"is_enabled": {
|
||||
"type": "boolean",
|
||||
"label": "Activar Placement Manual",
|
||||
"label": "Activar AdSense",
|
||||
"default": false,
|
||||
"editable": true,
|
||||
"required": true,
|
||||
"description": "Activa el control manual de ubicacion de anuncios"
|
||||
},
|
||||
"disable_auto_ads": {
|
||||
"type": "boolean",
|
||||
"label": "Deshabilitar Auto Ads",
|
||||
"default": true,
|
||||
"editable": true,
|
||||
"description": "Desactiva Auto Ads de Google cuando el placement manual esta activo"
|
||||
},
|
||||
"show_on_desktop": {
|
||||
"type": "boolean",
|
||||
"label": "Mostrar en escritorio",
|
||||
@@ -38,6 +31,33 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"analytics": {
|
||||
"label": "Google Analytics",
|
||||
"priority": 15,
|
||||
"fields": {
|
||||
"analytics_enabled": {
|
||||
"type": "boolean",
|
||||
"label": "Activar Analytics",
|
||||
"default": false,
|
||||
"editable": true,
|
||||
"description": "Activa Google Analytics en el sitio"
|
||||
},
|
||||
"ga_tracking_id": {
|
||||
"type": "text",
|
||||
"label": "Google Analytics ID",
|
||||
"default": "",
|
||||
"editable": true,
|
||||
"description": "ID de seguimiento (G-XXXXXXXXXX o UA-XXXXXXXX-X)"
|
||||
},
|
||||
"ga_anonymize_ip": {
|
||||
"type": "boolean",
|
||||
"label": "Anonimizar IP (GDPR)",
|
||||
"default": true,
|
||||
"editable": true,
|
||||
"description": "Recomendado para cumplir con GDPR/RGPD"
|
||||
}
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"label": "Credenciales AdSense",
|
||||
"priority": 20,
|
||||
|
||||
Reference in New Issue
Block a user