Setup in Zeotap CDP
Create a Web Javascript source in your Zeotap CDP account. How to create a Web JS source? Obtain the write key from the created source. How to obtain a write key?Integration
To install the Zeotap Web SDK, add the following script to your<head> of your file:
You need to input your
write key in place of YOUR_WRITE_KEY so that the data gets ingested to a WEB JS source created in your zeotap cdp account.Setting up of User Identities (Learn more)
Once the Zeotap SDK is integrated, you can start setting up user identities. User identities are how you associate data to specific users. The Zeotap SDK provides thesetUserIdentities function to identify your users in order to manage them.
Sending page propeties to Zeotap (Learn more)
Page properties allow you to send information about the current page to Zeotap. This can be useful for tracking user behavior, understanding page engagement, and segmenting your audience. To send page properties, use thesetPageProperties method:
Tracking user events (Learn more)
setEventProperties allows you to track specific actions that users take on your website, such as adding an item to a cart, completing a purchase, or signing up for a newsletter. To track user events, you can use thesetEventProperties method: