Skip to content
Snippets Groups Projects
Commit 3a0ec548 authored by Uku Taht's avatar Uku Taht
Browse files

Log import issue

parent 8aa38e14
No related branches found
No related tags found
No related merge requests found
defmodule Plausible.Imported do
use Plausible.ClickhouseRepo
use Timex
require Logger
def forget(site) do
Plausible.ClickhouseRepo.clear_imported_stats_for(site.id)
......@@ -9,6 +10,8 @@ defmodule Plausible.Imported do
def 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)
......
<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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment