diff --git a/README.md b/README.md index cb84ed42e..e0ee14fd4 100644 --- a/README.md +++ b/README.md @@ -100,5 +100,5 @@ To stay up to date with all the latest news and product updates, make sure to fo Plausible is open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can [find it here](https://github.com/plausible/analytics/blob/master/LICENSE.md). -The only exception is our javascript tracker which gets included on your website. To avoid issues with AGPL virality, we've +The only exception is our JavaScript tracker which gets included on your website. To avoid issues with AGPL virality, we've released the tracker under the MIT license. You can [find it here](https://github.com/plausible/analytics/blob/master/tracker/LICENSE.md). diff --git a/lib/plausible_web/templates/site/settings_general.html.eex b/lib/plausible_web/templates/site/settings_general.html.eex index 1a9289df9..58304dde7 100644 --- a/lib/plausible_web/templates/site/settings_general.html.eex +++ b/lib/plausible_web/templates/site/settings_general.html.eex @@ -29,7 +29,7 @@ <%= 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

+

JavaScript snippet

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

<%= link(to: "https://plausible.io/docs/plausible-script", target: "_blank", rel: "noreferrer") do %> diff --git a/lib/plausible_web/templates/site/snippet.html.eex b/lib/plausible_web/templates/site/snippet.html.eex index 066c6b330..f8c7f62ce 100644 --- a/lib/plausible_web/templates/site/snippet.html.eex +++ b/lib/plausible_web/templates/site/snippet.html.eex @@ -1,6 +1,6 @@
<%= 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

+

Add JavaScript snippet

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

diff --git a/test/plausible_web/controllers/site_controller_test.exs b/test/plausible_web/controllers/site_controller_test.exs index 31d23ed74..abcc94fd0 100644 --- a/test/plausible_web/controllers/site_controller_test.exs +++ b/test/plausible_web/controllers/site_controller_test.exs @@ -274,7 +274,7 @@ defmodule PlausibleWeb.SiteControllerTest do test "shows snippet", %{conn: conn, site: site} do conn = get(conn, "/#{site.domain}/snippet") - assert html_response(conn, 200) =~ "Add javascript snippet" + assert html_response(conn, 200) =~ "Add JavaScript snippet" end end