Fork me on GitHub
#clojurescript
<
2021-09-29
>
John Bradens03:09:49

How do I add events tracking? Like if I want to see how many pageviews, user actions, how long each session is, that sort of thing?

John Bradens03:09:11

I'm thinking about using Segment because they have documentation for how to add it with clojure :thinking_face: Has anyone done this or have suggestions? https://segment.com/docs/connections/sources/catalog/libraries/server/clojure/

p-himik07:09:55

I'm assuming you want to use some third-party solution as opposed to building everything from scratch. If so, for any similar solution that has JS API, you can just use JS interop to use it from CLJS.

1
John Bradens16:09:43

Ok cool good to know!

John Bradens16:09:52

I also use reagent, so would I have to do anything special with react for those things? Or just use JS interop?

John Bradens16:09:06

I'm curious how it would go building from scratch, do you know if there's any resources on how to do that? I've tried googling but I must not be using the right terms because I didn't find anything. Although it sounds like I can look up adding it from scratch with JS and it'll be analogous? I'm a newbie 😅

p-himik17:09:30

Some analytics solutions might offer React-specific things. But nothing that would make you do something special just because you use Reagent. > I'm curious how it would go building from scratch Building what from scratch? Not sure what you mean. Every decent analytics solution should have documentation with at least some examples. And there are a lot of materials on JS interop.

John Bradens17:09:31

Ok thanks. I mean building from scratch my own solution & some kind of dashboard to see the pageviews and all that. But I think since I'm such a beginner I will use the solutions that are available already

p-himik17:09:42

Ah, oh. Indeed - given that you're a newbie, don't even think in that direction just yet. It's a ton of work to make something like that work.

John Bradens17:09:37

Ok cool! Thanks this is very informative

👍 1
johanatan17:09:13

does anybody know the final outcome of the following discussion / endeavor ? https://ask.clojure.org/index.php/6540/runtime-namespace-order-independent-ordering-macro-require

johanatan17:09:33

^^ note that this issue does matter for people who are using clojure.spec as specs are defined as side effects of modules