Integrate Plausible with an existing Phoenix project

Hi all,
this may sound silly, but would it be possible to integrate Plausible (GitHub - plausible/analytics: Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.)
in an existing Phoenix project?

Something like install Plausible from the git repo and integrating Plausible routes in my routes?

Thank you

I just added the Plausible script to root.html.heex somewhere in the <head> section.

If you want more control, you there’s a library for Elixir.

Both links go to the same page.

1 Like

Argh! Sorry. Here’s the correct link: Integration guides | Plausible docs
(I couldn’t adjust my original post)