Skip to content

Manually import historical data #3680

Discussion options

You must be logged in to vote

👋 @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.

$ 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!()

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@elahmo
Comment options

@elahmo
Comment options

@ruslandoga
Comment options

Answer selected by elahmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants