Upgrade to Pro — share decks privately, control downloads, hide ads and more …

モバイルアプリ行動ログ基盤を”大統一”した話

giginet
December 10, 2020

 モバイルアプリ行動ログ基盤を”大統一”した話

Cookpad Tech Kitchen #25 日本最大レシピサービスのモバイルアプリ開発事情
https://cookpad.connpass.com/event/195190/

https://techlife.cookpad.com/entry/2020/11/05/110000

giginet

December 10, 2020
Tweet

More Decks by giginet

Other Decks in Programming

Transcript

  1. Α͋͘Δߦಈϩάͷ࣮૷ʢݱ࣮ʣ Analytics.logEvent("select_contnts", parameters: [ "content_type": “video", "content_id": nil, ]) UZQP

    DPOUFOU͕ਖ਼͍͠  ະఆٛͷ஋Ҭ OJM͕ૹΒΕͯ͠·͏ ϝλσʔλ͕଍Γͳ͍ JUFNT͕ඞཁ 
  2. /// Ϩγϐݕࡧը໘ͷΠϕϯτͰ͢ public enum RecipeSearch: LogCategory { public static var

    categoryName: String { "recipe_search" } public var eventName: String { switch self { case .showRecipe: return "show_recipe" } } public func makePayload() -> [String: Any] { switch self { case let .showRecipe(recipeId): return [ "recipe_id": recipeId.dump(), ].compactMapValues { $0 } } } /// ݕࡧ݁Ռը໘͔ΒϨγϐৄࡉը໘ʹભҠ͢Δࡍʹૹ෇͞Ε·͢ case showRecipe(recipeId: Int64) }
  3. େ౷Ұʁ • υΩϡϝϯτͷ؅ཧํ๏͕౷Ұ͞Εͨ • ϓϥοτϑΥʔϜؒͰ౷Ұ͞Εͨ • Swift, Kotlin, TypeScriptͷίʔυੜ੒ػ͕࣮ݱ •

    ੜ੒ͷ࢓૊Έ͕ڞ௨ͳ͚ͩͰɺϩάͷఆٛ͸ผ • ϩά෼ੳͷͨΊͷςʔϒϧ͕౷Ұ͞Εͨ • ৄ͘͠͸࣍ͷൃදͰʂ