This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-23
Channels
- # announcements (11)
- # architecture (14)
- # babashka (34)
- # bangalore-clj (8)
- # beginners (108)
- # calva (10)
- # cider (19)
- # circleci (9)
- # clj-kondo (19)
- # clojars (4)
- # clojure (62)
- # clojure-australia (2)
- # clojure-europe (62)
- # clojure-italy (14)
- # clojure-nl (8)
- # clojure-poland (1)
- # clojure-spec (14)
- # clojure-uk (59)
- # clojurescript (14)
- # community-development (5)
- # conjure (2)
- # core-async (10)
- # cryogen (1)
- # cursive (11)
- # data-science (1)
- # datahike (13)
- # datomic (21)
- # deps-new (4)
- # ethereum (1)
- # events (4)
- # fulcro (34)
- # helix (2)
- # jobs (2)
- # juxt (33)
- # kaocha (4)
- # lsp (18)
- # malli (4)
- # membrane (2)
- # off-topic (23)
- # re-frame (3)
- # reitit (4)
- # remote-jobs (1)
- # reveal (6)
- # shadow-cljs (47)
- # slack-help (2)
- # spacemacs (5)
- # sql (45)
- # startup-in-a-month (6)
- # testing (4)
- # tools-deps (21)
- # xtdb (4)
Hi everyone 👋 Has anyone here set up https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/ as an interceptor on all their re-frame events? How did you do it? I'm thinking this would be a simple way to automatically track any new event that we add to our app.
You probably could try global interceptor. https://github.com/day8/re-frame/blob/master/docs/FAQs/GlobalInterceptors.md
Thank you! I started going the interceptor route but it occurred to me that auto-generating Segment events might not be a good idea (even though it sounds cool). As soon as you start tracking an event you typically don't want to rename any of the properties otherwise you end up invalidating old data and making life difficult for your analysts. If I use an interceptor to auto-generate events I would shackle my developers, preventing them from re-organizing and renaming data as they see fit. IMO it's better to just manually specify the Segment event so it's explicit exactly what is getting sent to Segment.
You probably could try global interceptor. https://github.com/day8/re-frame/blob/master/docs/FAQs/GlobalInterceptors.md