Skip to content

Commit cf2d252

Browse files
Changing the note on top of a new dashboard (#6147)
* Changing the note on top of a new dashboard Changing the note on top of a new dashboard and adding a custom event to track clicks * Update first_dashboard_launch_banner.ex * Fix formatting and use route helper instead of URL string --------- Co-authored-by: Adrian Gruntkowski <github@todo.computer>
1 parent dbd4131 commit cf2d252

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/plausible_web/components/first_dashboard_launch_banner.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ defmodule PlausibleWeb.Components.FirstDashboardLaunchBanner do
2828
x-bind:class="! show ? 'hidden' : ''"
2929
x-init={x_init(@site)}
3030
>
31-
<.styled_link href={"/#{URI.encode_www_form(@site.domain)}/settings/email-reports"}>
32-
Invite guests, enable email reports, import from GA and more →
31+
<.styled_link
32+
href={Routes.site_path(PlausibleWeb.Endpoint, :settings_email_reports, @site.domain)}
33+
onclick="plausible('Weekly Email Note Click')"
34+
>
35+
Get weekly traffic summaries by email →
3336
</.styled_link>
3437
</div>
3538
"""

0 commit comments

Comments
 (0)