-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update taxonomy topic email signup button
When a document collection is tagged to a level one taxon, we want the email signup link to send the user to the confirmation page instead of the select subtopics page.
- Loading branch information
1 parent
910a716
commit 4d2c8a4
Showing
5 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
app/views/shared/_document_collections_email_signup.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<% if @content_item.taxonomy_topic_email_override_base_path.present? %> | ||
<div | ||
data-module="ga4-link-tracker" | ||
data-ga4-link='{ "event_name": "navigation", "type": "subscribe", "index": { "index_link": 1 }, "index_total": 1, "section": "Top" }' | ||
data-ga4-track-links-only | ||
> | ||
<%= render "govuk_publishing_components/components/signup_link", { | ||
link_text: "Get emails about this topic", | ||
link_href: "/email-signup/confirm?topic=#{@content_item.taxonomy_topic_email_override_base_path}", | ||
data: { | ||
"module": "gem-track-click", | ||
"track-category": "emailAlertLinkClicked", | ||
"track-action": @content_item.taxonomy_topic_email_override_base_path, | ||
"track-label": "" | ||
}, | ||
margin_bottom: 6 | ||
} %> | ||
</div> | ||
<% else %> | ||
<%= render 'shared/single_page_notification_button', content_item: @content_item, skip_account: "true" %> | ||
<% end %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters