Skip to content

Releases: lalabuy948/PhoenixAnalytics

0.4.1

07 Sep 12:14

Choose a tag to compare

  • use built-in Ecto UUIDs
  • changes to local broadcast

Thanks to @stuartjohnpage !

0.4.0

14 Aug 14:49
81c6d52

Choose a tag to compare

Important

No 🦆!
Sqlite, Postgres and MySQL support out of the box.

0.3.2 FIx duckdb persistance frequency

14 Mar 11:21

Choose a tag to compare

Update dependencies and add appender_close call for persistence

0.3.1 - fix for duckbex version

11 Feb 11:59

Choose a tag to compare

set duckbex exact version 0.3.7

0.3.0

13 Jan 14:48

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

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

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

Choose a tag to compare

0.1.2

10 Sep 12:27
a8d280f

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

Choose a tag to compare

Minor fix

  • fix for extracting tablet user agent