Skip to content

Commit

Permalink
Add utm tags for notification emails (#451)
Browse files Browse the repository at this point in the history
* Add utm tags for notification emails

* Add utm tags to detection notification emails too
  • Loading branch information
skanderm authored May 5, 2024
1 parent de7f018 commit 9d5150e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/lib/orcasite/notifications/email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ defmodule Orcasite.Notifications.Email do
{{/if}}
{{#if meta["candidate_id"] }}
<mj-text font-size="20px" font-family="helvetica">
Review here: <a href="https://live.orcasound.net/reports/{{meta["candidate_id"]}}">{{ meta["candidate_id"] }}</a>
Review here: <a href="https://live.orcasound.net/reports/{{meta["candidate_id"]}}?utm_source=email&utm_medium=email&utm_campaign=notifications">{{ meta["candidate_id"] }}</a>
</mj-text>
{{/if}}
Expand All @@ -70,7 +70,7 @@ defmodule Orcasite.Notifications.Email do
<td style="padding: 0 0 0 15px;">{{ notif_meta["description"] }}</td>
<td style="padding: 0 0 0 15px;">
{{#if notif_meta["candidate_id"] }}
<a href="https://live.orcasound.net/reports/{{meta["candidate_id"]}}">Review</a>
<a href="https://live.orcasound.net/reports/{{meta["candidate_id"]}}?utm_source=email&utm_medium=email&utm_campaign=notifications">Review</a>
{{/if}}
</td>
</tr>
Expand All @@ -80,7 +80,7 @@ defmodule Orcasite.Notifications.Email do
<mj-text font-size="20px">
Listen here: <a href="https://live.orcasound.net/listen/{{node}}">https://live.orcasound.net/listen/{{ node }}</a>
Listen here: <a href="https://live.orcasound.net/listen/{{node}}?utm_source=email&utm_medium=email&utm_campaign=notifications">https://live.orcasound.net/listen/{{ node }}</a>
</mj-text>
{{#if unsubscribe_token }}
Expand Down Expand Up @@ -116,7 +116,7 @@ defmodule Orcasite.Notifications.Email do
<mj-section>
<mj-column background-color="#404040" padding="18px">
<mj-text font-size="14px" color="#F2F2F2" font-family="Helvetica" line-height="150%">
<mj-text font-size="18px" color="#F2F2F2" font-family="Helvetica" line-height="150%">
{{ meta["message"] }}
</mj-text>
</mj-column>
Expand All @@ -126,14 +126,14 @@ defmodule Orcasite.Notifications.Email do
<mj-column>
<mj-image src="https://orcasite.s3.us-west-2.amazonaws.com/email_assets/orcasound_dont_miss.jpg"></mj-image>
<mj-button href="http://live.orcasound.net/listen/{{ node }}" background-color="#0F0F0F" border-radius="31px" font-size="18px" padding="18px" font-weight="bold">LISTEN NOW!</mj-button>
<mj-button href="http://live.orcasound.net/listen/{{ node }}?utm_source=email&utm_medium=email&utm_campaign=notifications" background-color="#0F0F0F" border-radius="31px" font-size="18px" padding="18px" font-weight="bold">LISTEN NOW!</mj-button>
</mj-column>
</mj-section>
<mj-section>
<mj-column background-color="#404040">
<mj-text color="#F2F2F2" font-size="16px" align="center" line-height="150%" font-family="Helvetica">
If you miss the concert, <br /> watch the <a href="https://orcasound.net/blog?ecm" style="color: #007C89;">Orcasound blog</a> for recordings & bioacoustic analysis!
If you miss the concert, <br /> watch the <a href="https://orcasound.net/blog?ecm&utm_source=email&utm_medium=email&utm_campaign=notifications" style="color: #007C89;">Orcasound blog</a> for recordings & bioacoustic analysis!
</mj-text>
</mj-column>
</mj-section>
Expand Down

0 comments on commit 9d5150e

Please sign in to comment.