1. Component Guide
  2. Emergency banner
  3. Without ga4 tracking
Emergency banner example

Without ga4 tracking

Disables GA4 tracking on the banner. Tracking is enabled by default. This includes link tracking on the component itself, and allows pageviews to record the presence of the banner on page load.

How it looks (preview)

His Royal Highness Henry VIII

1491 to 1547

More information

How to call this example

<%= render "govuk_publishing_components/components/emergency_banner", {
  campaign_class: "notable-death",
  heading: "His Royal Highness Henry VIII",
  short_description: "1491 to 1547",
  link: "https://www.gov.uk/",
  homepage: true,
  disable_ga4: true
} %>