1. Component Guide
  2. Organisation logo
  3. With data attributes
Organisation logo example

With data attributes

Data attributes can be applied as required. Note that the component does not include built in tracking. If this is required consider using the track click script.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/organisation_logo", {
  organisation: {
    name: "Cabinet Office",
    url: "/government/organisations/cabinet-office",
    brand: "cabinet-office",
    crest: "single-identity",
    data_attributes: {
      track_category: "navOrganisationLinkClicked",
      track_action: 1,
      track_label: "/government/organisations/cabinet-office",
      track_options: {
        dimension28: 2,
        dimension29: "Cabinet Office"
      }
    }
  }
} %>