Braze JavaScript SDK
    Preparing search index...

    Function setUserCountry

    • Sets the country for the current user.

      Parameters

      • country: string | null

        Limited to 255 characters in length. Accepts an explicit null value to null out attribute.

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.