1. Component Guide
  2. Details
  3. With gtm tracking
Details example

With gtm tracking

How it looks (preview)

Help with nationality
We need to know your nationality so we can work out which elections you’re entitled to vote in. If you can’t provide your nationality, you’ll have to send copies of identity documents through the post.

How to call this example

<%= render "govuk_publishing_components/components/details", {
  title: "Help with nationality",
  data_attributes: {
    tracking: "GTM-123AB",
    details_track_click: ""
  }
} do %>
  We need to know your nationality so we can work out which elections you’re entitled to vote in. If you can’t provide your nationality, you’ll have to send copies of identity documents through the post.
<% end %>