1. Collections Component Guide
  2. Tabs (experimental)
  3. Without ga4 tracking on tabs as links
Tabs (experimental) example

Without ga4 tracking on tabs as links

Disables GA4 tracking on tabs as links. Tracking is enabled by default.

How it looks (preview)

Contents

How to call this example

<%= render "govuk_publishing_components/components/tabs", {
  as_links: true,
  ga4_tracking: true,
  tabs: [
    {
      href: "/page1",
      label: "Link 1",
      active: true
    },
    {
      href: "/page2",
      label: "Link 2",
      active: false
    }
  ]
} %>