Skip to content
LogoLogo

Picked SDK

The Picked SDK lets you add a dynamic, personalized experience to your web application with very little code.

Precondition and condition

CategoryQuestionDescription
PreconditionMust Picked start?Use it to check the environment, to filter by page, or for a feature flag that turns the SDK off completely.
ConditionIs this user eligible?Use it to divide your users into groups, to enter a user into an A/B test, or to reach one group of users.
const picked = createClient({
  precondition: {
    and: [
      {
        or: [
          {
            invoke: {
              var: 'features.aa-test',
            },
          },
          true,
        ],
      },
      { invoke: { var: 'predicates.shopify-is-product-page' } },
    ],
  },
  condition: {
    invoke: {
      var: 'features.convincely-enabled',
    },
  },
  // The rest of the Picked options go here.
})

See conditions for more detail.