Define actions that you want your users to take like visiting a certain page, submitting a form, etc.
<%= link(to: "https://docs.plausible.io/goal-conversions/", target: "_blank") do %>
<% end %>
<%= if Enum.count(@goals) > 0 do %>
<%= for goal <- @goals do %>
<%= goal_name(goal) %>
<%= button(to: "/#{URI.encode_www_form(@site.domain)}/goals/#{goal.id}", method: :delete, class: "text-sm text-red-600", data: [confirm: "Are you sure you want to remove goal #{goal_name(goal)}? This will just affect the UI, all of your analytics data will stay intact."]) do %>
<% end %>
<% end %>
<% else %>
No goals configured for this site yet
<% end %>
<%= link("+ Add goal", to: "/#{URI.encode_www_form(@site.domain)}/goals/new", class: "button mt-6") %>