-
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.
Enable taxonomy email signup for document collection
Allow users to sign up to a mapped taxonomy topic email subscription from some document collection pages if taxonomy_topic_email_override is present.
- Loading branch information
1 parent
8f37863
commit 930513d
Showing
5 changed files
with
42 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<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/?link=#{base_path}", | ||
data: { | ||
"module": "gem-track-click", | ||
"track-category": "emailAlertLinkClicked", | ||
"track-action": base_path, | ||
"track-label": "" | ||
}, | ||
margin_bottom: 6 | ||
} %> | ||
</div> |
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