Skip to content

Commit d4ab7de

Browse files
committed
feat: [AB#16898] add utm links to email, fix styling
1 parent d5307b1 commit d4ab7de

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

api/src/functions/messagingService/reactEmail/components/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Column, Link, Markdown, Row, Section } from "@react-email/components";
22

3-
export const Header = (): JSX.Element => {
3+
export const Header = (props: { utmString?: string }): JSX.Element => {
44
return (
55
<Section style={{ fontSize: "12px" }}>
66
<Row style={{ backgroundColor: "#1B1B1B", color: "#FFFFFF", padding: "12px 20px" }}>
77
<Column>Official Site of the State of New Jersey</Column>{" "}
88
<Column style={{ textAlign: "right" }}>
99
<Link
10-
href="https://account.business.nj.gov"
10+
href={`https://account.business.nj.gov/${props.utmString}`}
1111
style={{ color: "inherit", textDecoration: "underline" }}
1212
>
1313
account.business.nj.gov
@@ -16,7 +16,7 @@ export const Header = (): JSX.Element => {
1616
</Row>
1717
<Row style={{ backgroundColor: "#F8F8F8", padding: "0 20px" }}>
1818
<Column>
19-
<Markdown>
19+
<Markdown markdownCustomStyles={{ link: { color: "black" } }}>
2020
**For Your Safety.** We will never send or ask for your personal or business information
2121
by email. If you suspect a scam, report it at
2222
[cyber.nj.gov/report](https://cyber.nj.gov/report)

api/src/functions/messagingService/reactEmail/emails/welcomeEmailShortVersion.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const WelcomeEmailShortVersion = (): JSX.Element => {
2020
<title>Welcome to Business.NJ.gov</title>
2121
</Head>
2222
<Container style={{ fontFamily: "sans-serif" }}>
23-
<Header />
23+
<Header utmString="?utm_source=myaccount-welcome-email&utm_medium=email&utm_campaign=welcome-email&utm_content=welcome-email-B-version1-black-ribbon-header" />
2424

2525
{/* Body section */}
2626
<Section style={{ padding: "0 24px" }}>
@@ -40,11 +40,11 @@ export const WelcomeEmailShortVersion = (): JSX.Element => {
4040
</Row>
4141
<Hr />
4242
<Row>
43-
<Markdown>
43+
<Markdown markdownCustomStyles={{ link: { color: "black" } }}>
4444
Congratulations on creating your account with
45-
[Business.NJ.gov](https://account.business.nj.gov/dashboard).
45+
**[Business.NJ.gov](https://account.business.nj.gov/dashboard?utm_source=myaccount-welcome-email&utm_medium=email&utm_campaign=welcome-email&utm_content=welcome-email-B-version1-inline-message-business.nj.gov)**.
4646
</Markdown>
47-
<Markdown>
47+
<Markdown markdownContainerStyles={{ paddingBottom: "18px" }}>
4848
You've joined **200,000+ business owners** who've used the site to start, operate, and
4949
grow their businesses.
5050
</Markdown>
@@ -53,7 +53,7 @@ export const WelcomeEmailShortVersion = (): JSX.Element => {
5353
{/* Call to action section */}
5454
<Section
5555
style={{
56-
backgroundColor: "#f9fbfb",
56+
backgroundColor: "#F9FBFB",
5757
borderRadius: "20px",
5858
textAlign: "center",
5959
padding: "0 0 24px",
@@ -72,7 +72,7 @@ export const WelcomeEmailShortVersion = (): JSX.Element => {
7272
Log In to Get Started
7373
</h2>
7474
<Button
75-
href="https://account.business.nj.gov/dashboard"
75+
href="https://account.business.nj.gov/dashboard?utm_source=myaccount-welcome-email&utm_medium=email&utm_campaign=welcome-email&utm_content=welcome-email-B-version1-green-cta"
7676
style={{
7777
background: "#4b7600",
7878
color: "#fff",
@@ -84,8 +84,13 @@ export const WelcomeEmailShortVersion = (): JSX.Element => {
8484
</Button>
8585
</Row>
8686
<Row>
87-
<Text style={{ textDecoration: "underline", color: "#3D4551" }}>
88-
https://account.business.nj.gov/dashboard
87+
<Text>
88+
<Link
89+
href="https://account.business.nj.gov/dashboard"
90+
style={{ textDecoration: "underline", color: "#3D4551" }}
91+
>
92+
https://account.business.nj.gov/dashboard
93+
</Link>
8994
</Text>
9095
</Row>
9196
</Section>
@@ -105,21 +110,21 @@ export const WelcomeEmailShortVersion = (): JSX.Element => {
105110
{/* Links */}
106111
<Link
107112
style={{ color: "inherit", textDecoration: "underline" }}
108-
href="https://business.nj.gov/privacy-policy"
113+
href="https://business.nj.gov/privacy-policy?utm_source=myaccount-welcome-email&utm_medium=email&utm_campaign=welcome-email&utm_content=welcome-email-B-version1-footer-privacy-policy"
109114
>
110115
Privacy Policy
111116
</Link>{" "}
112117
<span style={{ padding: " 0 8px" }}>|</span>
113118
<Link
114119
style={{ color: "inherit", textDecoration: "underline" }}
115-
href="https://business.nj.gov/contact-us"
120+
href="https://business.nj.gov/contact-us?utm_source=myaccount-welcome-email&utm_medium=email&utm_campaign=welcome-email&utm_content=welcome-email-B-version1-footer-contact-us"
116121
>
117122
Contact Us
118123
</Link>{" "}
119124
<span style={{ padding: " 0 8px" }}>|</span>
120125
<Link
121126
style={{ color: "inherit", textDecoration: "underline" }}
122-
href="https://account.business.nj.gov/profile"
127+
href="https://account.business.nj.gov/profile?utm_source=myaccount-welcome-email&utm_medium=email&utm_campaign=welcome-email&utm_content=welcome-email-B-version1-footer-manage-notifications"
123128
>
124129
Manage Notifications
125130
</Link>

0 commit comments

Comments
 (0)