JavaScript SDK

View as Markdown

GitHub Repo

Use the JavaScript SDK to integrate event tracking and data analytics into your web application. The SDK lets you send tracking data to your data warehouse and multiple analytics tools through a single interface, so you don't need separate integrations.

This integration simplifies implementation, enabling teams to gain comprehensive insights into user behavior and optimize their applications with ease.

Key features

  • Track user interactions: Record user interactions such as clicks, page views, and custom events within your application.
  • Connect to analytics tools: Send tracked data to various analytics tools like Google Analytics, Mixpanel, and others.
  • Manage data easily: Decide which data goes to which analytics tools, making it simple to organize and change tools later.
  • User data extraction: Retrieve user traits from tracked events and load them into the data warehouse, where they are unified through Krenalis's identity resolution.
  • Lightweight: No external dependencies and only 16 kB (compressed), reducing network overhead.
  • Compatible with the Segment and RudderStack SDKs.

Guides

Guide What will you learn?
Start collecting events How to install the SDK on your website or import it into your web application to collect events.
Start collecting user data How to install the SDK on your website or import it into your web application to collect user data.
Options The available options when installing the SDK.
Methods of the SDK The methods of the SDK, including the methods to send events.
Storage locations Where the users' data is stored and how to manage its storage location.
Querystring API How to activate identify and track events using the URL query string.
FAQ Frequently Asked Questions about the JavaScript SDK.

Minimum supported browsers

Here is a list of the minimum browser versions required to run the JavaScript SDK:

  • Chrome 23
  • Edge 80
  • Safari 7
  • Firefox 21
  • Opera 14
  • IE 11

SDK source code

The source code of the Krenalis JavaScript SDK is available on GitHub and distributed under the MIT license.