Skip to contents

Main function to fetch, parse, deduplicate, and cache Mixpanel data.

Usage

get_mixpanel_data(
  from_date,
  to_date,
  client_agency,
  cache_dir = ".",
  force_reload = FALSE
)

Arguments

from_date

Start date in 'YYYY-MM-DD' format

to_date

End date in 'YYYY-MM-DD' format

client_agency

if provided, will filter down by specific agency (eg la_ldh)

cache_dir

defaults to working directory

force_reload

Logical. If TRUE, bypass cache and fetch fresh data

Value

A tibble containing cleaned, deduplicated Mixpanel events

Examples

if (FALSE) { # \dontrun{
df <- get_mixpanel_data("2025-11-16", "2025-12-19")
} # }