Customer Profiles
Events
Web SDK

Web SDK

EARLY ACCESS

Track custom events with the Web SDK by installing the JavaScript library on your website. For event naming and tracking guidelines, see Events best practices.


Install the library

Before you start installing the library, we recommend you review the Web SDK documentation to learn more about how the Web SDK works and see the various methods available to you.

To use the Web SDK:

  1. Create an API key with the Web SDK role enabled.
  2. Visit the Manage API Keys (opens in a new tab) page on the web interface to create your API key.
  3. Once you have created your API key, edit the code to replace "Your API Key" in the pe.init() call with your actual key.

Try it out

After installing the library, you can test event tracking:

  1. Select an event from the dropdown menu.
  2. Select a person from the dropdown menu.
  3. Select Send event.

This allows you to verify that your Web SDK integration is working correctly before deploying to production.




Need assistance

Explore Infobip Tutorials

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary
Service status

Copyright @ 2006-2026 Infobip ltd.

Service Terms & ConditionsPrivacy policyTerms of use