<%= form_for @conn, "/", [class: "max-w-lg w-full mx-auto bg-white dark:bg-gray-800 shadow-md rounded px-8 pt-6 pb-8 mb-4 mt-8"], fn f -> %>

Add JavaScript snippet

Paste this snippet in the <head> of your website.

<%= textarea(f, :domain, id: "snippet_code", class: "transition overflow-hidden bg-gray-100 dark:bg-gray-900 appearance-none border border-transparent rounded w-full p-2 pr-6 text-gray-700 dark:text-gray-300 leading-normal appearance-none focus:outline-none focus:bg-white dark:focus:bg-gray-800 focus:border-gray-400 dark:focus:border-gray-500 text-xs mt-4 resize-none", value: render_snippet(@site), rows: 3, readonly: "readonly" ) %>

On WordPress? We have <.styled_link new_tab class="text-sm" href="https://plausible.io/wordpress-analytics-plugin" > a plugin

See more <.styled_link new_tab class="text-sm" href="https://plausible.io/docs/integration-guides"> integration guides

<%= link("Start collecting data →", class: "button mt-4 w-full", to: "/#{URI.encode_www_form(@site.domain)}" ) %> <% end %> <%= if @is_first_site do %> <% end %>