Skip to content

Commit

Permalink
Merge pull request #3459 from alphagov/ga4-action-link-browse
Browse files Browse the repository at this point in the history
Add GA4 tracking to browse action link
  • Loading branch information
andysellick authored Dec 5, 2023
2 parents 1e01601 + de38bf6 commit cccc31a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/views/browse/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@
href: "/check-benefits-financial-support",
dark_large_icon: true,
margin_bottom: 7,
data_attributes: {
module: "ga4-link-tracker",
ga4_track_links_only: "",
ga4_link: {
event_name: "navigation",
type: "action",
index_link: "1",
index_total: "1",
}
}
} %>
</div>
</div>
Expand Down

0 comments on commit cccc31a

Please sign in to comment.