View Source Plausible.Sites (Plausible v0.0.1)
Summary
Functions
Returns the date of the first event of the given site, or nil
if the site
does not have stats yet.
Functions
Link to this function
get_for_user!(user_id, domain, roles \\ [:owner, :admin, :viewer])
View Source@spec stats_start_date(Plausible.Site.t()) :: Date.t() | nil
Returns the date of the first event of the given site, or nil
if the site
does not have stats yet.
If this is the first time the function is called for the site, it queries Clickhouse and saves the date in the sites table.