diff --git a/resources/fieldsets/globals_seo_trackers_analytics.yaml b/resources/fieldsets/globals_seo_trackers_analytics.yaml index d256818..b55f45b 100644 --- a/resources/fieldsets/globals_seo_trackers_analytics.yaml +++ b/resources/fieldsets/globals_seo_trackers_analytics.yaml @@ -1,11 +1,5 @@ title: 'Globals SEO: Trackers - Analytics' fields: - - - handle: section_fathom - field: - type: section - instructions: "Configure Fathom. A privacy friendly tracker that doesn't require a cookie notification." - display: Fathom - handle: use_fathom field: @@ -13,54 +7,19 @@ fields: instructions: 'Add Fathom tracking code to your head.' listable: false display: Fathom - width: 50 - - - handle: fathom_use_custom_domain - field: - type: toggle - instructions: 'Use a custom domain for your Fathom script.' - listable: false - width: 50 - display: 'Custom domain' - instructions_position: above - default: false - if: - use_fathom: 'equals true' - handle: fathom field: - width: 50 display: 'Site ID' instructions: 'Only add the site ID.' input_type: text type: text listable: hidden - validate: - - 'required_if:use_fathom,true' - if: - use_fathom: 'equals true' - - - handle: fathom_custom_script_url - field: width: 50 - display: 'Custom domain' - instructions: 'Add the full script URL.' - input_type: url - type: text - listable: hidden validate: - - 'required_if:fathom_use_custom_domain,true' + - 'required_if:use_fathom,true' if: use_fathom: 'equals true' - fathom_use_custom_domain: 'equals true' - instructions_position: above - antlers: false - - - handle: section_plausible - field: - type: section - instructions: "Configure Plausible. A privacy friendly tracker that doesn't require a cookie notification." - display: Plausible - handle: use_plausible field: @@ -68,14 +27,12 @@ fields: instructions: 'Add Plausible tracking code to your head.' listable: false display: Plausible - width: 50 - handle: plausible_use_custom_script field: type: toggle instructions: 'For when you are you using a self hosted install or proxying the script.' listable: false - width: 50 display: 'Custom script' instructions_position: above default: false @@ -84,12 +41,12 @@ fields: - handle: plausible field: - width: 50 display: 'Site Domain' instructions: 'Specify the domain of your site you wish track visits on.' input_type: text type: text listable: hidden + width: 50 validate: - 'required_if:use_plausible,true' if: @@ -97,12 +54,12 @@ fields: - handle: plausible_custom_script_url field: - width: 50 display: 'Custom script' instructions: 'Add the full script URL.' input_type: url type: text listable: hidden + width: 50 validate: - 'required_if:plausible_use_custom_domain,true' if: @@ -110,12 +67,6 @@ fields: plausible_use_custom_script: 'equals true' instructions_position: above antlers: false - - - handle: section_cloudflare - field: - type: section - instructions: 'Configure Cloudflare Web Analytics.' - display: 'Cloudflare Web Analytics' - handle: use_cloudflare_web_analytics field: @@ -126,9 +77,9 @@ fields: - handle: cloudflare_web_analytics field: - width: 66 display: 'Beacon ID' input_type: text + width: 50 type: text listable: hidden validate: diff --git a/resources/views/snippets/_seo.antlers.html b/resources/views/snippets/_seo.antlers.html index 4d45645..d89640d 100644 --- a/resources/views/snippets/_seo.antlers.html +++ b/resources/views/snippets/_seo.antlers.html @@ -225,9 +225,7 @@ {{ /if }} - {{ if seo:use_fathom && seo:fathom_use_custom_domain }} - - {{ elseif seo:use_fathom }} + {{ if seo:use_fathom }} {{ /if }}