Skip to content

Web Analytics 0.2.3: Compiles on Elixir 1.18.4 with OTP 28, and a Pages report fix

Web Analytics 0.2.3 fixes two failures: the package did not compile on Elixir 1.18.4 with OTP 28, and the Pages report crashed on a busy period.

Versions 0.2.0 to 0.2.2 stopped the build on that Elixir and OTP pair with a cannot escape #Reference<...> error in the User-Agent parser. The browser and system patterns are now built at run time instead, and the parsing gives the same results.

The Pages report crashed once a period had 100 or more ranked paths, because the note “Showing the top 100 paths by page views.” could not read its number. It now shows.

Full release notes: Web Analytics 0.2.3

0.2.3 · 7 September 2026

Fixed

  • 0.2.0–0.2.2 fail to compile on Elixir 1.18.4 / OTP 28 with cannot escape #Reference<...> in UserAgent: a compiled regex nested inside a {name, ~r//} list module attribute can’t be injected into parse/1’s body on that combination. @browsers / @operating_systems are now private functions instead of attributes; behaviour is unchanged. (#1, thanks @timujinne)
  • Pages report crashed once a period had 100+ ranked paths: the “showing the top N paths” note referenced @page_limit inside the template, where @name is always an assign, never the module attribute of the same name — now assigned in mount/3.

Web Analytics 0.2.3. Install or update: {:phoenix_kit_web_analytics, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.