Manually import historical data #3680
-
It is possible to manually add visitor and other data for the past time periods? I had an older version of hosted running and I have tried adidng manualy entries to
But this data never shows up in the dashboard. Am I required to add anything else, or is there maybe a process to trigger picking up the older data too? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
👋 @elahmo Right now the I haven't tried it but I think you can mark your site as having $ cd hosting
$ docker compose exec plausible bin/plausible remote iex> %Plausible.Site{} = site = Plausible.Repo.get_by(Plausible.Site, domain: "example.com")
# these from and to dates are arbitrary
iex> site = site |> Plausible.Site.start_import(_from = ~D[1999-01-01], _to = ~D[2030-01-01], "Google Analytics") |> Plausible.Repo.update!()
iex> site = site |> Plausible.Site.import_success() |> Plausible.Repo.update!() |
Beta Was this translation helpful? Give feedback.
👋 @elahmo
Right now the
imported_
tables are used for the data imported from Google Analytics.I haven't tried it but I think you can mark your site as having
imported_data
and it'd start showing up on your dashboards.