Skip to content

$ctx

Using the $ctx you can access following information:

  • targetingKey - The key used for targeting the user. This key could be an email address or any unique identifier. The value should be passed by the client using the evaluation context.

  • country - The country of the user. This option is only available if the the flag is accessed from the browser. The value will be null if the flag is accessed from the server. Checkout ISO 3166-1 alpha-2 to see the list of country codes.