1. Collections Component Guide
  2. Details
  3. Disable ga4 tracking
Details example

Disable ga4 tracking

Disables GA4 tracking on the component. Tracking is enabled by default.

How it looks (preview)

No tracking here
Or here, but thanks for looking.

How to call this example

<%= render "govuk_publishing_components/components/details", {
  title: "No tracking here",
  disable_ga4: true
} do %>
  Or here, but thanks for looking.<% end %>