Which data is the client exposed to?

Comments

3 comments

  • Dave Murphy

    For the Javascript (and mobile) SDK the client only gets the segments and whitelists for the key passed to Split when you instantiate the SDK.  And that information will only go to the client if you pass a known user ID, since an anonymous user will obviously not be included as part of a specific rule.  The client does not see any information for segments to which they do not belong or the keys for other accounts or users for those segments to which they do belong.  

    dave

    0
    Comment actions Permalink
  • Alex Badyan

    Right, so this assumes that customer ids are hard to guess, that they are some sort of random string, am I correct?

    0
    Comment actions Permalink
  • Dave Murphy

    That's usually the case.  What you pass as a key is entirely up to you.  You could set a cookie, use a GUID that is created as a customer ID, pass a device ID if on mobile, an account/company ID if appropriate.  You could even pass a random, hashed ID, depending on your needs.

    0
    Comment actions Permalink

Please sign in to leave a comment.