Show / Hide Table of Contents

Class Tracker

Trackerクラスは、主にイベントのトラッキング機能を提供します。

KARTEにイベントを送信する場合、本クラスが提供する各種トラッキングメソッドを利用して行います。

Inheritance
System.Object
Tracker
Namespace: Io.Karte
Syntax
public class Tracker

Methods

Attribute(JObject)

Attributeイベント(ユーザー情報)を送信します。

Declaration
public static void Attribute(JObject values)
Parameters
Type Name Description
JObject values

ユーザーに紐付けるカスタムオブジェクト

Identify(JObject)

Identifyイベント(ユーザー情報)を送信します。

KARTEではユーザー情報もユーザー情報イベントとして、他のイベントと同じ形式で扱います。

Declaration
public static void Identify(JObject values)
Parameters
Type Name Description
JObject values

ユーザーに紐付けるカスタムオブジェクト

Identify(String, JObject)

Identifyイベント(ユーザー情報)を送信します。

KARTEではユーザー情報もユーザー情報イベントとして、他のイベントと同じ形式で扱います。

Declaration
public static void Identify(string userId, JObject values)
Parameters
Type Name Description
System.String userId

ユーザーを識別する一意なID

JObject values

ユーザーに紐付けるカスタムオブジェクト

Track(String)

Declaration
public static void Track(string eventName)
Parameters
Type Name Description
System.String eventName

Track(String, JObject)

イベントを送信します。

Declaration
public static void Track(string eventName, JObject values)
Parameters
Type Name Description
System.String eventName

イベント名

JObject values

イベントに紐付けるカスタムオブジェクト

View(String)

Viewイベントを送信します。

Declaration
public static void View(string viewName)
Parameters
Type Name Description
System.String viewName

画面名

View(String, String)

Viewイベントを送信します。

Declaration
public static void View(string viewName, string title)
Parameters
Type Name Description
System.String viewName

画面名

System.String title

画面タイトル

View(String, String, JObject)

Viewイベントを送信します。

Declaration
public static void View(string viewName, string title, JObject values)
Parameters
Type Name Description
System.String viewName

画面名

System.String title

画面タイトル

JObject values

イベントに紐付けるカスタムオブジェクト

In This Article
Back to top Generated by DocFX