Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Log import issue
Uku Taht3a0ec5481b57
diff --git a/lib/plausible/imported/site.ex b/lib/plausible/imported/site.exindex d137fb6676..6781cea0b6 100644--- a/lib/plausible/imported/site.ex+++ b/lib/plausible/imported/site.ex@@ -1,6 +1,7 @@defmodule Plausible.Imported douse Plausible.ClickhouseRepouse Timex+ require Loggerdef forget(site) doPlausible.ClickhouseRepo.clear_imported_stats_for(site.id)@@ -9,6 +10,8 @@ defmodule Plausible.Imported dodef from_google_analytics(nil, _site_id, _metric, _timezone), do: {:ok, nil}def from_google_analytics(data, site_id, table) do+ Logger.debug("Processing imported data (table=#{table}): #{inspect(data)}")+data =Enum.map(data, fn row ->new_from_google_analytics(site_id, table, row)diff --git a/lib/plausible_web/templates/site/import_from_google_user_metric_form.html.eex b/lib/plausible_web/templates/site/import_from_google_user_metric_form.html.eexindex a71f9d7a8f..c303701f4d 100644--- a/lib/plausible_web/templates/site/import_from_google_user_metric_form.html.eex+++ b/lib/plausible_web/templates/site/import_from_google_user_metric_form.html.eex@@ -1,4 +1,4 @@-<div class="max-w-md w-full mx-auto bg-white dark:bg-gray-800 shadow-md rounded px-8 pt-6 pb-8 mb-4 mt-8">;+<div class="max-w-md w-full mx-auto bg-white dark:bg-gray-800 shadow-md rounded px-8 pt-6 pb-8 mb-4 mt-8"><h2 class="text-xl font-black dark:text-gray-100">Import from Google Analytics</h2><div class="mt-6 text-sm text-gray-500 dark:text-gray-200">