View Source Plausible.Google.GA4.API (Plausible v0.0.1)

API for Google Analytics 4.

Summary

Types

@type import_auth() ::
  {access_token :: String.t(), refresh_token :: String.t(),
   expires_at :: String.t()}

Functions

Link to this function

fetch_and_persist(report_request, opts \\ [])

View Source
@spec fetch_and_persist(Plausible.Google.GA4.ReportRequest.t(), Keyword.t()) ::
  :ok | {:error, term()}
Link to this function

get_analytics_start_date(access_token, property)

View Source
Link to this function

get_property(access_token, lookup_property)

View Source
Link to this function

import_analytics(date_range, property, auth, persist_fn)

View Source
Link to this function

list_properties(access_token)

View Source