Sha256: 63dfbabff390b21d505681872a210e0c925f239b777006dacbc807ff6fdda1c5

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

name: Meta Tags
description: Meta tags to provide analytics information about the current page
body: |
  This takes a content-store links hash like object which it can then turn into
  the correct analytics identifier metadata tags.

  The code which reads the meta tags can be found <a href="https://github.com/alphagov/static/blob/master/app/assets/javascripts/analytics/static-analytics.js#L76-L96">in static-analytics.js</a>.
accessibility_criteria: |
  The analytics meta tags component should not be visible to any users.
examples:
  with_organisations:
    data:
      content_item:
        links:
          organisations:
          - analytics_identifier: D1
          - analytics_identifier: D3
          worldwide_organisations:
          - analytics_identifier: EO3
  with_world_locations:
    data:
      content_item:
        links:
          world_locations:
          - analytics_identifier: WL3
  with_default_canonical_path:
    data:
      content_item:
        base_path: /test
      canonical_path: true
  with_overridden_canonical_path:
    data:
      content_item:
        base_path: /test
      canonical_path: /this-is-a-test-path

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
govuk_publishing_components-7.3.0 app/views/govuk_publishing_components/components/docs/meta_tags.yml