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

Import implementation for Google Analytics 4.

Summary

Functions

Imports stats from a Google Analytics 4 property to a Plausible site.

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 4 property to a Plausible site.

This function fetches Google Analytics 4 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 | any()}