Chrome Browser Extension

Getting Started

Follow these instructions to integrate your website with the desktop browser extension for Chrome.

  1. Add the Kindred extension.js script to your website
    Typically, you do this by adding the below script tag to your index.html
<script type="text/javascript"src="https://cdn.kindred.co/public/scripts/extension.js"></script>
  1. From your website source code, ensure that whenever you set the user id you also invoke the setKindredUser function, as shown below.

The setKindredUser function takes in 2 parameters:
extensionId: the id of the desktop extension (string). It can be found on the Chrome store where the extension is published.
user: this is a custom type which allows you to specify the user id, currency and country code

For example:

setKindredUser("your_extension_id", {
  id: "your_user_id",
  currency: "GBP",
  countryCode: "GB",
});

The id field is mandatory and must be set to your user id.
The currency and country code fields aren't mandatory.
When currency isn't specified, it will be defaulted to "USD".
When country code isn't specified, it will be defaulted to the region set on the user's browser.
Currency must be specified as an alpha-3 code (ISO 4217 currency code)
Country must be specified as an alpha-2 code (ISO 3166-1 country code)

License Agreement: https://event.kindred.co/licensing-terms-and-conditions