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

With data attributes

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"
      }
    }
  }
} %>