Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RxJS, mixpanelで実装するSPAの行動分析基盤
Search
Yosuke Kurami
November 02, 2017
Programming
610
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RxJS, mixpanelで実装するSPAの行動分析基盤
Yosuke Kurami
November 02, 2017
Transcript
21 slides
3Y+4 NJYQBOFMͰ࣮͢Δ41"ͷߦಈੳج൫ :PTVLF,VSBNJ !2VSBNZ 1
"CPVUNF
w 2VSBNZ UXJUUFS(JU)VC2JJUB ͱ͍͍·͢ w OHKBQBOͷελοϑͯ͠·͢ w IUUQTMBDLJOWJUFOHKBQBOPSH w "OHVMBS
5ZQF4DSJQU 7JNΛภѪ͍ͯ͠·͢ ࣗݾհ
ձࣾαʔϏεհ
"*ΞφϦετ w IUUQTXBDVMBJDPN
"*ΞφϦετ w (PPHMF"OBMZUJDTͷσʔλΛݩʹɺ8FCαΠτͷվળҊΛ ఏҊ w ྫɿʮಛఆͷϖʔδΛݟΔͱ$73͕ஶ͘͠ѱ͘ͳΔʯ w 8FCϚʔέλʔ ཧళ͞Μ͚ʹͬͯΒ͏ͨΊͷ##
4BB4 w "OHVMBSWʹΑΔ41"
ࠓͷςʔϚ
41"͕ͲͷΑ͏ʹΘΕͯΔ͔Γ͍ͨ
σʔλΛݩʹվળΛݟ͚ͭΔ
NJYQBOFM w Ϣʔβʔ୯ҐͷΠϕϯτΛࡉ͔͘औಘɾੳͰ͖Δ
NJYQBOFMͷಛ w NJYQBOFMUSBDL ʜ ͰҙͷΠϕϯτΛૹ৴Ͱ͖Δ w σʔλΛ"1*ͰFYQPSUͰ͖Δ w #JH2VFSZʹJNQPSU w
ଞͷσʔλιʔε %# ͱΘͤͯɺ3FEBTIͰΫΤϦΛ ࡞Γɺ༷ʑͳ࣠Ͱੳ͕Ͱ͖Δ
ͲͷΑ͏ʹૹ৴͢ΕΑ͍͔ʁ
ϢʔβʔΠϕϯτͷநԽ w 41"Ͱ༷ʑͳʮΠϕϯτʯ͕ൃੜ͢Δ w %0.Πϕϯτ ϑΥʔϜͷೖྗ ϘλϯΫϦοΫ w ϧʔλʔʹΑΔը໘ભҠ
w ϞʔμϧΞϥʔτͷ։ด w Ϗδωεཁ݅తͳ ίϯόʔδϣϯΠϕϯτ w FUDʜ
ΠϕϯτͷநԽ w ΠϕϯτͷൃੜՕॴຖʹNJYQBOFMͷૹ৴Λॻ͘ͷɺ ॲཧͷݟཱ͕ͯѱ͘ͳΔ w ͦ͜ͰɺΠϕϯτΛ3YKTͷετϦʔϜͱͯ͠நԽ w ͜ͷετϦʔϜΛ4VCTDSJCFͯ͠.JYQBOFMૹ৴ w 3YKT࣌ؒͰൃੜ͢ΔΠϕϯτΛநతʹѻ͏͜ͱʹಛԽ͠
ͨϥΠϒϥϦ
ࢀߟʹͨ͠Ϟσϧ ҰൠతͳQVCTVCϞσϧ w SYKT͕ΈΛఏڙͯ͘͠ΕΔ -PH+ͳͲͰݟΒΕΔΧςΰϦઃܭ w lVJz w
lVJCVUUPOz w lVJCVUUPODMJDLz
this.ngZone.runOutsideAngular(() => { if (e && e["__pushed__"]) return; if (e)
e["__pushed__"] = true; const element = this.elemRef.nativeElement as HTMLElement; const value = element.textContent; const typeAttr = element.getAttribute("type"); const kindAttr = element.getAttribute("kind"); const iconAttr = element.getAttribute("iconKind"); const activity = createActivity(element, { categorySuffix: "button", action: "click", value, }); if (typeAttr) activity.label += `[type='${typeAttr}']`; if (kindAttr) activity.label += `[kind='${kindAttr}']`; if (iconAttr) activity.label += `[iconKind='${iconAttr}']`; this.accumulator.push(activity); }); 1VCMJTI&WFOUT
Observable.merge( activities .filterCategorizedActivity("ui.router") .filter(({ action }) => action === "navigationEnd")
.debounceTime(100), activities .filterCategorizedActivity("ui.root", { exclude: true }) .filterCategorizedActivity("ui.router", { exclude: true }) ) .mapFlattenData() .subscribe(({ action, category, ...rest }) => mixpanel.track(`${category}.${action}`, rest)) ; 4VCTDSJCF&WFOUT
ΠϕϯτநԽͷϝϦοτ w ΠϕϯτͷநԽʹΑΓɺૹ৴ίʔυΛՃ͢Δ͚ͩͰɺଞ αʔϏεͷ࿈ܞ͕Մೳɻ w FYɿྫ֎ൃੜ࣌ʹɺൃੜͨ͠Πϕϯτͷۙ݅ΛΤϥʔ τϥοΩϯάαʔϏε4FOUSZૹ৴ ܽམ͢Δ͜ͱʜ
4VNNBSZ
·ͱΊ w NJYQBOFM͍͍ͧ w #JH2VFSZ͍͍ͧ w 3Y+4͍͍ͧ w "OHVMBS͍͍ͧ
5IBOLZPV
More Decks by Yosuke Kurami
See All by Yosuke Kurami
GraphQL の onError と Nullability のこれから
quramy
0
220
TypeScript LSP の今までとこれから
quramy
1
2.3k
フロントエンドテストの育て方
quramy
12
4k
App Router 悲喜交々
quramy
8
790
上手に付き合うコンポーネントテスト
quramy
6
2.4k
Patched fetch did not work
quramy
6
830
GraphQL あるいは React における自律的なデータ取得について
quramy
18
6k
Next.js App Router
quramy
15
4k
Fragment Composition of GraphQL
quramy
17
5k
Other Decks in Programming
See All in Programming
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
320
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
250
小さなアプリを作って公開するまで
onozaty
0
190
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.3k
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.3k
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
200
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
330
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
350
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
160
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
240
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
470
How to make the Groovebox
asonas
2
2.6k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300