iOS PendoManager.shared().startSession question

I'm a bit unsure of the parameters for the iOS mobile call:

startSession(visitorId: String?, accountId: String?, visitorData: [String: Any]?, accountData:  [String: Any]?)

visitorId is a unique identifier for a user starting the Pendo session.  However, for arrays vistorData and accountData, what items belong in visitorData vs accountData?  I'm looking for examples to distinguish between each params usage.

Thanks!

0

コメント

1件のコメント
  • Hey Edgar Abadines,

    The visitorData and accountData values here are used to pass through the Metadata you've defined for your visitors.  There are some example strings within the following help document that, hopefully, can point you in the right direction.

    Help article: https://support.pendo.io/hc/en-us/articles/360055603992-IOS-Developer-API-Documentation-

    Objective-C

    NSString * visitorId = @"John Smith";
    NSString * accountID = @"Acme Inc";

    //set visitor metadata
    NSDictionary * visitoraData = @{@"Age":@27, @"Country":@"USA", @"Gender":@"Male"};

    //set account metadata
    NSDictionary * accountData = @{@"Tier":@1, @"Size":@"Enterprise"};

    Swift

    let visitorId = "John Smith"
    let accountID = "Acme Inc"

    //set visitor metadata
    let visitoraData = ["Age": "27", "Country": "USA", "Gender": "Male"]

    //set account metadata
    let accountData = ["Tier": "1", "Timezone": "EST", "Size": "Enterprise"]
    0

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿