1. Component Guide
  2. Intervention
  3. Without ga4 tracking
Intervention example

Without ga4 tracking

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

How it looks (preview)

Based on your browsing you might be interested in Travel abroad: step by step

Hide this suggestion

How to call this example

<%= render "govuk_publishing_components/components/intervention", {
  disable_ga4: true,
  suggestion_text: "Based on your browsing you might be interested in",
  suggestion_link_text: "Travel abroad: step by step",
  suggestion_link_url: "/travel-abroad",
  dismiss_text: "Hide this suggestion",
  name: "another-campaign-name"
} %>