Skip to content

Commit

Permalink
Merge pull request #3667 from alphagov/ga4-licence-not-online
Browse files Browse the repository at this point in the history
Add GA4 to licence not online page
  • Loading branch information
andysellick authored Jun 28, 2023
2 parents 599157b + 69c8f15 commit 2abc715
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions app/views/licence/_licensify_unavailable.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<%= render "govuk_publishing_components/components/warning_text", {
text: sanitize("You cannot apply for this licence online. #{link_to('Contact your local council', '/find-local-council', class: "govuk-link")}.")
} %>
<%
ga4_attributes = {
event_name: "form complete",
type: "licence",
text: "You cannot apply for this licence online",
action: "complete",
tool_name: publication.title,
}.to_json
%>
<div
data-module="ga4-auto-tracker"
data-ga4-auto='<%= ga4_attributes %>'>
<%= render "govuk_publishing_components/components/warning_text", {
text: sanitize("You cannot apply for this licence online. #{link_to('Contact your local council', '/find-local-council', class: "govuk-link")}.")
} %>
</div>

0 comments on commit 2abc715

Please sign in to comment.