Skip to content

Releases: lalabuy948/PhoenixAnalytics

0.3.0

13 Jan 14:48
Compare
Choose a tag to compare

No disk persistence

Important

In case you are hosting your app on fly.io or heroku which doesn't let to persist data on the disk,
you can add in_memory: true into :phoenix_analytics config.
And don't forget to remove duckdb_path from the config, otherwise PA will try to create duckdb on the disk.

config :phoenix_analytics,
  app_domain: System.get_env("PHX_HOST") || "example.com",
  postgres_conn: System.get_env("POSTGRES_CONN") || "dbname=postgres user=phoenix password=analytics host=localhost",
  in_memory: true

Extra changes:

  • Hash IP address to respect EU law for anon data gathering

  • Remove runtime config notice

  • Dependabot patch

0.2.1

17 Oct 11:02
4f6f41f
Compare
Choose a tag to compare
  • Fix chart tooltips

Huge thanks to @adamroyle

Screenshot 2024-10-09 at 10 48 44

0.2.0 - Distributed apps support via Postgres backend

23 Sep 15:11
54c4e40
Compare
Choose a tag to compare
  • Added PostgresDB backend support issue 8
  • Added example apps/integrations
  • Added configurable cache
  • Cache will be disabled by default issue 13

Note

In case you would like to enable it back you can optionally add this line to the config

config :phoenix_analytics,
  app_domain: "example.com",
  duckdb_path: "analytics.duckdb",
  cache_ttl: System.get_env("CACHE_TTL") || 120 # seconds # <- this one

Important

Breaking changes

  • System.get_env("DUCK_PATH") renamed to System.get_env("DUCKDB_PATH")
  • config :phoenix_analytics, database_path -> config :phoenix_analytics, duckdb_path
  • cache disabled by default issue 13

Note

The only thing you need to enable Postgres backend to add one line to config:

config :phoenix_analytics,
  app_domain: "example.com",
  duckdb_path: "analytics.duckdb",
  postgres_conn: "dbname=postgres user=phoenix password=analytics host=localhost" # <- this one

Here is full list of Postgres parameters.

0.1.3

15 Sep 17:12
411f9c8
Compare
Choose a tag to compare

0.1.2

10 Sep 12:27
a8d280f
Compare
Choose a tag to compare
  • fix for Router conflict with ErrorTracker #2
  • fix dev env endpoint vegeta reachability

0.1.1

09 Sep 16:43
Compare
Choose a tag to compare

Minor fix

  • fix for extracting tablet user agent

0.1.0

05 Sep 14:29
Compare
Choose a tag to compare

Initial Phoenix Analytics release 🎉

  • Requests tracking
  • Minimal dashboard
  • Short stats for
    • visits
    • pageviews
    • requests
    • views per visit
    • visit duration
    • bounce rate
  • Total visits chart
  • Top pages chart
  • Top referer chart
  • Device usage chart
  • HTTP statuses chart
  • Slowest pages chart
  • Slowest resources chart
  • 404s chart
  • Total requests chart
  • Split by hour / day / month for
    • total visits chart
    • http statuses chart
    • total requests chart