Chrome Browser Extension

Getting Started

Follow these instructions to integrate your website with the desktop browser extension for Chrome. Remember that you can opt in or out of using User IDs, and can skip this step if you opt out, and we'll simply randomise the users.

🧩 Please keep in mind that if you opt out and we randomise the users, you cannot match them back internally.

πŸ‘‰ Setting the User IDs enables you to see analytics and reporting for your users. If you do want to set your own User IDs, you can add our scripts to your website, call the Kindred Snippet and the User ID for the extension.

Here's how to get started:

  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

🌟 Please reach out to the Kindred team if you are having trouble following these steps, or any questions pop up along the way!