Hey, when adding plausible.io analytics to my elixir application, how can I make it happen via module, so that all page views will be tracked automatically - and ideally, without having to add it to every single controller separately?
Put the script tag in the root layout.
1 Like
I know that this is an option, but what is the module for then?
Oh, that’s new. I’m guessing doing it from the backend will mean that ad/script blockers won’t stop you getting data. You can also use a reverse proxy to get around that.
1 Like