View Source Plausible.Imported.UniversalAnalytics (Plausible v0.0.1)

Import implementation for Universal Analytics.

Summary

Functions

Link to this function

from_report(data, site_id, import_id, table)

View Source
Link to this function

import_data(site_import, opts)

View Source

Imports stats from a Google Analytics UA view to a Plausible site.

This function fetches Google Analytics reports which are then passed in batches to Clickhouse by the Plausible.Imported.Buffer process.

Link to this function

new_import(site, user, opts)

View Source
@spec new_import(Plausible.Site.t(), Plausible.Auth.User.t(), Keyword.t()) ::
  {:ok, Oban.Job.t()} | {:error, Ecto.Changeset.t() | :import_in_progress}