Skip to content

Commit

Permalink
Add plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Feb 21, 2024
1 parent 5b7ff87 commit e505403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/polar_web/components/layouts/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
</script>
<%= if domain = System.get_env("PHX_HOST") do %>
<script defer data-domain={domain} src="https://plausible.io/js/script.js">
</script>
<% end %>
</head>
<body class="h-full bg-slate-950">
<%= @inner_content %>
Expand Down
1 change: 0 additions & 1 deletion lib/polar_web/controllers/streams/item_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ defmodule PolarWeb.Streams.ItemController do

if credential do
%{
bucket: bucket,
default_cdn_host: default_cdn_host
} = Polar.Assets.config()

Expand Down

0 comments on commit e505403

Please sign in to comment.