LoginSignup
3
1

More than 5 years have passed since last update.

iOSアプリのUX解析ツールFlurry

Last updated at Posted at 2018-03-31

iOSアプリのUX解析

ユーザビリティの向上のためにFlurryを導入したので備忘録として

Flurry導入の手順

  1. Flurryのアカウントを取得
  2. Flurryの中でアプリケーションを作る(解析場のような感じ)
  3. 自分のiOSアプリにFlurry-iOS-SDKをcocoapodsを使ってインストール
  4. AppDelegateに解析に必要なコードを記述
  5. 各イベントに合わせてLogをとるコードを追加

1. Flurryのアカウントを取得

次のサイトからアカウントを取得してくる
https://login.flurry.com

2. Flurryの中でアプリケーションを作る(解析場のような感じ)

ガイドが出るのでその通りにアプリケーションを作る

3. 自分のiOSアプリにFlurry-iOS-SDKをcocoapodsを使ってインストール

PodFileに以下を追加して

PodFile
pod 'Flurry-iOS-SDK/FlurrySDK'

terminalでインストール

自分のアプリのディレクトリ
pod install

4. AppDelegateに解析に必要なコードを記述

AppDelegateにimport Flurry_iOS_SDKを書き、
AppDelegateのなかの次の関数に以下のコードをを書く

AppDelegate.swift
    import Flurry_iOS_SDK

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        Flurry.startSession("YOUR_API_KEY", with: FlurrySessionBuilder
            .init()
            .withCrashReporting(true)
            .withLogLevel(FlurryLogLevelAll))
        // Your code
        return true
    }

5. 各イベントに合わせてLogをとるコードを追加

import Flurry_iOS_SDK
//このコードをEventが起こるタイミングで呼ばれるところに書く
Flurry.logEvent("EventName")

参考

Eventのレポートされかた
https://developer.yahoo.com/flurry/docs/analytics/lexicon/eventreporting/
Eventのレポート仕方
https://developer.yahoo.com/flurry/docs/analytics/gettingstarted/events/ios/#tab=1

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1