Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Deal with nil when importing

Uku Tahta375789f5228
diff --git a/lib/plausible/imported/site.ex b/lib/plausible/imported/site.ex
index 6781cea0b6..c9370f96ce 100644
--- a/lib/plausible/imported/site.ex
+++ b/lib/plausible/imported/site.ex
@@ -7,7 +7,7 @@ defmodule Plausible.Imported do
Plausible.ClickhouseRepo.clear_imported_stats_for(site.id)
end
- def from_google_analytics(nil, _site_id, _metric, _timezone), do: {:ok, nil}
+ def from_google_analytics(nil, _site_id, _metric), do: {:ok, nil}
def from_google_analytics(data, site_id, table) do
Logger.debug("Processing imported data (table=#{table}): #{inspect(data)}")