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

Without ga4 tracking

Disables GA4 tracking on the banner. Tracking is enabled by default. This includes link tracking on the “You have accepted cookies” section, and allows the pageview event that is sent when GA4 initialises to record the presence of the cookie acceptance message.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/cookie_banner", {
  disable_ga4: true
} %>