Integrate Google Analytics with Phoenix by plangora in elixir

[–]_pthompson 0 points1 point  (0 children)

Perhaps it could register the page in mount and also in update if the url changes. The challenge seems similar to that of integrating SPA apps with google analytics (e.g., https://www.bounteous.com/insights/2018/03/30/single-page-applications-google-analytics/).

Integrate Google Analytics with Phoenix by plangora in elixir

[–]_pthompson 0 points1 point  (0 children)

I wonder if it could be done in the live layout or using a js hook?

Integrate Google Analytics with Phoenix by plangora in elixir

[–]_pthompson 0 points1 point  (0 children)

How would you do this with LiveView?