Skip to content

Commit

Permalink
Add GA4 tracking to browse action link
Browse files Browse the repository at this point in the history
- the action link appears on the /browse/benefits page to signpost to a highlighted link
- adds GA4 tracking to this link
  • Loading branch information
andysellick committed Dec 5, 2023
1 parent 1e01601 commit 119c8ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/browse/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
href: "/check-benefits-financial-support",
dark_large_icon: true,
margin_bottom: 7,
data_attributes: {
module: "ga4-link-tracker",
ga4_link: {
event_name: "navigation",
type: "action",
index_link: "1",
index_total: "1",
}
}
} %>
</div>
</div>
Expand Down

0 comments on commit 119c8ee

Please sign in to comment.