Skip to content

Commit

Permalink
Add utm tag to one of the share buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Nov 21, 2024
1 parent 7ad76a3 commit 47315d2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/applications/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,13 @@
</div>

<div class="mt-6 md:mt-2">
<%= render ShareButtonComponent.new(url: application_url(@application), title: page_title(@application), color: :green) do %>
Share this application
<% end %>
<%# TODO: Make the share button component add the utm tags automatically %>
<%= c = "Share this application"
render ShareButtonComponent.new(
url: application_url(@application, utm_source: "share", utm_content: c),
title: page_title(@application),
color: :green
).with_content(c) %>
</div>

<%= render "applications/create_alert_form_bigger", alert: @alert %>
Expand Down

0 comments on commit 47315d2

Please sign in to comment.