From f2958310b4c1363c463aea31c41632b99c2fa0e9 Mon Sep 17 00:00:00 2001 From: Andrew Topping Date: Wed, 16 Sep 2026 14:34:21 +0100 Subject: [PATCH] Fix Analytics blueprint tabs and move Cookie Panel data to the correct global variables file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Re-indent analytics.yaml blueprint so `main` nests under `tabs`, which was breaking blueprint parsing and leaving the CP tab/fields blank - Split cookie_panel's field data out of the global set's metadata file and into content/globals/default/cookie_panel.yaml, flat at the top level, matching how Statamic reads global variables — it was previously wrapped in a `data:` key inside the meta file, which Statamic ignores --- content/globals/cookie_panel.yaml | 76 --------------------- content/globals/default/cookie_panel.yaml | 75 ++++++++++++++++++++ resources/blueprints/globals/analytics.yaml | 22 +++--- 3 files changed, 86 insertions(+), 87 deletions(-) create mode 100644 content/globals/default/cookie_panel.yaml diff --git a/content/globals/cookie_panel.yaml b/content/globals/cookie_panel.yaml index ab52b74..e421cab 100644 --- a/content/globals/cookie_panel.yaml +++ b/content/globals/cookie_panel.yaml @@ -1,77 +1 @@ title: 'Cookie Panel' -data: - button_text: Cookies - introduction: '

Our use of cookies

Some cookies are necessary for us to manage how our website behaves while other optional, or non-necessary, cookies help us to analyse website usage. You can Accept All or Reject All optional cookies or control individual cookie types below.

You can read more in our Cookie Notice

' - cookie_groups: - - - id: xzPoz9zg - title: Functional - description: 'These cookies enable core functionality such as security, network management, and accessibility. You may disable these by changing your browser settings, but this may affect how the website functions.' - show_toggle: false - type: new_set - enabled: true - slug: functional - - - id: LCjOM4qU - title: 'Analytics cookies' - description: 'Analytical cookies help us to improve our website by collecting and reporting information on its usage.' - show_toggle: true - type: new_set - enabled: true - slug: analytics - - - id: Rd9AbvBa - title: 'Third-Party Cookies' - description: 'These cookies are set by a website other than the website you are visiting usually as a result of some embedded content such as a video, a social media share or a like button or a contact map.' - show_toggle: true - type: new_set - enabled: true - slug: third-party - - - id: mckkbrg6 - title: 'Advertising Cookies' - slug: advertising - description: 'These cookies are set by a website other than the website you are visiting to enable personalisation of advertising preferences across ad networks.' - show_toggle: true - type: new_set - enabled: true - cookie_table: - - - id: kFjZnXh7 - title: 'Functional cookies' - cookie: - - - id: 6sG2hUTA - name: session - length: '2 days' - purpose: 'Handle session related activity' - type: new_set - enabled: true - type: new_set - enabled: true - - - id: UV03y2CT - title: 'Analytics cookies' - cookie: - - - id: HH7KdSZ7 - name: 'Google Analytics' - length: '7 days' - purpose: 'Allow tracking of website usage' - type: new_set - enabled: true - type: new_set - enabled: true - - - id: 90OlDt36 - title: 'Third-Party Cookies' - cookie: - - - id: vSFhxKfw - name: 'Facebook pixel' - length: '7 days' - purpose: 'Tracks your usage and associates it with your Facebook account' - type: new_set - enabled: true - type: new_set - enabled: true diff --git a/content/globals/default/cookie_panel.yaml b/content/globals/default/cookie_panel.yaml new file mode 100644 index 0000000..c942ec1 --- /dev/null +++ b/content/globals/default/cookie_panel.yaml @@ -0,0 +1,75 @@ +button_text: Cookies +introduction: '

Our use of cookies

Some cookies are necessary for us to manage how our website behaves while other optional, or non-necessary, cookies help us to analyse website usage. You can Accept All or Reject All optional cookies or control individual cookie types below.

You can read more in our Cookie Notice

' +cookie_groups: + - + id: xzPoz9zg + title: Functional + description: 'These cookies enable core functionality such as security, network management, and accessibility. You may disable these by changing your browser settings, but this may affect how the website functions.' + show_toggle: false + type: new_set + enabled: true + slug: functional + - + id: LCjOM4qU + title: 'Analytics cookies' + description: 'Analytical cookies help us to improve our website by collecting and reporting information on its usage.' + show_toggle: true + type: new_set + enabled: true + slug: analytics + - + id: Rd9AbvBa + title: 'Third-Party Cookies' + description: 'These cookies are set by a website other than the website you are visiting usually as a result of some embedded content such as a video, a social media share or a like button or a contact map.' + show_toggle: true + type: new_set + enabled: true + slug: third-party + - + id: mckkbrg6 + title: 'Advertising Cookies' + slug: advertising + description: 'These cookies are set by a website other than the website you are visiting to enable personalisation of advertising preferences across ad networks.' + show_toggle: true + type: new_set + enabled: true +cookie_table: + - + id: kFjZnXh7 + title: 'Functional cookies' + cookie: + - + id: 6sG2hUTA + name: session + length: '2 days' + purpose: 'Handle session related activity' + type: new_set + enabled: true + type: new_set + enabled: true + - + id: UV03y2CT + title: 'Analytics cookies' + cookie: + - + id: HH7KdSZ7 + name: 'Google Analytics' + length: '7 days' + purpose: 'Allow tracking of website usage' + type: new_set + enabled: true + type: new_set + enabled: true + - + id: 90OlDt36 + title: 'Third-Party Cookies' + cookie: + - + id: vSFhxKfw + name: 'Facebook pixel' + length: '7 days' + purpose: 'Tracks your usage and associates it with your Facebook account' + type: new_set + enabled: true + type: new_set + enabled: true diff --git a/resources/blueprints/globals/analytics.yaml b/resources/blueprints/globals/analytics.yaml index 8104424..5fdd379 100644 --- a/resources/blueprints/globals/analytics.yaml +++ b/resources/blueprints/globals/analytics.yaml @@ -1,12 +1,12 @@ tabs: -main: - display: Main - sections: - - - display: Google - fields: - - - handle: tag_manager_id - field: - type: text - display: 'Tag Manager ID' + main: + display: Main + sections: + - + display: Google + fields: + - + handle: tag_manager_id + field: + type: text + display: 'Tag Manager ID'