iOS PendoManager.shared().startSession question

Comments

1 comment

  • Avatar
    Greg Nutt

    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
    Comment actions Permalink

Please sign in to leave a comment.