{"id":12868,"date":"2024-04-30T21:01:32","date_gmt":"2024-04-30T12:01:32","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=12868"},"modified":"2024-04-30T21:08:01","modified_gmt":"2024-04-30T12:08:01","slug":"%e3%83%87%e3%83%bc%e3%82%bf%e8%a8%88%e6%b8%ac%e3%83%84%e3%83%bc%e3%83%ab%e3%80%8cgoogle-analytics-for-firebase%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/test.ecomottblog.com\/?p=12868","title":{"rendered":"\u30c7\u30fc\u30bf\u8a08\u6e2c\u30c4\u30fc\u30eb\u300cGoogle Analytics for Firebase\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u304a\u75b2\u308c\u69d8\u3067\u3059\uff01<br \/>\nSJC\u5171\u540c\u958b\u767a\u63a8\u9032\u5ba4\u306e\u5883\u7530\u3067\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u969b\u3001\u30e6\u30fc\u30b6\u306e\u52d5\u5411\u3092\u628a\u63e1\u3057\u305f\u3044\u3001\u305d\u3046\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<br \/>\n\u3053\u308c\u307e\u3067\u30c7\u30fc\u30bf\u8a08\u6e2c\u30c4\u30fc\u30eb\u300cGoogle Analytics for Firebase\u300d\u3092\u7528\u3044\u3066\u958b\u767a\u3057\u3066\u304d\u305f\u3053\u3068\u304c\u3042\u308a\u3001<br \/>\n\u305d\u306e\u8981\u671b\u3092\u53f6\u3048\u3066\u304f\u308c\u305f\u306e\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><br \/>\n\u5177\u4f53\u7684\u306b\u4f55\u3092\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3067\u304d\u308b\u304b\uff1f\u3067\u3059\u304c\u3001<br \/>\n\u30fb\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u6a5f\u80fd\uff08API\u306e\u4f7f\u7528\u983b\u5ea6\u306a\u3069\uff09<br \/>\n\u30fb\u5b9f\u969b\u306b\u30e6\u30fc\u30b6\u5074\u3067\u767a\u751f\u3057\u3066\u3044\u308b\u30a8\u30e9\u30fc<br \/>\n\u30fb\u3088\u304f\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u753b\u9762<br \/>\n\u30fb\u30ed\u30b0\u30a4\u30f3\u56de\u6570<br \/>\n\u306a\u3069\u3001\u69d8\u3005\u3067\u3059\u3002\u51e6\u7406\u304c\u8d70\u3063\u305f\u6642\u306b\u8a08\u6e2c\u3057\u305f\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u30b3\u30fc\u30c9\u4e0a\u306b\u4ed5\u8fbc\u3081\u3070\u3001<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306bFirebase \u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u5185\u306e\u300c\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u300d\u306e\u30ec\u30dd\u30fc\u30c8\u306b\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/webtan.impress.co.jp\/sites\/default\/files\/images\/article2019\/firebase\/firebase_01_04.png\"><\/p>\n<h3>\u65e9\u901f\u5c0e\u5165\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/h3>\n<p><strong>1.Firebase\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/strong><br \/>\n\u4e0b\u8a18\u30b5\u30a4\u30c8\u3088\u308a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u5165\u529b\u3057\u3001\u4f5c\u6210\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\nhttps:\/\/console.firebase.google.com\/u\/0\/?hl=ja<br \/>\n<strong>2.Firebase SDK\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\nSwift Package Manager\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\nXcode \u3067\u30a2\u30d7\u30ea\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u3044\u305f\u72b6\u614b\u3067\u3001[File\uff08\u30d5\u30a1\u30a4\u30eb\uff09] > [Add Packages\uff08\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u8ffd\u52a0\uff09] \u306e\u9806\u306b\u79fb\u52d5<br \/>\n\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u6b21\u306e Firebase iOS SDK \u30ea\u30dd\u30b8\u30c8\u30ea URL \u3092\u5165\u529b<br \/>\n<strong>3.Firebase\u306e\u521d\u671f\u5316\u30b3\u30fc\u30c9\u306e\u8ffd\u52a0<\/strong><\/p>\n<div>\n<div>\n<pre class=\"lang:default decode:true\">import UIKit\n\n+ import FirebaseCore\u3000\/\/ \u8ffd\u52a0\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n  var window: UIWindow?\n\n  func application(_ application: UIApplication,\n    didFinishLaunchingWithOptions launchOptions:\n      [UIApplicationLaunchOptionsKey: Any]?) -> Bool {\n\n+    FirebaseApp.configure()\u3000\/\/ \u8ffd\u52a0\n\n    return true<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/04\/event-1.png\" alt=\"\" width=\"2552\" height=\"951\" class=\"alignnone size-full wp-image-13095\" \/>\n  }\n}\n<\/pre>\n<\/div>\n<\/div>\n<p><strong>4.\u30a4\u30d9\u30f3\u30c8\u3092\u30ed\u30ae\u30f3\u30b0\u3059\u308b<\/strong><br \/>\nFirebaseApp \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u69cb\u6210\u3059\u308b\u3068\u3001logEvent() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30a4\u30d9\u30f3\u30c8\u3092\u30ed\u30ae\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f&#8221;login&#8221;\u3068\u3044\u3046\u30a4\u30d9\u30f3\u30c8\u306b&#8221;userId&#8221;\u3068\u3044\u3046\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4ed8\u4e0e\u3057\u3066\u30ed\u30ae\u30f3\u30b0\u3057\u305f\u4f8b\u3067\u3059\u3002<\/p>\n<div>\n<div>\n<pre class=\"lang:default decode:true\">\nAnalytics.logEvent(\"login\", parameters: [\n  \"userId\": userId as NSObject\n])\n<\/pre>\n<\/div>\n<\/div>\n<h3>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9<\/h3>\n<p>Firebase\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u300c\u30a4\u30d9\u30f3\u30c8\u300d\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u79fb\u52d5\u3059\u308b\u3068\u3001\u5148\u307b\u3069\u30ed\u30ae\u30f3\u30b0\u3057\u305f<br \/>\n\u30a4\u30d9\u30f3\u30c8\u304c\u30ec\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/04\/event.png\" alt=\"\" width=\"1699\" height=\"619\" class=\"alignnone size-full wp-image-13098\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/event.png 1699w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/event-300x109.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/event-768x280.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/event-1024x373.png 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/event-304x111.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/event-282x103.png 282w\" sizes=\"(max-width: 1699px) 100vw, 1699px\" \/><\/p>\n<h3>Debug View<\/h3>\n<p>DebugView \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u958b\u767a\u30c7\u30d0\u30a4\u30b9\u4e0a\u306e\u30a2\u30d7\u30ea\u306b\u3088\u3063\u3066\u30ed\u30ae\u30f3\u30b0\u3055\u308c\u308b\u751f\u306e\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bf\u3092\u307b\u307c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u958b\u767a\u4e2d\u3084\u691c\u8a3c\u3067\u4f7f\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/04\/20220216185919.png\" alt=\"\" width=\"1200\" height=\"781\" class=\"alignnone size-full wp-image-13101\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/20220216185919.png 1200w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/20220216185919-300x195.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/20220216185919-768x500.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/20220216185919-1024x666.png 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/20220216185919-304x198.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/20220216185919-282x184.png 282w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><br \/>\nTop Events\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u300130\u5206\u9593\u306b\u30ed\u30ae\u30f3\u30b0\u3055\u308c\u305f\u4e0a\u4f4d\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/04\/top-events-192x300.png\" alt=\"\" width=\"192\" height=\"300\" class=\"alignnone size-medium wp-image-13104\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/top-events-192x300.png 192w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/top-events-654x1024.png 654w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/top-events-137x214.png 137w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/top-events-166x260.png 166w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/04\/top-events.png 658w\" sizes=\"(max-width: 192px) 100vw, 192px\" \/><\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u4eca\u56de\u306fGoogle Analytics for Firebase\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30a2\u30d7\u30ea\u306e\u6539\u5584\u3084\u30a8\u30e9\u30fc\u306e\u89e3\u6790\u3001\u30af\u30e9\u30a6\u30c9\u4e0a\u304b\u3089\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306a\u3069\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fiOS\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u3066\u3054\u8aac\u660e\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u304c\u3001<br \/>\n\u30a6\u30a7\u30d6\u3001iOS\u3001Android\u3001Flutter\u3001C++\u3001Unity\u3067\u3082\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u5f8c\u306e\u3054\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30a8\u30b3\u30e2\u30c3\u30c8\u3067\u306f\u3001\u3068\u3082\u306b\u672a\u6765\u306e\u5e38\u8b58\u3092\u5275\u308b\u4ef2\u9593\u3092\u52df\u96c6\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5f0a\u793e\u306b\u5c11\u3057\u3067\u3082\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u305c\u3072\u4e0b\u8a18\u306e\u63a1\u7528\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>&nbsp;<\/p>\n<div style=\"margin-bottom: 32px; text-align: center;\"><a style=\"border: solid 1px #1ABB9A; padding: 16px 72px;\" href=\"https:\/\/www.ecomott.co.jp\/recruit\/requirements\/\" target=\"_blank\" rel=\"noopener\">\u52df\u96c6\u8981\u9805<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u75b2\u308c\u69d8\u3067\u3059\uff01 SJC\u5171\u540c\u958b\u767a\u63a8\u9032\u5ba4\u306e\u5883\u7530\u3067\u3059\u3002 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u969b\u3001\u30e6\u30fc\u30b6\u306e\u52d5\u5411\u3092\u628a\u63e1\u3057\u305f\u3044\u3001\u305d\u3046\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3053\u308c\u307e\u3067\u30c7\u30fc\u30bf\u8a08\u6e2c\u30c4\u30fc\u30eb\u300cGoogle Analytics for Firebas [&hellip;]<\/p>\n","protected":false},"author":120,"featured_media":12800,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[203],"_links":{"self":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12868"}],"collection":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/120"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12868"}],"version-history":[{"count":33,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12868\/revisions"}],"predecessor-version":[{"id":13374,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12868\/revisions\/13374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/12800"}],"wp:attachment":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}