Public dashboard

Share your stats publicly or keep them private

<%= link(to: "https://docs.plausible.io/visibility", target: "_blank") do %> <% end %>
<%= if @site.public do %>
<%= button(to: "/sites/#{URI.encode_www_form(@site.domain)}/make-private", method: "POST", class: "bg-indigo-600 relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring") do %> <% end %> Make stats publicly available on URI.encode_www_form(@site.domain)%>" class="text-indigo-500"><%= plausible_url() <> "/" <> URI.encode_www_form(@site.domain)%>
<% else %>
<%= button(to: "/sites/#{URI.encode_www_form(@site.domain)}/make-public", method: "POST", class: "bg-gray-200 dark:bg-gray-700 relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring") do %> <% end %> Make stats publicly available on URI.encode_www_form(@site.domain)%>" class="text-indigo-500"><%= plausible_url() <> "/" <> URI.encode_www_form(@site.domain)%>
<% end %>

Shared links

You can share your stats privately by generating a shared link. The links are impossible to guess and you can add password protection for extra security.

<%= link(to: "https://docs.plausible.io/shared-links", target: "_blank") do %> <% end %>
<%= for link <- @shared_links do %>
<%= button(to: "/sites/#{URI.encode_www_form(@site.domain)}/shared-links/#{link.slug}", method: :delete, class: "py-2 px-4 bg-gray-200 dark:bg-gray-850 text-red-600 dark:text-red-500 rounded-l-none hover:bg-gray-300 dark:hover:bg-gray-825", data: [confirm: "Are you sure you want to delete this shared link? The stats will not be accessible with this link anymore."]) do %> <% end %>
<% end %> <%= link("+ New link", to: "/sites/#{URI.encode_www_form(@site.domain)}/shared-links/new", class: "button mt-4") %>

Embed dashboard

You can use shared links to embed your stats in any other webpage using an iframe. Copy & paste a shared link into the form below to generate the embed code.

<%= link(to: "https://plausible.io/docs/embed-dashboard", target: "_blank") do %> <% end %>

Hint: try using `transparent` background to blend the dashboard with your site background