Site Domain

Moving your Site to a different Domain? We got you!

<%= label(nil, "Domain", class: "block text-sm font-medium leading-5 text-gray-700 dark:text-gray-300" ) %> <%= text_input(nil, :domain, value: @site.domain, disabled: "disabled", class: "dark:bg-gray-900 w-full mt-1 block pl-3 pr-10 py-2 text-base border-gray-300 dark:border-gray-500 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md dark:text-gray-100 text-gray-500" ) %>
Change Domain
<%= form_for @changeset, "/#{URI.encode_www_form(@site.domain)}/settings", fn f -> %>

Site Timezone

Update your reporting Timezone.

<%= label(f, :timezone, "Reporting Timezone", class: "block text-sm font-medium leading-5 text-gray-700 dark:text-gray-300" ) %> <%= select(f, :timezone, Plausible.Timezones.options(), class: "dark:bg-gray-900 mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 dark:border-gray-500 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md dark:text-gray-100 cursor-pointer" ) %>
Save
<% end %> <%= form_for @conn, "/", [class: "shadow bg-white dark:bg-gray-800 sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6"], fn f -> %>

JavaScript Snippet

Include 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 outline-none appearance-none border border-transparent rounded w-full p-2 pr-6 text-gray-700 dark:text-gray-300 leading-normal focus:outline-none focus:bg-white focus:border-gray-300 dark:focus:border-gray-500 text-xs mt-2 resize-none", value: render_snippet(@site), rows: 2 ) %>
<%= live_render(@conn, PlausibleWeb.Live.Verification, session: %{ "site_id" => @site.id, "domain" => @site.domain, "modal?" => true, "slowdown" => @conn.private[:verification_slowdown] } ) %>
<% end %>